unity导出的Xcode项目使用Masonry

unity3d导出的xcode项目,在使用Masnory框架时,编译运行报出如下错误:

ios cannot use "@throw" with objective-c exceptions disabled 

 查了资料,解决方案如下:

 

修改后编译运行木有问题了。

------------------------------

如果遇到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

------------------------

参考链接:

http://jingyan.baidu.com/article/bea41d4376b8a2b4c51be6ba.html

http://blog.sina.com.cn/s/blog_a573f7990101ctm1.html

posted on 2016-07-07 16:17  问题记录  阅读(461)  评论(0)    收藏  举报

导航