I'm having big problems since I downloaded the beta version of iPhone SDK 4.0. Well, I just started learning iPhone development a few weeks ago, but I can't figure out how Xcode should work:
whenever I start a new project, I choose a template, for example, "Application based on presentation" or so on. Now the goal is always (at least I haven’t found any preference anywhere!) - this is the last SDK: 4.0. But then: switching the target back to, say, in 3.1.3, the template files seem to contain errors! Running an empty application this way gives an exception:
Application termination due to non-displayable exception "NSUnknownKeyException", reason: [...] this class is not a key value corresponding to the encoding for the RootViewController key
It seems that the reason is that the generated MainWindow.xib has a "reference socket" for the rootViewController next to the viewController ...
is ill
Now, my (stupid) question is: how do I develop an application not aimed at the latest SDK, but the standard 3.1.3 SDK ?? In other words: I would expect Xcode to not only ask for the type of project in the New Project window, but also for my target target platform to generate the correct templates!
Is it correct that the templates generated with this step are invalid for any purpose other than 4.0? How can it be?
... Eclipse!
- ?