本人親測有效患雏!更多交流可以家魏鑫:lixiaowu1129盆佣,公重好:iOS過審匯總痕慢,一起探討iOS技術(shù)!
我的項目是unity3d導(dǎo)出的xcode項目倒慧,在使用Masnory框架時,編譯運行報出如下錯誤:
ios cannot use "@throw" with objective-c exceptions disabled
查了資料包券,解決方案如下:
image.png
修改后編譯運行木有問題了纫谅。
如果遇到u3d項目與object-c項目交互的話,會遇到以下問題:
不支持@try 或@throw
標簽:
Cannot use '@try' with Objective-C exceptions disabled 或
ios cannot use "@throw" with objective-c exceptions disabled
解決辦法:修改target -> build settings -> All | Combined -> Apple LLVM Compiler 7.0 - Language 中 Enable Objective-C Exceptions 為YES