iOS SDK 5.1 on Snow Leopard

You can find the DMG for the latest XCode over here:

https://developer.apple.com/downloads/index.action

after you download it all you need to do is mount it and run the following commands

copy the iPhone SDK

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

copy the iPhone Simulator SDK

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

copy the Device Support folder
(replace 9B176 with the latest version that comes with XCode)

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/

remove and update the Latest symlink
(replace 9B176 with the latest version that comes with XCode)

sudo rm -f /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest
sudo ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s