Tuesday, July 31, 2012

Using OSX10.6 SDK with Xcode 4.4

I just discovered that after upgrading to Mountain Lion and Xcode 4.4 i get the following error (while trying to build AOSP) because Apple removed OSX10.6 SDK from xcode 4.4:

build/core/combo/HOST_darwin-x86.mk:38: *****************************************************
build/core/combo/HOST_darwin-x86.mk:39: * Can not find SDK 10.6 at /Developer/SDKs/MacOSX10.6.sdk
build/core/combo/HOST_darwin-x86.mk:40: * ** /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
build/core/combo/HOST_darwin-x86.mk:41: *****************************************************
build/core/combo/HOST_darwin-x86.mk:42: *** Stop..  Stop.


To solve this issue follow this guide:

1. Go to https://developer.apple.com/downloads/index.action and download Xcode 4.3.3 for lion.



2. After downloading mount the DMG file and browse its content (by clicking Show Package Content)

3. Browse to 

Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
4. Copy MacOSX10.6.sdk folder.
5. Repeat steps 2-3 on the real (4.4) Xcode (/aplications/xcode.app) and paste the OSX10.6 folder

And thats about it. Enjoy :)


1 comment: