Created
February 21, 2012 19:12
-
-
Save micahpearlman/1878231 to your computer and use it in GitHub Desktop.
No ARC for specific files on iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you get the error: dyld: lazy symbol binding failed: Symbol not found: _objc_retain | |
from: http://stackoverflow.com/questions/6308425/ios-5-best-practice-release-retain | |
When you migrate a project to use ARC, the -fobjc-arc compiler flag is set as the default for all Objective-C source files. You can disable ARC for a | |
specific class using the -fno-objc-arc compiler flag for that class. In Xcode, in the target Build Phases tab, open the Compile Sources group to | |
reveal the source file list. Double-click the file for which you want to set the flag, enter -fno-objc-arc in the pop-up panel, then click Done. | |
http://stackoverflow.com/questions/8112035/libobjc-a-dylib-compile-error-on-ios-4-3 | |
Also, add -fobjc-arc to "Other Linker" flags. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment