PDA

View Full Version : Where did my ARC checkbox go???




chrono1081
Jan 24, 2012, 12:50 PM
Hi guys,

I'm re-learning Objective-C and the book I'm using uses ARC, however the checkbox for ARC no longer appears when I create a new project in XCode 4.2 (you know how there is a checkbox that says "Use ARC", its not there anymore 0_0).

Has anyone had this happen before or know how to fix it? Its screwing up some exercises I'm working on because my objects aren't being released.

EDIT: Yes I'm aware I can do it manually but thats for when I go through Steve Kochan's book again.



KnightWRX
Jan 24, 2012, 12:56 PM
You did search on Google right ?

http://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html#//apple_ref/doc/uid/TP40011226-CH1-DontLinkElementID_7

Can I develop applications for Mac OS X with ARC using Snow Leopard?

No. The Snow Leopard version of Xcode 4.2 doesn’t support ARC at all on Mac OS X, because it doesn’t include the 10.7 SDK. Xcode 4.2 for Snow Leopard does support ARC for iOS though, and Xcode 4.2 for Lion supports both Mac OS X and iOS. This means you need a Lion system to build an ARC application that runs on Snow Leopard.

Could this be your problem mayhaps ?

chrono1081
Jan 24, 2012, 12:57 PM
You did search on Google right ?

http://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html#//apple_ref/doc/uid/TP40011226-CH1-DontLinkElementID_7



Could this be your problem mayhaps ?

Thats it!

I did google search for awhile and messed with all kinds of build settings found on all kinds of forums (this being my most recent one: http://longweekendmobile.com/2011/09/07/objc-automatic-reference-counting-in-xcode-explained/ ) but never ran across the Snow Leopard thing. Thanks again!

KnightWRX
Jan 24, 2012, 01:07 PM
For reference, search string : "Xcode 4.2 ARC checkbox".

First link leads to : http://forums.bignerdranch.com/viewtopic.php?f=170&t=3333

2nd post in that thread loads to : http://www.cocoabuilder.com/archive/xcode/310819-arc-on-snow-leopard.html

Which has the information in post #4 and a link to Apple's documentation.

chrono1081
Jan 24, 2012, 01:13 PM
Thanks!

I was searching "No ARC checkbox in XCode" and "How to enable ARC in XCode"

Bad search terms :o