Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build for Mac OS X 10.6 SDK in Xcode versions that don't include it

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?

like image 479
Dimitris Avatar asked Mar 08 '12 17:03

Dimitris


People also ask

How do I change base SDK in Xcode?

Several years ago developers were allowed to manually choose a Base SDK to compile their apps against but Apple has removed this feature. All modern versions of Xcode come with an SDK pre-installed that developers cannot easily change nor should you.

How do I check my Xcode SDK version?

framework file, locate and open the Info. If you are using an IDE (Integrated Development Environment), such as Xcode, look for the value for the key Bundle versions string. Xcode automatically formats the file in a table. If you are not using an IDE, the value to look for is CFBundleShortVersionString.

Can I have two versions of Xcode installed?

You can have multiple versions of Xcode installed at the same time (including beta versions). Simply rename the application in Finder to avoid conflicts. Note: Installing Xcode from the App Store will tend to overwrite an existing version on your machine.


1 Answers

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.

like image 117
bakercp Avatar answered Oct 10 '22 06:10

bakercp