How can I add older version of iOS SDK in Xcode 4.5

sinopec picture sinopec · Sep 21, 2012 · Viewed 62.4k times · Source

I copied the iOS 5.1 SDK here:

Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

But, I still can't choose the base SDK in Xcode. Can anybody help?

Answer

Guru picture Guru · Sep 21, 2012

You need to copy the iPhoneOS5.1.sdk to the directory

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk

and iPhoneSimulator5.1.sdk to

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk

(You'll need to restart Xcode to be able to select the SDKs in the Base SDK build option.)