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