user2105505
user2105505

Reputation: 706

Xcode 5 Developing for OS X 10.6

I have 10.9/Xcode 5 and I'm trying to write a Cocoa app for Snow Leopard. I deactivated auto layout and set the deployment target to 10.6, but the archived application won't launch on 10.6 because it can't load the nib (console output). From what I've read, I need to use garbage collection instead of ARC. If this is true, how to I modify my project to build and run for 10.6? Thanks for your advice.

Upvotes: 2

Views: 1115

Answers (1)

Rob Napier
Rob Napier

Reputation: 299265

First, make sure the XIB itself is configured to build for 10.6. In the right-hand pane of Interface Builder, you should see this:

enter image description here

If you're targeting 64-bit 10.6, then you can use ARCLite, which is just fine and I strongly recommend it. The only thing you really give up is auto-zeroing weak references. You only have to give up ARC if you go 32-bit. I recommend sicking to 64-bit if you can possibly help it. You give up a lot if you target 32-bit. To use ARCLite, you don't have to change anything. It's automatically selected when you compile an ARC program for 10.6.

As a note: yes, what you're doing is totally possible. I still target 10.5 with a 10.9/Xcode5 setup.

Upvotes: 2

Related Questions