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