Reputation: 29795
I'm trying to convert my project to arc. I have set the -fno-objc-arc for all files that I want excluded from arc. I then go to edit > convert to objective-c arc and the conversion process still attempts to convert them. They fail conversion and hault me from moving forward.
Does anyone know what I can do to have the conversion process recognize my do not convert flag (-fno-objc-arc)?
Thanks!
Upvotes: 4
Views: 965
Reputation: 25619
Select Edit -> Refactor -> Convert To Objective-C ARC first, then select the target to convert, then expand the target and un-check any source files you do not want converted.
The ARC converter will skip over the de-selected files and add the -fno-objc-arc
flag where necessary.
Upvotes: 5