【发布时间】:2015-02-17 15:30:08
【问题描述】:
应用程序在 7.1 模拟器或设备下运行时崩溃,但在 8.1 中运行良好
使用 StackTrace:
appName[10676:607] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver?
appName[10676:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '(null)'
*** First throw call stack:
(
0 CoreFoundation 0x007a91e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x005258e5 objc_exception_throw + 44
2 CoreFoundation 0x007a8fbb +[NSException raise:format:] + 139
3 UIKit 0x01064b7b -[UINib instantiateWithOwner:options:] + 951
4 UIKit 0x013138bd -[UIStoryboard instantiateViewControllerWithIdentifier:] + 220
5 UIKit 0x01313a36 -[UIStoryboard instantiateInitialViewController] + 74
6 UIKit 0x00daf6ac -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 79
7 UIKit 0x00daf949 -[UIApplication _loadMainInterfaceFile] + 245
8 UIKit 0x00dae54e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543
9 UIKit 0x00dc2f92 -[UIApplication handleEvent:withNewEvent:] + 3517
10 UIKit 0x00dc3555 -[UIApplication sendEvent:] + 85
11 UIKit 0x00db0250 _UIApplicationHandleEvent + 683
12 GraphicsServices 0x02e83f02 _PurpleEventCallback + 776
13 GraphicsServices 0x02e83a0d PurpleEventCallback + 46
14 CoreFoundation 0x00724ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
15 CoreFoundation 0x007249db __CFRunLoopDoSource1 + 523
16 CoreFoundation 0x0074f68c __CFRunLoopRun + 2156
17 CoreFoundation 0x0074e9d3 CFRunLoopRunSpecific + 467
18 CoreFoundation 0x0074e7eb CFRunLoopRunInMode + 123
19 UIKit 0x00dadd9c -[UIApplication _run] + 840
20 UIKit 0x00daff9b UIApplicationMain + 1225
21 appName 0x000d3e48 main + 136
22 libdyld.dylib 0x02a766d9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
一旦发生此错误,我将使用 VersionControl。我确实退回到以前的提交,但错误不断出现。我很确定我的代码中什么都没有。
我也尝试了Build universal app for iOS 3.0 using Xcode 4.3.x - NSKeyedUnarchiver Exception的所有解决方案
但是由于它已经 2 岁了,我使用 xcode6.1 它不起作用。
【问题讨论】:
-
问题的根源是通用情节提要...我先对 iPhone 进行了编码,然后添加了 iPad 约束 iPad 7.1 不受仅 iPhone 7.1 错误的影响...看起来我有解决这个问题
-
什么是VersionControll?
-
例如 git 或 svn
-
抱歉我的拼写错误,我不会说英语,而且我有阅读障碍一些错误/拼写错误/错别字出现在我眼中的速度不像母语使用者和非阅读障碍者那样快跨度>
标签: ios7 ios8 xcode6.1 ios-universal-app nskeyedunarchiver