libXml ARC forbids explicit message send of'release'

 

'release' is unavailable: not available in automatic reference counting mode

 

 

ARC forbids explicit message send of'release'

'release' is unavailable: not available inautomatic reference counting mode

 

解决办法:

打开当前工程,打开"Build Settings",找到Objective-C Automatic Reference Counting项,将它的值设置为NO。

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

后来我的做法是把release 去掉,使用ARC的特性。
Objective-C Automatic Reference Counting=YES时候,所有的引用计数均自动执行。这是LLM的新特性,当非ARC环境时,可选择用这个。

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

要分情况处理,要多学习。oc的内存处理机制。

 

posted @ 2014-09-13 19:13  小毛驴  阅读(200)  评论(0编辑  收藏  举报