ARC forbids explicit message send of'release'

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


 

解决办法:

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

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

 

之前一直在为这个问题烦恼,因为编译一些代码总是提供autorelease等等的错误。

 

相关文章:

  • 2021-10-07
  • 2021-11-22
  • 2021-06-22
  • 2021-05-12
  • 2021-11-29
  • 2021-11-25
猜你喜欢
  • 2021-04-12
  • 2021-05-21
  • 2021-10-17
  • 2021-10-17
相关资源
相似解决方案