tags:

views:

700

answers:

3

Hi

Why are old SDKs beeing removed when installing a new version of xcode with new Iphone SDK ? Now we have v4, what settings do I have to make in order that the apps still work with 3.x ?

Thanks

+5  A: 

Set the Base SDK to 4.0 and Deployment Target to 3.x.

zoul
+1  A: 

3.2.3 last beta did remove all other SDK's cause to many people tried publish Apps developed with the beta SDK, which will not be accepted. I guess GM is doing still the same

If you want to develop for 4.0,3.2 and 3.0 (plus 3.0,3.1,3.1.2,3.1.3) do the following

  • sudo /Developer/Library/uninstall-devtools –mode=all (This will uninstall the current XCode installation)
  • Then install first old XCode (3.2 final) in default folder (/Developer)
  • Then install the new XCode (3.2.3 GM) in other folder (/DeveloperBeta)
  • This way you will have both. And can launch xcode from either /Developer/Applications/Xcode.app or /DeveloperBeta/Applications/Xcode.app
Allisone
This is not necessary. You can develop for all versions of the OS with the Base SDK set to 4.0 and the Deployment Target set to those other versions.
You're right, just as zoul said. But do you get all the warnings/errors if you use f.e. MPMoviePlayerViewController which is not available in SDKs below 3.2 with SDK set to 4.0 and different deployment target ? I prefer having those instead of looking up the availability and stuff.
Allisone
+2  A: 

If you have backups of your system from something like Time Machine (and you better!) you can copy the older SDKs from the backup located at /Developer/Platforms/iPhoneOS.platform/Developer/SDKs and /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs - then just restart XCode and you're ready to go.

SaltyNuts