Re: Arc per file
Re: Arc per file
- Subject: Re: Arc per file
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 19 Oct 2012 13:55:01 +0700
On 19 Oct 2012, at 12:01, Crispin Bennett < email@hidden> wrote: On 19/10/2012, at 2:37 PM, Joar Wingfors wrote: You can compile individual source files as either ARC / MRR by passing the appropriate compiler flags per file. You can specify per-file compiler files in:
Project Editor > Target > Compile Phases > Compile Sources > Foo.m
Joar
Just to expand on this, you could try:
- in Compile Phases, select all except the file you wish to convert to ARC, and add the -fno-objc-arc flag - now convert your project to ARC.
This is a clever idea, but it does not work.
When I tried Xcode → Edit → Refactor → Convert to Objectiv-C ARC I was informed that one of the files with the -fno-objc-arc flag uses autorelease, which is unavailable in ARC mode. "Xcode found 3 issues that prevent conversion from proceeding. Fix all ARC readiness issues and try again."
So it seems that the refactor-tool ignores these flags.
Kind regards,
Gerriet.
|
_______________________________________________
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