ios xcode error: use of '@import' when modules are disabled

error: use of ‘@import‘ when modules are disabled

 

Modules are enabled by default in new projects in Xcode 5. To enable them in an older project, go into your project build settings, search for "Modules" and set "Enable Modules" to "YES". The "Link Frameworks" should be "YES" too:

技术分享

 

 

 

 Cannot use ‘@try‘ with Objective-C exceptions disabled

Xcode打包提示:

Cannot use ‘@try‘ with Objective-C exceptions disabled

解决方法:

修改target -> build settings -> All | Combined -> Apple LLVM Compiler 4.2 - Language 中 Enable Objective-C Exceptions为YES

 

文章来自:http://www.cnblogs.com/iosDev2015/p/4398593.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3