Reputation: 2270
I am using a xcode sub project inside my main project. My main project is ARC enabled but the sub project is MRC project So how can I tell the compiler that my entire sub project is not ARC supported instead setting -fno-objc for all .m files in build phase.
Upvotes: 2
Views: 370
Reputation: 204
If you want to Disable ARC for entire group of files of youe nested project
Goto Build Phases -> Compile sources select multiple files holding command ⌘ and press enter then add the value -fno-objc-arc It will reflect for all the selected files.
Upvotes: 2
Reputation: 4843
If you want to disabled for the whole project, go to your target's build settings and set Objective-C Automatic Reference Counting to No.
Like this:
Upvotes: 3
Reputation: 324
Try this : Goto the Target -> Build Settings -> Under Apple LLVM 6.0 - Language - Objective C -> Set Objective-C Automatic Reference Counting to NO.
Upvotes: 0