使用 ios 9 版本构建时出现错误。 libc++abi.dylib 以 NSException 类型的未捕获异常终止 (lldb)

build getting error with ios 9 version. libc++abi.dylib terminating with uncaught exception of type NSException (lldb)

我在 IOS 9 台设备上构建应用程序时遇到以下错误。旧版本 ios 没有问题。 .无论如何要解决这个问题。

查看错误详情 应用程序启动结束' *** 首先抛出调用栈: (0x183fc8f5c 0x198bbff80 0x183fc8e2c 0x184eb7f3c 0x1897c0688 0x1897bd2e4 0x18dd0f7ec 0x18dd0fb6c 0x183f805a4 0x183f80038 0x183f7dd38 0x183eacdc0 0x18958c0ac 0x189586f44 0x10007b154 0x1993ea8b8) libc++abi.dylib:以 NSException 类型的未捕获异常终止 (lldb)

#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);             Thread 1 signal SIGABRT
[pool release];
return retVal;

我想你的问题会用这种方式解决: 在

之后设置你的 self.window.rootRootController
[self.window makeKeyAndVisible]

[window setRootViewController:viewController];

请看这个link:

还有:

Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:],