Xcode SDK version for testing & release? - iphone

I am just putting the finishing touches to an iPhone app that I have written, signed up to the developer program and installed Xcode 3.2.2 (1650) My question is which version of the SDK should I be using to build my application? I was thinking I should be using the latest 3.2 but when I select that I can only access the iPad simulator ...
Should I be using 3.1.3 which runs the iPhone simulator. (NB: I originally developed the app in 3.1.2
cheers gary

iPhone OS 3.2 only runs on the iPad, the current version for the iPhone is 3.1.3.

Related

How to get iOS simulator running iOS 3.0?

I am currently using xcode 4 and the iOS 4.3 SDK and I need to test my app in the simulator using the 3.0 OS but the earliest I can get is the iPad 3.2 OS.
How can I get the simulator to run older versions of the iPhone OS?
AFAIK you can't. You'd have to be using an earlier iOS SDK version (and FYI, you can have multiple SDKs installed on your machine - just move them to a different folder when you're installing a new one).
See this question for more details.

how to test on xcode ios 4.2.1?

I have previously downloaded xcode 3.2.5 and I see i have iphone sdk 4.2
i uploaded my app to appstore and they told me back it crashes on sdk 4.2.1
however I could not find yet a way to test it on 4.2.1 on my mac with xcode... i saw on apple site either 3.2.5 with sdk 4.2 or sdk 4.3beta how can I test then with my mac on sdk 4.2.1 please?
thanks
iOS SDK 4.2 covers 4.2.1. So you're already testing it for 4.2.1 as well as you can on your Mac. The only real way to fully test your app with "iOS 4.2.1" is on a real device.
If you read the support page for iOS 4.2 (http://support.apple.com/kb/DL1061) it seems iOS 4.2 and 4.2.1 are essentially the same, as at the bottom of the page it states:
Note: iOS 4.2.1 is the version number
displayed in the iOS user interface
and iTunes.

problem while deploying app in to ipod

This problem is showing after i upgraded my ipod OS to 4.0 . But still i use iPhone SDK 3.1.3
When i try to deploy app build in iPhone SDK 3.1.3 to my iPod its showing me the error
Error Starting Executable
No provisioned iPhone OS device is connected.
How can i get rid of this problem. should i downgrade my iPod OS to 3.1.3.
In this case, I think you need to use xCode 3.2.3 and configure the base SDK to Device 4.0 in order to install the application to your iPod. As I know, you can not downgrade to 3.1.3 once you upgraded to 4.0.

Testing iPhone app on older OS versions in Xcode

All,
Is there a way to download older versions of the iPhone simulator to test an application with an older version of the iPhone OS? I'm running Xcode 3.2.2. and it only has iPhone OS 3.1.3 and I need to test on 3.1.2.
Thanks in advance
Head to
http://connect.apple.com
Click "Developer Tools" on the right
You can get all the way back to Xcode 1.0 if you like
I've been trying to do the same thing. The answer seems to be rather unsatisfying: You cannot use the simulator to test if your app runs on a previous iOS version. It only works on the device, according to Apple:
iPhone OS Note: Mac OS X v10.6 does
not support using iPhone Simulator
SDKs prior to version 3.0. In
addition, when building with the
simulator SDKs, the binary runs only
on the same OS version as the SDK, not
on earlier or later versions.
This seems really dull. How am I supposed to test backwards compatibility without having one physical iPhone for each SDK version? Not good.

Build and test on 2.2.1 iPod Touch with Xcode 3.2.2?

I've just installed Xcode 3.2.2 with iPhone SDK 3.2 Beta 5 (Snow Leopard)
This version of Xcode didn't come with any iPhone SDKs older than 3.0. But I want to create an app that runs on all devices from iPhone OS 2.2.1 -> 3.1.3.
I managed to add older SDKs into Xcode by downloading iPhone 3.1.3 with Xcode 3.1.4 and installing each 2.x SDK from the 'Packages' folder in the .dmg. So now I can select 2.2.1 as 'iPhone OS Deployment Target' and the 'Base SDK' as 3.1.3, and the app will build (thus letting me use 3.1.3 APIs with conditional coding whilst still running on 2.2.1 devices).
But the problem is the app will not install and run on my 2.2.1 iPod Touch. Instead, Xcode tells me 'No provisioned iPhone OS device is connected'. If I bring up the Organizer, in the left column, the iPod Touch has an orange sphere next to it, instead of green, and clicking on this reveals:
'The version of iPhone OS on “iPod touch” is too old for use with this version of the iPhone SDK. Please restore the device to a version of the OS listed below'
I'm not sure how to get this version of the SDK to support 2.2.1.
(It needs to be this download of Xcode/iPhone SDK because I also want it to be a universal binary so it runs on the iPad with a minimum of fuss).
While under NDA, I can't be more explicit than to tell you to read this thread in the Apple Developer Forums, which includes an explanation of this problem.
As far as I know, Apple recently made the 3.x updates available free of charge. I don't think there are any users out there still on 2.x!