• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Arc per file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Arc per file
      • From: Crispin Bennett <email@hidden>
References: 
 >Arc per file (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Arc per file (From: Joar Wingfors <email@hidden>)
 >Re: Arc per file (From: Crispin Bennett <email@hidden>)

  • Prev by Date: Re: Arc per file
  • Next by Date: Re: Arc per file
  • Previous by thread: Re: Arc per file
  • Next by thread: Re: Arc per file
  • Index(es):
    • Date
    • Thread