I installed Xcode 4.2 and it only has iOS SDK version 5 under /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
. However, my iOS Deployment Target is specified as iOS 4.0. The problem is that I cannot launch my app in the iOS Simulator if the version of the Simulator is lower than 5.0. That is, the program crashes under those:
- iPhone 4.0 Simulator
- iPhone 4.1 Simulator
- iPhone 4.2 Simulator
- iPhone 4.3 Simulator
Before I had Xcode 4.0 and everything worked correctly under all of the above simulators. Now the only working version is iPhone 5.0 Simulator.
Am I doing something wrong? How do I test my app on older iOS versions? Is it even possible with Xcode 4.2?
UPDATE: It all started working after I changed the compiler from LLVM GCC 4.2 to Apple LLVM compiler 3.0. But I'm still interested if anyone knows how to fix the stuff with the old compiler.