Idevice_id -l displays the currently connected device [udid], including usb and WiFi connections.
Instruments -s devices list devices including simulators, real machines and mac computers themselves.
For other command operations, you can check the github address of ios-deply.
(1) Git remote clone file
Git clone git://github.com/ghughes/fruitstrap.git
Cd fruit belt
Cat makefile copies the selected command marked below and executes it in the terminal.
(2) compiling and generating executable files
gcc-o fruit strap-framework core foundation-framework mobiled device-F/System/Library/private frameworks fruit strap . c
When the terminal executes the copy command, a unix executable file will be generated in the root directory of the project, which can be directly executed at the terminal. If the fruitstrap file appears in the current directory, the execution is successful. Ls can view, or open $(pwd)
(3) calling the executable file
Method 1: The terminal calls with the full path.
//For example, execute a command to view help.
/users/ypf/desktop/fruit strap-d
Method 2: Copy and paste the executable file into the terminal default directory /usr/bin. You can see that there are many executable files here, and the unix executable files here can be directly called in the terminal through the file name.
//Call directly with the file name in the terminal.
Fruit belt -d
Command line fruit strap-I[ udid of target device]-b [path] executed. IPA】。
See Help Options: Fruit Trap-D.
The full format of the fruitstrap command.
Click View Node -IOs- Device Installation.
Terminal execution command line NPM installation node -IOs- Device-Save-Optional.
Abnormal problem:
1、xcrun sim CTL install booted/path/XXX . app
2. xcrun: error: the utility "simctl" cannot be found, it is not a developer tool or is not in the path `.
3. xcrun: Error: The active developer path ("/Volumes/Xcode/xcode.app/contents/developer") does not exist. Please use xcode-select–switchpath/to/xcode.app to specify the xcode (or seeman xcode-select) you want to use for the command line developer tool.
No device is booted.
These problems will cause the installation to fail. If it is not installed, you can do the following.
Solution:
Step 1: Get the Xcode installation path. Enter sudoxcode-select-switchxcode path/contents/developer at the terminal.