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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM