转载自:http://stackoverflow.com/questions/7164848/arc-error-when-compiling
Simply remove all calls to -release. You're not allowed to call -release under ARC because the compiler will insert all the necessary retain/release calls for you. Read more about ARC here.
The other way is to use the conversion tool, and Xcode can convert your project to ARC (including removing these calls) for you: 
To disable ARC entirely, change your build settings: 
However I'd recommend you start using ARC, it will make things a lot easier and actually faster too.

本文介绍了在Objective-C与自动内存管理(ARC)结合使用时遇到的常见错误:编译时出现的ARC错误。通过移除所有手动的-release调用,可以解决这一问题。此外,还提供了将现有项目转换为全ARC项目的工具,并推荐开始使用ARC以简化内存管理并提高性能。
705

被折叠的 条评论
为什么被折叠?



