![](https://img.haomeiwen.com/i2899677/4c0199c1f0660dd4.png)
添加后报以下的错误
'libxml/tree.h' file not found
![](https://img.haomeiwen.com/i2899677/561991f7926bd8f0.png)
${SDK_ROOT}/usr/include/libxml2
![](https://img.haomeiwen.com/i2899677/b0ec38fe0e9e99e9.png)
解决以后出现20个错误
'release' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'release'
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
'retain' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'retain'
![](https://img.haomeiwen.com/i2899677/9887a2917e48b6d7.png)
-fno-objc-arc
1.在targets->build phases中修改compiler Flags属性,添加:-fobjc-arc,就可以让旧的工程支持arc;
2.在targets->build phases中修改compiler Flags属性,添加:-fno-objc-arc,就可以让支持arc的工程不使用arc
![](https://img.haomeiwen.com/i2899677/df7843241767e4c3.png)
网友评论