Alan Quatermain

The Tumblog of one Jim Dovey, iOS Software Chief Architect at Kobo in Toronto, Ontario.
He Twitters, he has an , and can occasionally be found on LinkedIn or Facebook.
If you have a query, you can ask it here.

This blog contains personal opinions, and is not endorsed by any company.

941902003
I just updated to Snow Leopard and the new xcode and iPhone iOS. Now almost all my sample code I was playing with says "Base SDK Missing" Can I get the previous SDK's back?

AskerAnonymous

If you’re looking for the iOS 3.x SDKs, then the answer is no, with the exception of iOS 3.2 for iPad. I tried installing the old SDKs directly from the installer for my old Xcode version while I was at WWDC this year, but they still didn’t show up.

Ultimately the suggestion from Apple is that you build against the 4.x SDK while setting your minimum supported OS version to 3.x. You can also set the maximum version by defining __IPHONE_OS_VERSION_MAX_ALLOWED=__IPHONE_OS_VERSION_3_2 (I think that’s what it’s called) in your prefix header to limit yourself to only 3.x-compatible API calls at the compiler level. Leaving this step out will let you call OS 4 APIs, but it’ll crash/throw unless you manually check for the existence of those APIs at runtime. By defining the max version, these symbols are marked unavailable.

By compiling against the iPhone OS 4.x SDK, you automatically get some multitasking support features, such as your application retaining its state while in the background. Apps built against the 3.x SDKs will be quit & restarted.