xcode5解决问题ARC forbids explicit message send of 'release'

来源:互联网 发布:咸阳三原县广电网络 编辑:程序博客网 时间:2024/06/13 10:00

一、问题

用XCODE5新建工程,COPY老工程代码,编译出现以下错误:

ARC forbids explicit message send of 'release'


二、解决

工程-->"Build Settings"-->找到Objective-C Automatic Reference Counting项-->将它的值设置为NO。

再次编译,就没这个错误了。


原创粉丝点击