Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get macos SDK 10.6 for Xcode?

Tags:

I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks.

I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way.

I am wondering how can I install previous SDKs for Xcode?

like image 464
Umar Jamil Avatar asked Aug 16 '12 14:08

Umar Jamil


People also ask

How do I download Xcode SDK?

The previous versions of SDK are bundled with each version of Xcode, which you can download from https://developer.apple.com/downloads/?name=Xcode.

Where are MacOS SDK located?

The SDK is located at /Applications/Xcode. app/Contents/Developer/Platforms/MacOSX. platform/Developer/SDKs/MacOSX.

What is MacOS SDK?

A software development kit (SDK) provides a set of files to build applications for a target platform, and defines the actual location of those files on the target platform or an intermediate platform that supports the target platform.


2 Answers

Unfortunately, Apple tends to make this much harder than you'd like. You can't download SDKs by themselves. They come as part of specific versions of Xcode. So you have to download the right version of Xcode. Search for "10.6", and you'll see that you want Xcode 4.1.

Once you download that, you can install it (that version will go into /Developer, so it won't break your /Applications version), or you can open up the package and find the SDKs in it. If you don't know how to crack open these packages, just install it.

Once you do that, search for "MacOSX10.6.sdk". I forget exactly where it is in that particular version.

What I do at that point is copy the sdk into a /SDKs directory. That way I always have them all.

Now, you need to add it to your current version of Xcode. You can do that by making symlinks in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs. If you like, you can use my tiny link-sdks script for that.


UPDATE: In modern versions of Xcode (7.3+) to use older SDKs edit MinimumSDKVersion here:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist 
like image 73
Rob Napier Avatar answered Oct 08 '22 01:10

Rob Napier


All legacy MacOS SDKs can be found on GitHub - https://github.com/phracker/MacOSX-SDKs

like image 29
tim-montague Avatar answered Oct 08 '22 01:10

tim-montague