views:

2154

answers:

4
+8  Q: 

iOS 4 Build SDK

Hi,

I installed the iOS 4 SDK yesterday. I previously had the 3.1.2, 3.1.3 and 3.2 SDKs installed. Since installing the iOS 4 SDK, I only have 3.2 and 4.0 available in Xcode. When I load an Xcode project that was targeting an older version (say 3.1.2), it says "Base SDK Missing" in the toolbar.

I've been able to reset the project to target iOS 4 instead - and have successfully built. However, I need to do some ad hoc builds for users who may not have iOS 4 installed on their devices yet. If I give them a build that was done for iOS 4 (not using any iOS 4 features - it's the same code I used to build with 3.1.2), will this execute on their device ok?

Unfortunately I don't have any non-upgraded devices to test this on myself!

Thanks,

John

+1  A: 

You needed to install XCode beta to an alternative folder /DeveloperBeta (for example) and use the stable xcode for older SDK builds.

You can still do that actually.

smith288
+8  A: 

To target older iPhone OS's with the new iOS 4 SDK, Select your XCode project -> Get Info, and then select "iPhone Device 4.0" as the Base SDK, and then select the lowest iPhone OS version from iPhone OS Deployment Target that you need to support with your ad hoc app.

stitz
Thanks - this is what I ended up doing. I've heard that Apple won't be accepting any new App Store submissions unless they have been built with the 3.2 or 4.0 SDK now anyway - if so, this looks like the only option by which older devices could be targeted.
John
That's my understanding as well, which I've detailed in a community wiki. Link is in comment to question above.
Clay Bridges
A: 

Cannot run apps on device

i have installed iphone os4 and my xcode is 3.2.2 i am getting this error

The version of iPhone OS on “Jayson's iPhone” does not match any of the versions of iPhone OS supported for development with this installation of the iPhone SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iPhone SDK; which is available here.

OS Installed on Jayson's iPhone 4.0 (8A293)

Xcode Supported iPhone OS Versions 3.2 (7B367) 3.1.3 (7E18) 3.1.2 (7D11) 3.1.1 (7C146) 3.1.1 (7C145) 3.1 (7C144) 3.0.1 (7A400) 3.0

plz help what to do ... di i need to downgrade my xcode verison??

ram
Not sure sorry. You might be better off posting this as a separate question.
John
Seconded, but more emphatically.
Clay Bridges
A: 

Hey

I am facing same problem while upgrading my iPod 2nd generation with iPhone OS 4.0(8A293).

Can anyone please help?

Panks
If you are faced with the same problem, then why not solve it the same way as in the answer?
Victor
Because answer is incomplete
Panks