编译器出错的问题

编译器出错的问题:

1. Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'

解决方法:

Change your compiler for C/C++/ObjectiveC Go to Build Settings->Build OPtions->compiler for C/C++/ObjectiveC; select Default(Apple LLVM5.0)


2. Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3491.2.5/UIApplication.m:3173

报错内容

如果还有报错在AppDelegate中

didFinishLaunchingWithOptions

定义一个空UIViewController即可,添加如下代码解决:

UIViewController *emptyView = [[UIViewController alloc ]initWithNibName:nil bundle:nil];

self. window .rootViewController = emptyView;


SDK平台

http://www.devstore.cn/

你可能感兴趣的:(编译器出错的问题)