How IOS installs apps in the emulator

Source: Internet
Author: User

The company uses nail nail applications, nails can be added to the company's Web applications, testing needs to be tested in the iOS simulator, the following is how to install the app in the simulator.

There is no App Store on the emulator, and you cannot download the IPA file installation. Only APP bundles that are packaged based on source code can be installed.

For example, nail mounting kit Dingtalk.app

1. Open the simulator first

Typically you open the emulator by opening Xcode, but you can also open the emulator directly.

Although the emulator is bundled in Xcode, it is itself a separate application with the installation path in:

/applications/xcode.app/contents/developer/applications/simulator.app

Double-click to run Simulator.app.

2. Install the app on the simulator

In addition Xcode provides a SIMCTL command that can do various things with the emulator. The path to the Simctl command is:

/applications/xcode.app/contents/developer/usr/bin/simctl

Double-click Simctl to run the process, after the process has completed, after the terminal opens the path of Dingtalk.app, perform the installation operation, as follows

Cd/users/datacvg/desktop/app

/applications/xcode.app/contents/developer/usr/bin/simctl Install booted Dingtalk.app

The Dingtalk.app is then installed in the Open emulator. As shown in the following:

3, the installation of error tips

An error was encountered processing the command (Domain=nsposixerrordomain, code=2):

The previous colleague sent the compressed package display DingTalkios.app.zip, after decompression to display the nails (perform/applications/xcode.app/contents/developer/usr/bin/simctl install Booted Dingtalk.app installed successfully), as shown, also sends an uncompressed DINGTALKIOS.APP (using the Install command/applications/xcode.app/contents/ Developer/usr/bin/simctl Install booted Dingtalkios.app when the installation failed), and later found that the compression package after decompression to normal use, no compression app always failed to install. note the path to the Xxx.app and the name of the app in the install command must not be faulted.

Reference Document: Nail Open platform iOS simulator debug Micro Application

How IOS installs apps in the emulator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.