我解决了这个问题,这个详细的堆栈跟踪:
#0 0x302ac924 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___
#1 0x904a3509 in objc_exception_throw
#2 0x3028e5fb in +[NSException raise:format:arguments:]
#3 0x3028e55a in +[NSException raise:format:]
#4 0x30513b77 in -[NSKeyedUnarchiver initForReadingWithData:]
#5 0x30ab4b2a in -[UINib instantiateWithOptions:owner:loadingResourcesFromBundle:]
#6 0x30ab6eb3 in -[NSBundle(NSBundleAdditions) loadNibNamed:owner:options:]
#7 0x308f85f1 in -[UIApplication _loadMainNibFile]
#8 0x30901a15 in -[UIApplication _runWithURL:sourceBundleID:]
#9 0x308fef33 in -[UIApplication handleEvent:withNewEvent:]
#10 0x308fad82 in -[UIApplication sendEvent:]
#11 0x309013e1 in _UIApplicationHandleEvent
#12 0x32046375 in PurpleEventCallback
#13 0x30245560 in CFRunLoopRunSpecific
#14 0x30244628 in CFRunLoopRunInMode
#15 0x308f930d in -[UIApplication _run]
#16 0x309021ee in UIApplicationMain
#17 0x0000255c in main at main.m:14
的应用程序崩溃时调用mainNibFile。我不知道为什么,但只需重新保存MainWindow.xib即可解决问题。
重置模拟器或卸载应用程序没有帮助。 而我错了:在3.0设备上发生同样的异常。但是对于使用3.1.2的设备构建相同的版本没有问题。堆栈跟踪:...#4 in - [UINpplication _loadMainNibFile]中的[NSBundle(NSBundleAdditions)loadNibNamed:owner:options:],#7 - [UINib instantiateWithOptions:owner:loadingResourcesFromBundle:],#4 in - [NSKeyundUnarchiver initForReadingWithData:],#5 in - [UIApplication _loadMainNibFile] ,#8 in - [UIApplication _runWithURL:sourceBundleID:] ... – Florian 2010-01-28 16:33:21