转载自:http://stackoverflow.com/questions/7164848/arc-error-when-compiling

Simply remove all calls to-release. You're not allowed to call-releaseunder ARC because the compiler will insert all the necessaryretain/releasecalls for you. Read more about ARChere.

The other way is to use the conversion tool, and Xcode can convert your project to ARC (including removing these calls) for you:关于 ARC forbids explicit message send of 'release'

To disable ARC entirely, change your build settings:关于 ARC forbids explicit message send of 'release'

However I'd recommend you start using ARC, it will make things a lot easier and actually faster too.


相关文章:

  • 2021-11-21
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-06-07
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2021-05-01
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2021-08-27
相关资源
相似解决方案