tags:

views:

100

answers:

2

How to make universal binary of one app, which can correctly run on 3G and support multitasking on iPhone 4? Thanks!

+1  A: 

This is documented in the iPad Programming Guide under Starting Your Project.

Marcelo Cantos
Thanks, if I have only iPhone 3G, may I use it and iPhone 4 simulator to test this app on both 3G and iOS 4 (with all features of iOS4 like multitasking, Retina display and so on)? Or I need iPhone 4 device anyway for testing this universal app?
Roman
So I dont want to split my app into 2 separate apps. I want to write into AppsStore that the App supports OS 3.0 and so on and works correctly on iPhone 4 supporting multitasking.
Roman
You will need a device to test multitasking. The simulator is sufficient for retina display.
drawnonward
You can test both multitasking and the high-resolution display with the simulator in iPhone and iPhone 4 modes.
Marcelo Cantos
Many thanks! :)
Roman
+2  A: 

The term "universal binary" here is a misnomer, since that is only for iPad/iPhone combined apps. If all you want to do is compile a build that works on both iPhone 4 and iPhone 3G, you need to download and install SDK 4, set 4.0 as the "Base SDK", and then set your "Deployment Target" to whatever minimum version of iOS you want to allow to run your app. Some people use a setting of 3.1.3, some people keep that setting at 4.0.

Shaggy Frog