Shark Deng

Interactive Designer @Shanju Design in Shanghai

touched caffe / mxnet / python / wordpress / bootstrap / Arduino / Raspberry Pi / webgl / three.js / PIXI / 3dMax

Email

Github

OC – retain is not available in ARC

2019-11-19 03:58:28

错误提示:’retain’ is unavailable: not available in automatic reference counting

 

1)检查项目是否ARC(一般都是)

target / Build Settings /  搜索Automatic

2)支持ARC和非ARC混合

target / Build Phases / Compile Sources

双击文件,

要支持ARC,写-fobjc-arc

要支持非ARC,写-fno-objc-arc

 



——By SharkDeng
如果你喜欢我的文章,欢迎红包赞赏

Leave a Reply

Your email address will not be published. Required fields are marked *