How to use iPhone Simulator in 3.2 (not iPad Simulator)

I am committing my application as a generic binary. Simulator testing seems to be the default for iPad. For small fixes like orientation check and small UI updates, the only way to find the iPhone version is to plug my iPhone and build and run on the device.

Loading the debugger takes valuable time when running the simulator is much faster for this kind of work. Can I set the default iPhone simulator for this? Setting it to 3.1.3 doesn't work because of the 3.2 code I have in binary for iPad.

EDIT:

Hardware options -> Device and -> Menu version in the simulator ends my application. When I go back it goes back to the iPad. The app is not installed in the simulator

+2


a source to share


3 answers


If you don't have the latest xcode, get it.



Set the project information for version 3.2, but from the dropdown select iPhone Simulator 4.0 and it will open in the iPhone simulator instead of the iPad simulator.

+2


a source


It's a dilemma: if you want to use OS 4 on an iPhone, you need to use the iPhone SDK 4 that ships with XCode 3.2.3.

I used to use iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a where the simulator was fine, but now after I upgraded my iPhone to OS 4 (it's iTunes) I can no longer use SDK 3.1.3 and simulator 3.2 that comes with SDK 4 doesn't actually work for iPhone at all!



Even when you set "iPhone OS Deployment Target" to "OS 3.1.3" and the iPhone frame is displayed in the iPad simulator, many functions do not respond at all.

Does Apple have an official answer to this dilemma?

0


a source


I finally solved this problem myself.

First install the new version of xCode which is xCode 4.

Then install the project outline on the iphone simulator and run the application in xCode several times.

And reinstall xCode 3 and the problem goes away!

0


a source







All Articles