应用程序在到达我的代码之前运行崩溃xcode6.1通用应用程序Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1 [英] app crashes at run before reaching my code xcode6.1 Universal App Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1

查看:304
本文介绍了应用程序在到达我的代码之前运行崩溃xcode6.1通用应用程序Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序在7.1模拟器或设备下运行时崩溃,并且使用StackTrace在8.1

App crashes at run under 7.1 simulator or device and runs fine on both with in 8.1

中运行正常:

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

我正在使用VersionControll,因为这个错误发生了。我确实退回到之前的提交,但错误不断发生。我很确定我的代码中没有任何内容。

I'm working with VersionControll an soon as this error occurs. I did step back to previous commit but the error keeps coming. I'm pretty sure it's nothing in my code.

我还尝试了使用Xcode 4.3.x为iOS 3.0构建通用应用程序 - NSKeyedUnarchiver例外

但是因为它是2岁,我使用xcode6.1它不起作用。

But since it's 2 years old an I use xcode6.1 it doesn't work.

推荐答案

iOS8中引入的Universial Storyboard工作原理适用于iPhone和iPad 8以及适用于iPad 7但适用于iPhone 7(仅限不创建任何iPad尺寸布局)

The Universial Storyboard introduced in iOS8 works for iPhone and iPad 8 and for iPad 7 but not for iPhone 7 (only if not creating any iPad size layouts)

我使用plist-keys <$解决了这个问题c $ c>主sroryboard文件基本名称(iPhone)和主sroryboard文件基本名称(iPad)引用不同的故事板和iPhone引用的默认为避免任何其他麻烦

i solved the problem by using plist-keys Main sroryboard file base name (iPhone) and Main sroryboard file base name (iPad) referencing diffrent Storyboards and the iPhone one referencing the default to avoid any other trouble

这篇关于应用程序在到达我的代码之前运行崩溃xcode6.1通用应用程序Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆