error: 'release' is unavailable: not available in automatic reference counting,该怎么解决
编译出现错误:
'release' is unavailable: not available in automatic reference counting mode..
解决办法:
You need to turn off Automatic Reference Counting. You do this by clicking on your project in the navigator (the top item in the finder-like thing on the left), then click on your target, select "Build Settings" and turn off the option "Objective-C Automatic Reference Counting" (you can use the search field on the upper right to search it).
单击工程名称,选择Build Settings下的Objective-c Automatic Reference Counting,将其调为No。如下图:
微信公众号:
猿人谷
如果您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】
如果您希望与我交流互动,欢迎关注微信公众号
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。