views:

7002

answers:

2

I have a mySample.app file - an iPhone application developed by xcode.

How do I run this (only mySample.app file) application using my xcode?

A: 

Select the platform to be iPhone Simulator then click Build and Go. If it builds correctly then it will launch the simulator and run. If it does not build ok then it will indicate errors at the bottom of the window on the right hand side.

If you only have the app file then you would need to manually install that into the simulator. The simulator was not designed to be used this way, but I'm sure it would be possible, even if it was incredibly difficult.

If you have the source code (.proj .m .h etc) files then it should be a simple case of build and go.

Xetius
It builds fine for me and gives me the error "Failed to launch simulated application: Unknown error.". It starts the simulator in iPad mode with a blank screen. When I switch to home screen, it doesn't show my app.
Albert
+5  A: 

This thread discusses how to install the binary on the simulator. I've done it and it works: http://forums.macrumors.com/showthread.php?t=547557

ThomasW