jailani
jailani

Reputation: 2270

Disable ARC for entire nested project in xcode

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

Answers (3)

Mahesh
Mahesh

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

Soumya Ranjan
Soumya Ranjan

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:

enter image description here

Upvotes: 3

user2179059
user2179059

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

Related Questions