2011-10-19 63 views
0

我的应用程序的某些用户报告仅在固件升级到iOS 5后打开应用程序时发生崩溃。在固件升级之前一切正常 - 包括运行该应用程序并升级到更新版本的应用程序,然后运行它。加载NIB时应用程序崩溃 - 但仅在固件升级到iOS 5后才会崩溃

崩溃日志表明在加载NIB时死机发生:

0 CoreFoundation     0x32bb38bf __exceptionPreprocess + 163 
1 libobjc.A.dylib     0x36a1d1e5 objc_exception_throw + 33 
2 CoreFoundation     0x32bb37b9 +[NSException raise:format:] + 1 
3 CoreFoundation     0x32bb37db +[NSException raise:format:] + 35 
4 UIKit       0x3169a747 -[UINib instantiateWithOwner:options:] + 1567 
5 UIKit       0x3160a9cb -[UIViewController _loadViewFromNibNamed:bundle:] + 247 
6 UIKit       0x314e9ea1 -[UIViewController loadView] + 89 
7 UIKit       0x3145f78b -[UIViewController view] + 51 
8 UIKit       0x3146bc39 -[UIViewController contentScrollView] + 25 
9 UIKit       0x3146baa9 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 37 
10 UIKit       0x3146b98f -[UINavigationController _layoutViewController:] + 35 
11 UIKit       0x3146b211 -[UINavigationController _startTransition:fromViewController:toViewController:] + 501 
12 UIKit       0x3146af53 -[UINavigationController _startDeferredTransitionIfNeeded] + 251 
13 UIKit       0x3145f673 -[UINavigationController pushViewController:transition:forceImmediate:] + 807 
14 UIKit       0x3145f349 -[UINavigationController pushViewController:animated:] + 37 

出于某种原因,删除和后重新安装应用程序了iOS 5固件升级后可能会解决问题。

我完全不知道原因可能是什么。我非常感谢你的任何想法。

在此先感谢!

回答

0

Looks像Apple改变了他们对NIB进行反序列化的方式。我已经改为使用未编译的NIB而不是运行已编译的NIB。再次编译NIB解决了这个问题。

2

我在很多应用程序中都观察到这种行为。我最好的猜测是,它试图通过一个序列化的包加载之前的接口状态作为参数 - [UIViewController _loadViewFromNibNamed:bundle:],但是bundle类有人改变了它在4和5之间的序列化方式。

+0

非常感谢。我只是希望我能做些事:) – montuno

相关问题