无法加载名为
我刚刚发布了我的新应用程序 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)
此崩溃发生在所有受支持的 iOS 版本中,具有不同的 nib 文件,即 SettingsVC_iPad、InfoVC_iPhone 或 Settings_VC_iPhone。
问题是,我无法在我的 iPod 和 iPad 上重现此错误。
有什么建议吗? (这个崩溃似乎很常见,我已经收到了 200 个崩溃报告)
编辑:为了澄清,我确实对从 App Store 下载的版本进行了实验,所以我尝试使用发生错误的确切版本重新创建它。
I just released my new App iBeat, which worked fine for me and my friends before release.
Now appearently many customers get the same crash, that is always happening at a similar stage.
Here's a (symbolicated) sample crash-report:
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)
This crash happens across all supported iOS versions, with different nib-files, that is with SettingsVC_iPad, InfoVC_iPhone or Settings_VC_iPhone.
The problem is, I can't recreate this error, not on my iPod, neither on my iPad.
Any suggestions? (This crash seems to be really common, I already got 200 crashreports on this)
EDIT: To clarify, I did experiment with the downloaded version from the App Store, so I tried to recreate it with the exact version the errors happened with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定它是否解决了您的问题..但我强烈怀疑这是错误...
我认为当您打包您的应用程序时,您没有将您的 nib 文件复制到您的项目中,并且那里只有一个引用。 .
您没有收到此错误,因为可能您正在从开发Mac中获取应用程序,并且nib文件的引用存在于其中..
从您的iPhone中删除该应用程序并尝试从应用程序商店下载该应用程序,然后查看..
I am not sure it solves ur problem or not .. but I strongly doubt that this is the mistake ...
I think when u packaged ur application , u didn't copy ur nib file into ur project and has only a reference there..
You are not getting this error because probably you are taking your app from your development mac and the nib file's reference is present there ..
Delete the app from ur iphone and Try downloading the app from app store and then see ..
很抱歉给您带来不便,但这完全是我的错。
在开发的早期,我计划制作一个法语版本,所以我有一个从未删除的 fr.lproj 文件夹。显然,当以法语启动时,该应用程序仍在寻找我的 IB 文件的法语版本。
“On n'a jamais fini d'apprendre。”
Sorry for the inconvenience, but it was totally my fault.
Really early in the development I was planning to do a french version, so I had an fr.lproj folder that I never deleted. Appearently the App was still looking for french versions of my IB files there, when started in french.
"On n'a jamais fini d'apprendre."