Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone 4s 5.0.1上的应用程序崩溃,不在模拟器中_Iphone_Objective C_Xcode_Sdk_Ios Simulator - Fatal编程技术网

iphone 4s 5.0.1上的应用程序崩溃,不在模拟器中

iphone 4s 5.0.1上的应用程序崩溃,不在模拟器中,iphone,objective-c,xcode,sdk,ios-simulator,Iphone,Objective C,Xcode,Sdk,Ios Simulator,在iphone 4s设备(版本)5.0.1上测试 崩溃:当您单击选项卡从主页进入索引页时 1) main.m 3) 所有输出: GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public Lice

在iphone 4s设备(版本)5.0.1上测试

崩溃:当您单击选项卡从主页进入索引页时

1) main.m

3) 所有输出:

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-19819-51
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
sharedlibrary apply-load-rules all
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader (file not found).
warning: No copy of AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 8963 thread 0x2303]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/UIKit.axbundle/UIKit (file not found).
warning: No copy of UIKit.axbundle/UIKit found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 9219 thread 0x2403]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TelephonyUIFramework.axbundle/TelephonyUIFramework (file not found).
warning: No copy of TelephonyUIFramework.axbundle/TelephonyUIFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TextInput.axbundle/TextInput (file not found).
warning: No copy of TextInput.axbundle/TextInput found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/MediaPlayerFramework.axbundle/MediaPlayerFramework (file not found).
warning: No copy of MediaPlayerFramework.axbundle/MediaPlayerFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/iTunesStoreFramework.axbundle/iTunesStoreFramework (file not found).
warning: No copy of iTunesStoreFramework.axbundle/iTunesStoreFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AXExtraExtras.axbundle/AXExtraExtras (file not found).
warning: No copy of AXExtraExtras.axbundle/AXExtraExtras found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/QuickSpeak.bundle/QuickSpeak (file not found).
warning: No copy of QuickSpeak.bundle/QuickSpeak found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 9731 thread 0x2603]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/PreferencesFramework.axbundle/PreferencesFramework (file not found).
warning: No copy of PreferencesFramework.axbundle/PreferencesFramework found locally, reading from memory on remote device.  This may slow down the debug session.
2011-12-08 11:14:48.095 salah1[3198:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
*** First throw call stack:
(0x3802e8bf 0x31b141e5 0x3802e7b9 0x3802e7db 0x3565a747 0x3565bbb9 0x2a03 0x354469cb 0x35445aa9 0x35445233 0x353e9d4b 0x37f8d22b 0x33784381 0x33783f99 0x3378811b 0x33787e57 0x3377fd85 0x38002b4b 0x38000d87 0x380010e1 0x37f844dd 0x37f843a5 0x37b02fcd 0x35414743 0x21cd 0x2164)
terminate called throwing an exception[Switching to process 7171 thread 0x1c03]
(gdb) 
GNU gdb 6.3.50-20050815(苹果版gdb-1708)(2011年9月16日星期五06:56:50 UTC)
版权所有2004免费软件基金会。
GDB是自由软件,受GNU通用公共许可证的保护,您是
欢迎在特定条件下更改和/或分发副本。
键入“显示复制”以查看条件。
GDB绝对没有保修。有关详细信息,请键入“显示保修”。
此GDB配置为“-host=i386 apple darwin--target=arm apple darwin”。tty/dev/ttys000
目标远程移动设备/tmp/.XcodeGDBRemote-19819-51
切换到远程macosx协议
内存0x1000 0x3fffffff缓存
内存0x40000000 0xffffffff无
内存0x00000000 0x0fff无
[切换到进程7171线程0x1c03]
[切换到进程7171线程0x1c03]
sharedlibrary应用所有加载规则
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A405)/symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader的符号(未找到文件)。
警告:本地找不到AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
[切换到进程8963线程0x2303]
[切换到进程7171线程0x1c03]
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/UIKit.axbundle/UIKit的符号(未找到文件)。
警告:本地找不到UIKit.axbundle/UIKit的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
[切换到进程9219线程0x2403]
[切换到进程7171线程0x1c03]
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/telephonyuiframew.axbundle/telephonyuiframew的符号(未找到文件)。
警告:本地找不到TelephonyUIFramework.axbundle/TelephonyUIFramework的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/TextInput.axbundle/TextInput的符号(未找到文件)。
警告:在本地找不到TextInput.axbundle/TextInput的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/MediaPlayerFramework.axbundle/MediaPlayerFramework的符号(未找到文件)。
警告:本地找不到MediaPlayerFramework.axbundle/MediaPlayerFramework的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/iTunestoreFramework.axbundle/iTunestoreFramework的符号(未找到文件)。
警告:本地找不到iTunestoreFramework.axbundle/iTunestoreFramework的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/axextras.axbundle/axextras的符号(未找到文件)。
警告:在本地找不到axextras.axbundle/axextras的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/QuickSpeak.bundle/QuickSpeak的符号(未找到文件)。
警告:本地找不到QuickSpeak.bundle/QuickSpeak的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
[切换到进程9731线程0x2603]
警告:无法读取/Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1(9A205)/symbols/System/Library/AccessibilityBundles/preferencesframew.axbundle/preferencesframew的符号(未找到文件)。
警告:本地找不到PreferencesFramework.axbundle/PreferencesFramework的副本,正在从远程设备上的内存读取。这可能会降低调试会话的速度。
2011-12-08 11:14:48.095 salah1[3198:707]***由于未捕获的异常“NSInternalInconsistenceException”而终止应用程序,原因:“无法在捆绑包中加载NIB:“NSBundle(loaded)”,名称为“Custom_Cell”
***第一次抛出调用堆栈:
(0x3802e8bf 0x31b141e5 0x3802e7b9 0x3802e7b9 0x3802e7db 0x3565a747 0x3565bbb9 0x2a03 0x354469cb 0x35445aa9 0x354452330x353E9D4B 0x37f8d22b 0x33784381 0x33783f99 0x3378811b 0x33787e57 0x3377fd85 0x38002b4b 0x38000d87 0x380010e1 0x37f844dd 0x37f843a5 0x37b02fcd 0x35414743 0x21cd 0x2164)
终止调用并引发异常[切换到进程7171线程0x1c03]
(gdb)

错误就在您提供的GDB堆栈中:

'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
“无法将NIB加载到名为“Custom_Cell”的捆绑包:“NSBundle(loaded)”中”

您是否有名为“自定义单元格”的笔尖?你能告诉我们崩溃发生时正在执行的代码吗?您能告诉我们如何在Interface Builder中定义自定义单元格吗?

您的问题是其中一个NIB名称命名不正确:

由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因是:“无法加载捆绑包中的NIB:“NSBundle(loaded)”,名称为“Custom_Cell”


模拟器不区分大小写,但iPhone是。所以
自定义单元
!=<代码>自定义单元

它在模拟器中工作,但在设备中不工作吗?还是根本不起作用?请投票支持提t
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-19819-51
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
sharedlibrary apply-load-rules all
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader (file not found).
warning: No copy of AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 8963 thread 0x2303]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/UIKit.axbundle/UIKit (file not found).
warning: No copy of UIKit.axbundle/UIKit found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 9219 thread 0x2403]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TelephonyUIFramework.axbundle/TelephonyUIFramework (file not found).
warning: No copy of TelephonyUIFramework.axbundle/TelephonyUIFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TextInput.axbundle/TextInput (file not found).
warning: No copy of TextInput.axbundle/TextInput found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/MediaPlayerFramework.axbundle/MediaPlayerFramework (file not found).
warning: No copy of MediaPlayerFramework.axbundle/MediaPlayerFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/iTunesStoreFramework.axbundle/iTunesStoreFramework (file not found).
warning: No copy of iTunesStoreFramework.axbundle/iTunesStoreFramework found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AXExtraExtras.axbundle/AXExtraExtras (file not found).
warning: No copy of AXExtraExtras.axbundle/AXExtraExtras found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/QuickSpeak.bundle/QuickSpeak (file not found).
warning: No copy of QuickSpeak.bundle/QuickSpeak found locally, reading from memory on remote device.  This may slow down the debug session.
[Switching to process 9731 thread 0x2603]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/PreferencesFramework.axbundle/PreferencesFramework (file not found).
warning: No copy of PreferencesFramework.axbundle/PreferencesFramework found locally, reading from memory on remote device.  This may slow down the debug session.
2011-12-08 11:14:48.095 salah1[3198:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
*** First throw call stack:
(0x3802e8bf 0x31b141e5 0x3802e7b9 0x3802e7db 0x3565a747 0x3565bbb9 0x2a03 0x354469cb 0x35445aa9 0x35445233 0x353e9d4b 0x37f8d22b 0x33784381 0x33783f99 0x3378811b 0x33787e57 0x3377fd85 0x38002b4b 0x38000d87 0x380010e1 0x37f844dd 0x37f843a5 0x37b02fcd 0x35414743 0x21cd 0x2164)
terminate called throwing an exception[Switching to process 7171 thread 0x1c03]
(gdb) 
'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''