我正在模拟器3.1.3版本上测试我的应用程序,运行正常。当它来到模拟器3.2或4.0时,它从一开始就崩溃了:
2010-09-28 18:36:39.957 Angeloni[23268:207] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'
*** Call stack at first throw:
(
0 CoreFoundation 0x0268cb99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x027dc40e objc_exception_throw + 47
2 CoreFoundation 0x02645238 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x026451aa +[NSException raise:format:] + 58
4 UIKit 0x005d03fa UINibDecoderDecodeObjectForValue + 2384
5 UIKit 0x005d1179 -[UINibDecoder decodeObjectForKey:] + 398
6 UIKit 0x004f6d77 -[UIRuntimeConnection initWithCoder:] + 212
7 UIKit 0x005d04ca UINibDecoderDecodeObjectForValue + 2592
8 UIKit 0x005cfdc2 UINibDecoderDecodeObjectForValue + 792
9 UIKit 0x005d1179 -[UINibDecoder decodeObjectForKey:] + 398
10 UIKit 0x004f6034 -[UINib instantiateWithOwner:options:] + 804
11 UIKit 0x004f7eb5 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
12 UIKit 0x003ad95f -[UIViewController _loadViewFromNibNamed:bundle:] + 70
13 UIKit 0x003ab675 -[UIViewController loadView] + 120
14 UIKit 0x003ab54f -[UIViewController view] + 56
15 Angeloni 0x000045ba -[MenuPrincipalViewController gotoOfertas:] + 109
16 UIKit 0x003017f8 -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x0038cde0 -[UIControl sendAction:to:forEvent:] + 67
18 UIKit 0x0038f262 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
19 UIKit 0x0038de0f -[UIControl touchesEnded:withEvent:] + 458
20 UIKit 0x003253d0 -[UIWindow _sendTouchesForEvent:] + 567
21 UIKit 0x00306cb4 -[UIApplication sendEvent:] + 447
22 UIKit 0x0030b9bf _UIApplicationHandleEvent + 7672
23 GraphicsServices 0x02f04822 PurpleEventCallback + 1550
24 CoreFoundation 0x0266dff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
25 CoreFoundation 0x025ce807 __CFRunLoopDoSource1 + 215
26 CoreFoundation 0x025cba93 __CFRunLoopRun + 979
27 CoreFoundation 0x025cb350 CFRunLoopRunSpecific + 208
28 CoreFoundation 0x025cb271 CFRunLoopRunInMode + 97
29 GraphicsServices 0x02f0300c GSEventRunModal + 217
30 GraphicsServices 0x02f030d1 GSEventRun + 115
31 UIKit 0x0030faf2 UIApplicationMain + 1160
32 Angeloni 0x00002342 main + 84
33 Angeloni 0x000022e5 start + 53
)
terminate called after throwing an instance of 'NSException'
有没有人遇到过这个问题?我在一些论坛上读到这是一个IB问题。
如果有人可以提供帮助。
答案 0 :(得分:0)
在我未使用任何故事板的项目中出现了此问题。
我必须要做的:
Info.plist
文件Main storyboard file base name
条目。