★ TouchArcade needs your help. Click here to support us on Patreon.

Building for iPhone 2.x and 3.0

06-14-2009, 07:10 PM
Joined: Jun 2009
Posts: 1
Building for iPhone 2.x and 3.0

Hi developers,

I'm building apps for the iPhone. I upgraded to the 3.0 SDK. If I want to support both 2.x and 3.0 iPhone OS, should I build my apps for the iPhone Device 2.0?

I assume that if I build for "iPhone Device 2.0", then it should run on both iPhone OS 2.x and 3.0. Is this correct? Or do you need to compile TWICE (for Device 2.0 and Device 3.0) ?

I've noticed that if I build for iPhone Simulator 2.0 and then try to run it in the 3.0 Simulator, my app doesn't load properly.

Any tips out there?


06-14-2009, 10:41 PM
You should build using the lowest OS you're supporting. But you also need to test on any newer OS. So in your case, build for whatever version of 2.x you require, but test that build on a 2.x and 3.0 device.

And I wouldn't trust the simulator for any kind of compliance testing.
06-15-2009, 12:22 PM
Joined: Jan 2009
Posts: 1,553
The simulator is rather pointless imo, handy at first but as you dive deeper into development just make a build and stick it on your devices.

3D modelling, design and sequential artist / GameCenter ID: Diab