Xcode : Cannot use '@try' with Objective-C exceptions disabled

unity3d 的ios项目,用xcode打开编译时报:

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

需要设置(Xcode9.4.1为例):

Build Settings -> Apple LLVM 9.0 - Language - Objective C -> Enable Objective-C Exceptions

为:Yes 即可。

你可能感兴趣的:(Xcode : Cannot use '@try' with Objective-C exceptions disabled)