gpt4 book ai didi

iphone - 此编码器要求从 initWithCoder :' 返回替换的对象

转载 作者:行者123 更新时间:2023-12-03 19:02:15 24 4
gpt4 key购买 nike

我正在模拟器 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 问题。

如果有人可以帮忙。

最佳答案

在我没有使用任何 Storyboard 的项目中遇到此问题。

我必须做什么:

  • 转到我的项目的 Info.plist 文件
  • 删除其中的主 Storyboard文件基本名称条目。

关于iphone - 此编码器要求从 initWithCoder :' 返回替换的对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3821219/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com