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

2,908 阅读1分钟

bug问题显示:

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

解决办法:

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

image.png

改为yes即可,然后可以编译通过 为:Yes 即可。