Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Objective C ARC using XCodeConfig settings

It is easy to turn off ARC in XCode using the Build Phases tricks, but is it possible to specify using XCodeConfig?

Seems to me that using XCodeConfig approach (if possible) is more flexible.

like image 773
Ryan Avatar asked Jul 13 '26 06:07

Ryan


1 Answers

ARC is implicitly off.

You could add this to your xcconfig:

CLANG_ENABLE_OBJC_ARC = NO

but you would still have the problem where the project/target/file local build settings override that behavior. You should just be able to grep your Xcode projects for CLANG_ENABLE_OBJC_ARC and objc-arc to find where it is actually enabled.

like image 54
justin Avatar answered Jul 14 '26 19:07

justin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!