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? Thanks. -Dan http://addictiveiphoneapps.blogspot.com/
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.
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.