I am having big problems since I downloaded the beta version of iPhone SDK 4.0.
Okay, I just started to look at iPhone development a few weeks ago, but I cannot figure out how Xcode is supposed to work:
whenever I start a new project, I choose a template like “View-based application” or so. Now, the target will always (at least I did not find a preference anywhere!) be the latest SDK: 4.0.
But then: switching the target back to, say, 3.1.3 the template files seem to contain errors! Starting an empty application this way yields an exception:
Terminating app due to uncaught
exception ‘NSUnknownKeyException’,
reason: […] this class is not key
value coding-compliant for the key
rootViewController
Reason, it seems, is that the generated MainWindow.xib has a “referencing outlet” for rootViewController next to a viewController…
sick
Now, my (stupid) question: How do I develop an application NOT targeting the latest SDK, but the standard 3.1.3 SDK?? In other words: I would expect Xcode not only to ask for a project type in the New Project window, but also for my desired target platform to generate the correct templates!!
Am I right that the templates generated with this step are not valid for any other target than 4.0?
How can that be??
…I want my Eclipse back! sigh
Can anybody help me please?
The answer to the question I was looking for seems to be:
It is not possible.
To develop for a certain iOS release, install the appropriate Xcode.
Apple apparently does not know people who want to develop for multiple target platforms at once. 🙁