在iphone 4s设备(ver)5.0.1上测试。
崩溃:当您单击选项卡以从主页
进入索引页面时1)的main.m
//
// main.m
// salah1
// Created by syed ali on 30/11/2011.
// Copyright (c) 2011 j h birmingham. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
2)LOCAL:
argc int 1
argv char ** 0x2fdffbb4
*argv char * 0x2fdffc68
3)ALL OUTPUT:
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)
答案 0 :(得分:7)
您的问题是其中一个nib名称未正确命名:
由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'无法在包中加载NIB:'NSBundle(已加载)',名称为“Custom_Cell”
模拟器不区分大小写,但iPhone是。所以Custom_Cell
!= custom_cell
答案 1 :(得分:2)
错误在您提供的GDB堆栈中正确:
'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
你有一个名为 Custom_Cell 的NIB吗?你能告诉我们发生崩溃时正在执行的代码吗?您能否告诉我们如何在Interface Builder中定义 Custom_Cell ?