Iphone 无法加载名为的nib

Iphone 无法加载名为的nib,iphone,objective-c,cocoa-touch,crash-reports,Iphone,Objective C,Cocoa Touch,Crash Reports,我刚刚发布了我的新应用程序iBeat,它在发布之前对我和我的朋友都很好 现在看来,许多客户都遇到了同样的崩溃,而这种情况总是发生在相似的阶段 以下是一份(符号化)碰撞报告示例: Exception Type: SIGTRAP Exception Codes: #0 at 0x30d7c2d4 Crashed Thread: 0 Application Specific Information: *** Terminating app due to uncaught exception \'

我刚刚发布了我的新应用程序iBeat,它在发布之前对我和我的朋友都很好

现在看来,许多客户都遇到了同样的崩溃,而这种情况总是发生在相似的阶段

以下是一份(符号化)碰撞报告示例:

Exception Type:  SIGTRAP
Exception Codes: #0 at 0x30d7c2d4
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception \'NSInternalInconsistencyException\', reason: \'Could not load NIB in bundle: \'NSBundle </var/mobile/Applications/5BBE8B5E-ECF5-4CA8-97A6-1F5BF8AC7792/iBeat.app> (loaded)\' with name \'SettingsVC_iPad\'\'

Thread 0 Crashed:
0   libSystem.B.dylib                   0x000792d4 __kill + 8
1   libSystem.B.dylib                   0x000792bd raise + 17
2   iBeat                               0x0003f301 uncaught_exception_handler (PLCrashReporter.m:137)
3   CoreFoundation                      0x000a0adf __handleUncaughtException + 239
4   libobjc.A.dylib                     0x00006593 _objc_terminate + 103
5   libstdc++.6.dylib                   0x00042df9 __cxxabiv1::__terminate(void (*)()) + 53
6   libstdc++.6.dylib                   0x00042e4d std::terminate() + 17
7   libstdc++.6.dylib                   0x00042f1d __cxa_throw + 85
8   libobjc.A.dylib                     0x000054cb objc_exception_throw + 71
9   CoreFoundation                      0x000a07c9 +[NSException raise:format:arguments:] + 69
10  CoreFoundation                      0x000a0803 +[NSException raise:format:] + 35
11  UIKit                               0x001e9783 -[UINib instantiateWithOwner:options:] + 1111
12  UIKit                               0x001eab39 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 93
13  UIKit                               0x0013e8e5 -[UIViewController _loadViewFromNibNamed:bundle:] + 37
14  UIKit                               0x0013dcb9 -[UIViewController loadView] + 81
15  UIKit                               0x0003e227 -[UIViewController view] + 31
16  UIKit                               0x0004ad0b -[UIViewController contentScrollView] + 23
17  UIKit                               0x0004ab7b -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 31
18  UIKit                               0x0004aa79 -[UINavigationController _layoutViewController:] + 25
19  UIKit                               0x0004a551 -[UINavigationController _startTransition:fromViewController:toViewController:] + 381
20  UIKit                               0x0004a35f -[UINavigationController _startDeferredTransitionIfNeeded] + 183
21  UIKit                               0x0004a2a3 -[UINavigationController viewWillLayoutSubviews] + 15
22  UIKit                               0x0004a23f -[UILayoutContainerView layoutSubviews] + 139
23  UIKit                               0x000130cf -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 27
24  CoreFoundation                      0x0003ebbf -[NSObject(NSObject) performSelector:withObject:] + 23
25  QuartzCore                          0x0000f685 -[CALayer layoutSublayers] + 121
26  QuartzCore                          0x0000f43d CALayerLayoutIfNeeded + 185
27  QuartzCore                          0x0000f377 -[CALayer layoutIfNeeded] + 79
28  UIKit                               0x0008c48f -[UIView(Hierarchy) layoutIfNeeded] + 23
29  UIKit                               0x000d0ec1 -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 357
30  UIKit                               0x00110e49 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 3101
31  UIKit                               0x000cf6db -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 679
32  UIKit                               0x000cefc7 -[UIViewController presentModalViewController:withTransition:] + 2139
33  UIKit                               0x000ce6a3 -[UIViewController presentModalViewController:animated:] + 59
34  iBeat                               0x000044f3 -[MetronomeVC settingsTapped] (MetronomeVC.m:956)
异常类型:SIGTRAP
异常代码:0x30d7c2d4处为0
崩溃线程:0
特定于应用程序的信息:
***由于未捕获异常“NSInternalInconsistencyException\”而终止应用程序,原因:\'无法在捆绑包中加载NIB:\'NSBundle(loaded)\'名称为'SettingsVC\u iPad\'
线程0崩溃:
0 libSystem.B.dylib 0x000792d4\u kill+8
1 libSystem.B.dylib 0x000792bd提升+17
2 iBeat 0x0003f301未捕获异常处理程序(PLCrashReporter.m:137)
3 CoreFoundation 0x000a0adf\uuu handleUncaughtException+239
4 libobjc.A.dylib 0x00006593 _objc_终止+103
5 libstdc++.6.dylib 0x00042df9_uucxxabiv1::uu终止(void(*)()+53
6 libstdc++.6.dylib 0x00042e4d std::terminate()+17
7 libstdc++.6.dylib 0x00042f1d\uu cxa\u throw+85
8 libobjc.A.dylib 0x000054cb objc_异常_抛出+71
9 CoreFoundation 0x000a07c9+[N异常提升:格式:参数:][69
10 CoreFoundation 0x000a0803+[N异常提升:格式:][35
11 UIKit 0x001e9783-[UINib实例化所有者:选项:][1111
12 UIKit 0x001eab39-[NSBundle(UINSBUNDLEADTIONS)LOADNIBNAME:所有者:选项:][93
13 UIKit 0x0013e8e5-[UIViewController\u loadViewFromNibNamed:bundle:][37
14 UIKit 0x0013dcb9-[UIViewController loadView]+81
15 UIKit 0x0003e227-[UIViewController视图]+31
16 UIKit 0x0004ad0b-[UIViewController内容滚动视图]+23
17 UIKit 0x0004ab7b-[UINavigationController _计算机和应用程序克隆内容插入EltaForviewController:+31
18 UIKit 0x0004aa79-[UINavigationController\u layoutViewController:+25
19 UIKit 0x0004a551-[UINavigationController\u开始转换:从视图控制器:到视图控制器:][381
20 UIKit 0x0004a35f-[UINAVIGATIONCONTROLLENT\u STARTDEFERREEDTRANSION(如果需要)]+183
21 UIKit 0x0004a2a3-[UINavigationController视图将布局子视图]+15
22 UIKit 0x0004a23f-[UILayoutContainerView布局子视图]+139
23 UIKit 0x000130cf-[UIView(CALayerDelegate)布局层的子层:+27
24 CoreFoundation 0x0003ebbf-[NSObject(NSObject)性能选择器:withObject:+23
25夸脱芯0x0000f685-[CALayer布局子层]+121
26夸脱芯0x0000f43d CalayerLayoutifNeed+185
27夸脱芯0x0000f377-[需要加料层布局]+79
28 UIKit 0x0008c48f-[UIView(层次结构)布局需要]+23
29 UIKit 0x000d0ec1-[UIViewController窗口:WillAnimateRotationInterfaceOrientation:duration:+357
30 UIKit 0x00110e49-[UIWindow\u setRotatableClient:TooOrientation:updateStatusBar:duration:force:+3101
31 UIKit 0x000cf6db-[UIWindowController转换:从ViewController:到ViewController:目标:DiEndSelector:+679
32 UIKit 0x000cefc7-[UIViewController presentModalViewController:带转换:][2139
33 UIKit 0x000ce6a3-[UIViewController presentModalViewController:动画:][59
34 iBeat 0x000044f3-[节拍器设置状态](节拍器m:956)
此崩溃发生在所有受支持的iOS版本中,具有不同的nib文件,即设置SVC_iPad、InfoVC_iPhone或设置_VC_iPhone

问题是,我无法在iPod和iPad上重现此错误

有什么建议吗?(这次撞车似乎很常见,我已经收到了200个关于这次撞车的报告)


编辑:为了澄清这一点,我确实对从应用商店下载的版本进行了实验,所以我尝试用发生错误的确切版本重新创建它。

我不确定它是否解决了您的问题。。但我强烈怀疑这是个错误

我认为当你打包你的应用程序时,你没有将你的nib文件复制到你的项目中,并且只有一个引用

您没有收到此错误,因为您可能是从开发mac上获取应用程序,并且nib文件的引用存在


从你的iphone中删除该应用,然后尝试从应用商店下载该应用,然后查看

很抱歉给您带来不便,但这完全是我的错

在开发的早期,我计划做一个法语版本,所以我有一个fr.lproj文件夹,我从未删除过。很明显,当应用程序以法语启动时,它还在那里寻找我的IB文件的法语版本


“在n'a jamais fini d'apprendre上。”

如果从应用商店下载应用程序,是否可以重新创建错误?这可能是iOS版本的问题。可能是内存不足导致的崩溃吗?试着打开一堆东西,然后打开你的应用程序,看看你是否可以重新创建崩溃。你的nib文件的名称是什么?nib文件的名称是“InfoVC_iPhone.xib”,它有德语和英语版本,但我测试了将我的iPad切换为德语和英语,仍然无法重新创建错误。不幸的是,我做到了这一点,因为那也是我的第一个猜测。我从iPad和iTunes中删除了这个应用程序,从商店下载并与iTunes同步