I am trying to change my OS X project deployment target but i keep getting this error and my build fails.
clang: error: -fobjc-arc is not supported on current deployment target
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I have no clue what this means or what I have to do.
This means you need to disable ARC in order to support MacOS 10.5. The oldest version of MacOS that works with ARC is 10.6 .
Turning off ARC might be pretty tough for a developer to do, especially depending on the size of your project, since that means you have to put in a bunch of brand new " retain
" and " release
" calls for potentially a boatload of objects.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.