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:

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


            
 

 

 

 

 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

 

 

 
 

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:

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


            
 

 

 

 

 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

 

 

相关文章: