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

时间:2015-04-07 17:25:33   收藏:0   阅读:8025

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!