问题
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?
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/9621859/how-to-build-for-mac-os-x-10-6-sdk-in-xcode-versions-that-dont-include-it