Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I install an app to the simulator without the source code?

I have a client who wants to just drag and drop the binary to run it in the simulator.

I want to build the simulator app and email it to them.

What can the client do to install this in the simulator?

Is this possible?

Thanks for any help.

like image 565
Corey Floyd Avatar asked Jun 03 '09 21:06

Corey Floyd


People also ask

How do I add apps to Apple simulator?

Install Apps on SimulatorsGo to Apps > Install Application. Find and open the app you want to install from your Mac. The app appears in the list of installed apps on the right side of the iOS Gateway window.

Is it possible to install IPA on simulator?

Just like an APK (Android Application Package) file can be installed on Android devices, an IPA file can be used for testing iOS applications.

Can you download an app on iOS simulator?

You can only run things on the simulator that either Apple provides with the SDK (e.g. Settings & photo library), or your own compiled apps. You can't install things from the store into the simulator.


2 Answers

You can, by executing the command below in the Terminal app.

xcrun simctl install {simulator_udid} {path of .app file}

It will install the .app file in the referenced simulator.

Note: Make sure that the .app file is built for the simulator (i.e. i386 or x86_64).

like image 155
SaRaVaNaN DM Avatar answered Sep 19 '22 05:09

SaRaVaNaN DM


As long as they are on the same version of the target O/S as you you should be fine. Look here on your local machine:

~/Library/Application Support/iPhone Simulator/User/Applications/

That is where the apps are stored.

Watch this directory and grab everything that is added when you install the app. Then you can zip those materials and have your client un-zip them under the same path.

like image 29
MystikSpiral Avatar answered Sep 19 '22 05:09

MystikSpiral