xcrun simctl <command>
getenv Print an environment variable from a running device.
addmedia Add photos, live photos, videos, or contacts to the library of a device.
install Install an app on a device.
uninstall Uninstall an app from a device.
get_app_container Print the path of the installed app's container
terminate Terminate an application by identifier on a device.
spawn Spawn a process by executing a given executable on a device.
pbpaste Print the contents of the device's pasteboard to standard output.
io Set up a device IO operation.
diagnose Collect diagnostic information and logs.
logverbose enable or disable verbose logging for a device
Pull Request #137
Credits to Ankit Kumar Gupta's blogpost
xcrun simctl terminate <pkg>(or terminate foreground app 🤞)Some other ideas
xcrun simctl appinfo booted <bundle-id>build- build and run iOS projectlaunch- add app chooseruninstall- add app chooserOther sources:
https://medium.com/@tci/launch-apps-in-ios-simulator-using-terminal-5f21d60b7151
https://littlebitesofcocoa.com/313-interacting-with-the-ios-simulator-using-simctl
https://nshipster.com/simctl/
https://medium.com/the-traveled-ios-developers-guide/ios-simulator-power-ups-407060863b3c
https://www.iosdev.recipes/simctl/