Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jagatnibas

macrumors regular
Original poster
Jul 28, 2008
126
0
Hi all,
If I have only an .app file for a iphone program, can I run it in emulator ? if yes how ? what is the procedure ?


thanks and regards
Jagat
 

ThaBunny

macrumors newbie
Aug 2, 2008
10
0
No

The simulator is not an emulator. It doesn't run ARM instructions natively. It will only run apps which have been built specifically for it.
 

jagatnibas

macrumors regular
Original poster
Jul 28, 2008
126
0
demo

I need to send a demo to somebody, and i want him to see my application, not the code. How could i give him the only files that he can run on simulator and see.. what r the files and how to test

regards
 

DreamPod

macrumors 65816
Mar 15, 2008
1,265
188
It can be done (as long as you build your app specifically for the simulator of course), but it's not something they designed it to do. I forget the exact folder and all, but if I remember right, the app is stored somewhere in the Development directory; just look for a folder with "Simulator" in the name. You also might be able to use the version in the Library folder, but I'm not sure of that, as that's a virtual file system of the Simulator itself. And of course you'll have to point the person at where they can run the Simulator directly, as there won't be a way to run it from XCode.
 

Sbrocket

macrumors 65816
Jun 3, 2007
1,250
0
/dev/null
The application folders for the Simulator are located under ~/Library/Application Support/iPhone Simulator/User/Applications. You can send someone the full folder in that directory (of the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) and have them place the directory in that same folder on their machine (with the iPhone SDK installed). They can then access the app through the Simulator.

Note that NSUserDefaults settings will be carried over by doing this as they're located under XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Library/Preferences/, and any files your app saves will also be carried over as they reside in XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Documents/. If you don't want to transfer the settings or saved files to your testers, make sure to clean out those directories.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.