3

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together.

How can I install the SDK's into one xCode so I can build for all different OS versions?

Thanks

EDIT::

Ok so I know I can set the base SDK in xcode, but the options I have are only 3.2 or 4.0, I cant seem to install the 3.1 or earlier SDK's how can this be done?

Final Edit::

Ok got it solved, basically you only need to have an older version of xcode installed to get earlier simulators running, otherwise the articles given to me in my answers as well as others were very helpful:

http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/

Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (possibly the best one)

Community
  • 1
  • 1
Mark
  • 14,820
  • 17
  • 99
  • 159

2 Answers2

1

Is there any particular reason you need to do this? Are you trying to develop applications that will run on iOS 4.x and older versions (3.x)? You can still develop applications which will run on iOS 3.1.x with the iOS 4.x sdk.

Take a look at the following article: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/

JonB
  • 4,422
  • 2
  • 27
  • 25
  • Thanks jonb, but I cant seem to set the base SDK to earlier than 3.2, the only options in the drop down are 3.2 and 4.0, how can I get the earlier SDK's installed? – Mark Aug 08 '10 at 01:42
  • From the article: "All I need to do to accomplish this is to set my Base SDK to “OS 4.0”, which will allow my application to use the new feature, and set my deployment target to “3.0″, which will allow my application to launch on OS 3.0.". You will then need to week link your frameworks. – JonB Aug 08 '10 at 10:52
  • ok, so I guess the only reason to have previous versions of xcode installed is to get older simulators... – Mark Aug 09 '10 at 04:54
  • Yes, pretty much. I prefer testing on device once I get to that kind of stage. Horses for courses. – JonB Aug 09 '10 at 14:16
0

I tried the same thing some time ago, and it seems some minor SDK versions are automatically removed during the install process...

You may tried to copy them before installing the other XCode versions, and re-install them just after.
They are located in /Library/Platforms/iPhoneOS.platform/Developer/SDKs/ and /Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/.

Note that you can also choose to install each XCode version in a separate directory.
You will lose a lot of hard disk space, and you'll have multiple versions of XCode, each one with different SDK versions.

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
Macmade
  • 52,708
  • 13
  • 106
  • 123
  • Thanks, can you please elaborate on what to do with the SDK directories? You are right, the older SDK's seem to have been uninstalled, which is stupid... – Mark Aug 06 '10 at 10:29