Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install app on iphone simulator

How can we install .app file into iphone simulator without having any source code?

like image 489
Angel Avatar asked Nov 04 '11 21:11

Angel


People also ask

Does iOS simulator Have App Store?

No. The iOS Simulator does not have an App Store.

Can you install apps on Xcode simulator?

Yes, it's completely possible. Assuming your VM is set up, open up the Mac App Store. Install Xcode from the Mac App Store, it's free, but it's a big download, so make sure you have something to do while it's downloading.

Can I install IPA on iOS simulator?

It will open the Devices and Simulators window. Select the Devices section and select the device from the left pane. Drag and drop the app/IPA on to the 'INSTALLED APPS' section. Wait for Xcode to finish the installation.


2 Answers

Yes, this can be done.

If you open up Finder, and go to /Users/user/Library/Application Support/iPhone Simulator/iOS version/Applications, you will find directories for all the apps installed on the simulator.

Just zip up that top level folder for the app, and have the other user drop it in the same directory. Works like a charm.

NOTE: I think you may have to compile it for that specific version of iOS before sending it over to them.

Source : Is there a way to test iOS builds on simulator without the source code?

like image 71
Oliver Avatar answered Sep 28 '22 15:09

Oliver


There are three simple steps to install .app file on iOS simulator.

STEP 1:Start iOS simulator There are two ways to start iOS simulator

   1. Using XCODE: Open Xcode and navigate to 
      **XCODE => Open Developer Tool => iOS Simulator**

   2: Using Terminal: Type following command in terminal 
      **open -a "iOS Simulator" --args -CurrentDeviceUDID <Device UDID>** 

Note: Do not forget to change the DeviceUDID. You can check the UDID of running simulator by using following command:

xcrun simctl list

The UDID is the alpha numeric value in highlighted box and when simulator will booted it’s status will be “Booted” instead of “Shutdown”.

STEP 2: Installation: When device booted completely, use following command to install .app file in simulator

xcrun simctl install booted

STEP 3: Launch your app : You can launch your app by two ways 1. Tap on the app or 2. Write the following command on terminal

xcrun simctl launch booted

like image 33
Ram Ch. Bachkheti Avatar answered Sep 28 '22 14:09

Ram Ch. Bachkheti