My Xcode only allows me to select Mac OS X 10.7 as the earliest Base SDK. Is it possible to install additional base SDKs?
How to build for Mac OS X 10.6 SDK in Xcode versions that don't include it
Asked Answered
Ok let me rephrase the question then... –
Preceptive
@sch Snow Leopard was released in 2009, and was still under NDA in March of 2012? –
Bunnybunow
No it is not.. And the NDA does not matter to stack overflow, I dont know why people are Agreement Nazi's its not Stackoverflow's job, nor is it the job of people on the site to enforce apple's agreements. If you dont feel comfortable talking about something you should just keep it to yourself. –
Dipterocarpaceous
I found an old version of Xcode 4.3 on one of my backup disks and dragged a copy of:
/Developer/SDKs/MacOSX10.6.sdk
to:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
It now sits along side the MacOSX10.7.sdk
and MacOSX10.8.sdk
, which were already there. They came with Xcode 4.4.
I'm running Xcode Version 4.4 (4F250) and OS X 10.8.
After restarting Xcode, remember to go into build settings and set the Base SDK to OS X 10.6 if it defaulted to "Current OS X" and your project requires the 10.6 sdk.
Yup, that works fine (I've shipped software with it); you can also just symlink it if you've got an old version of Xcode installed. –
Lenoralenore
Will probably have to repeat this process in some form when Xcode is updated. –
Aquarius
I upgraded to 4.4.1 and had to repeat it. –
Limit
I just did this in Xcode 6.1 and, amazingly, it still works. I just built a massive project, including CodeWarrior PowerPlant, in Xcode 6.1, using the 10.6 SDK. Of course I'll need to re-patch after updating Xcode – not a big deal! –
Vessel
Oh, yeah, but remember to launch the any version of Xcode once, to let Gatekeeper do its 5-minute thing, before you "damage" it by adding unauthorized SDK :) If you forget, you cannot just remove the SDK, you must reinstall Xcode and start over :( –
Vessel
Is there a reason you need the 10.6 SDK? If you set the deployment target to 10.6, you can use the 10.7 SDK and your app will run on 10.6, assuming you're not using anything added in 10.7.
Because I'm trying to compile legacy code that is trying to access APIs that are not there any more. –
Preceptive
If you have a copy of the 10.6 SDK, you could try adding it to the SDKs in Xcode's application bundle. If that doesn't work, Xcode 4.3 has the 10.6 SDK. –
Parsec
I can't install Xcode 4.3 in Mountain Lion OS X 10.8. That is essentially my question, how can I get and install SDK 10.6 in Xcode 4.4. –
Preceptive
@MarkSzymczyk Homebrew requires the Snow Leopard SDK, as of this comment (version 0.9.3) >.< –
Bunnybunow
© 2022 - 2024 — McMap. All rights reserved.