| open -A Simulator |
Open the recent launch simulator device |
| xcrun simctl list |
Listing all available simulators |
| xcrun simctl create My-iphoneX |
Create a new iPhone X on top of exsiting ios version |
| xcrun simctl shutdown C8C050F3–062D-4444-A888-BBEC783E31BD |
Shutdown the simulator has uuid C8C050F3–062D-4444-A888-BBEC783E31BD |
| xcrun simctl erase |
|
| xcrun simctl erase all |
Erase all simulators |
| xcrun simctl boot |
|
| xcrun simctl delete DEVICE_UUID |
Delete a simulator by device UUID |
| xcrun simctl addmedia booted ~/Downloads/hain.png |
Add a media file to the simulator |
| xcrun simctl install booted /file_path/HaiN.app |
Install an application in App format to the opening simulator |
| xcrun simctl uninstall booted HaiN.CLI |
Uninstall an application from the opening simulator |
| xcrun simctl io booted screenshot screen.png |
Take a screenshot of the opening simulator |
| xcrun simctl io booted recordVideo news.mov |
Record a video of the opening simulator |
| xcrun simctl spawn booted log stream — level=debug |
Stream the log of the opening simulator |