美文网首页
ios cannot use "@throw" with obj

ios cannot use "@throw" with obj

作者: Lee坚武 | 来源:发表于2023-10-20 16:00 被阅读0次
本人亲测有效!更多交流可以家魏鑫:lixiaowu1129,公重好:iOS过审汇总,一起探讨iOS技术!

我的项目是unity3d导出的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

相关文章

网友评论

      本文标题:ios cannot use "@throw" with obj

      本文链接:https://www.haomeiwen.com/subject/zgmkidtx.html