0

I have been refraining from upgrading Xcode until one specific project is out of the way, which is coming soon. I would like to be able to use ARC for future projects while keeping the ability to maintain and investigate issues with prior software products.

Question is can this be done with a single install of Xcode ? When I upgrade Xcode, will I be able to exclude ARC completely from some projects, and continue working without changing anything in those projects?

YvesLeBorg
  • 9,070
  • 8
  • 35
  • 48
  • do you mean this question ? http://stackoverflow.com/questions/6308425/ios-5-best-practice-release-retain – harshalb Feb 29 '12 at 13:10
  • @hib : no, i meant THIS question. Notice the emphasis on 'anything' ... i would rather open and start debugging a prior project without having to worry about any changes that could be introduced by the brand spankin new Xcode unbeknownst to me at project open time. If it is not possible, I will deal with it, but non-regression testing is expensive in time and resources. – YvesLeBorg Feb 29 '12 at 13:20
  • oh sorry . you got the answer after all – harshalb Feb 29 '12 at 14:03

1 Answers1

1

Yes. ARC is a build option for each project, or can even be enabled/disabled per-file.

joerick
  • 16,078
  • 4
  • 53
  • 57
  • so, when I open one of these antiques :) , the xcodeproj file will be read and understood properly, without any intrusive changes to it to enable ARC ? ie if it compiled and ran before, it will still do that with the freshly updated Xcode. – YvesLeBorg Feb 29 '12 at 13:13
  • Nope, they should still work fine. Depending on the version of Xcode, you might be compiling against a different SDK, so they may be issues with that, but ARC won't present any problem. – joerick Feb 29 '12 at 13:28
  • Well, if my use of SDK is probably totally backward compatible in those projects, that would be a lesser concern for me. Will be upgrading from Xcode 4.1.1 targeting iOS 4, to the newest out there. Thanks. – YvesLeBorg Feb 29 '12 at 13:31
  • where is the ARC settings for an individual project? – johnbakers Feb 29 '12 at 13:57
  • actually i just noticed it is a global setting when you create a new project, and it is turned off by default. that makes it easy. – johnbakers Feb 29 '12 at 14:02
  • @andrewx - hehehe ... that should make it easier then. I will still make a full 'other git' repo and 2 copies of each project beforehand, but it is reassuring to know. Thanks. – YvesLeBorg Feb 29 '12 at 14:23
  • wow, that went like a charm , i guess it must be my third update on Xcode :). This is the first one that did not turn out to be a walk through hell for me. – YvesLeBorg Mar 03 '12 at 02:35