I have thousands of lines of code written for iOS 4. The code base contains many retain and release calls that cause errors when upgrading a project to iOS 5 and ARC.
retain
release
Is there a way to automatically convert a manual recovery-release (MRR) code to automatic link counting (ARC)?
In Xcode 6+, now the command:
Edit > Convert > To Objective-C ARC...
From Xcode 4.2 release notes :
To start the process, enable Continue building after errors in the General settings panel, then select Edit> Refactoring> Convert to Objective-C ARC . The goals you convert are updated for assembly using the Apple LLVM compiler. Xcode is trying to build your goal and to determine what changes need to be made to use ARC. If it finds any problems that prevent the conversion, Xcode displays a dialog that guides you to view errors in the problem navigator. After fixing the error, select Convert to Objective-C Automatically reference counting again to restart the ARC conversion workflow.