Re: Problems converting OSX Project to ARC
Re: Problems converting OSX Project to ARC
- Subject: Re: Problems converting OSX Project to ARC
- From: David Hoerl <email@hidden>
- Date: Mon, 30 Jan 2012 13:40:32 -0500
On 1/30/12 1:05 PM, David Duncan wrote:
On Jan 30, 2012, at 7:26 AM, David Hoerl wrote:
I decided to manually switch the project to ARC. So I set the SDK and target to 10.7, build for 64 bit only, and enabled ARC. Clean and build - but it didn't work (I added "has_feature(objc_arc)" tests all over.
ARC didn't take - sorry to be so obtusive. In other words, I had this
block header of "#if ! __has_Feature(objc_arc)", and it tripped. I then
added a [someObj retain] and got no complaint.
Sooooo - is there some hidden flag, or some magic that must be done to make the switch manually? I'm like 99% sure I've manually converted iOS projects, but I have so few OSX projects now so no prior experience.
Did you switch the compiler to LLVM Compiler when things weren't working?
Compiler was set to llvm - I checked. Don't think there is another
option now is there? [llvm with gcc frontend?]. I always just use ARC.
--
David Duncan
I probably can reproduce since the project was under source control. I
just could find no setting that had changed after I did the refactor.
That said, I closed and reopened the project but did NOT restart Xcode.
I tripple checked the project AND the target settings too. Looked to see
if somehow the files were marked with 'fno-objc-arc" in the Build
Phases. It was just plain bizarre.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden