views:

988

answers:

2

If I install SDK 4.0 of the iPhone OS will I still be able to create a non 4.0 iPad app?

I would ideally like to submit a iPad app in the next month but am also hoping to develop a 4.0 iPhone app is it possible to use the 4.0 SDK to create 3.0 iPad apps or am I going to need to computers?

+2  A: 

You do not need two computers. You will have to install the two SDKs in two different directories. So far, it's always been the way that beta releases of the SDK were not meant (and not allowed) to generate apps for distribution.

But in the installer, just select another new directory and then install the second SDK there. That's all there is to it.

Konrad Neuwirth
While Apple DOES support compiling to older versions of the SDK, I would heartily endorse this method. In the past, there have been differences that made compiling to older versions problematic.
mmc
This is actually the correct answer as I was burned doing Johannes' method when 3.2 was still beta. HOWEVER, remember -- the discussions of any kind around the 4.0 SDK are covered under the NDA. Please be careful if you do decide to install it (and use it) that you do not ask questions here. This kind of question is fine, however, the Apple Developer Forums are the place for any programming questions for SDK 4.0.
Jann
+1  A: 

So far Apple has always provided a way to create Applications compatible to older versions of iPhone/iPad OS. The SDK installer will install the SDK in a version specific subdirectory. Additionally there is a "Current" directory hardlinking against the newest version. The old versions will still be available.

XCode will let you select an iPhone OS Version in the build settings and automatically figure out the correct SDK version/directory, so there's no need to fumble with paths or include directories.

Johannes Rudolph
While this may or may not work, depending on the version at hand, it is explicitly not supported by Apple. If you want to ship Apps, be sure to always use a released (and not a beta or RC) version.
Konrad Neuwirth