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

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

一、问题

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

ARC forbids explicit message send of 'release'


二、解决

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

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

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