Stop the iOS app running on connected iPhone. Cleanly terminates the app using SIGTERM. Use when stopping the app for debugging, testing, or cleanup.
Stops the iOS app running on a connected iPhone by sending SIGTERM signal to the app process. This cleanly terminates the app, allowing it to perform cleanup operations before exiting.
Invoke this skill when the user:
pymobiledevice3 installed (pip3 install pymobiledevice3)Navigate to the iOS app directory:
cd path/to/ios/app
Run the stop script:
./stop-app.sh
The script will:
pymobiledevice3Inform the user:
When app is running:
š Stopping NoobTest on device...
ā
App stopped
When app is not running:
š Stopping NoobTest on device...
ā ļø NoobTest is not running
The script:
xcodebuild -showdestinations to get device IDpymobiledevice3 processes pgrep NoobTest to find process IDxcrun devicectl device process signal to send SIGTERMThe script uses SIGTERM (signal 15), not SIGKILL:
Before deploying new version:
./stop-app.sh
./install-device.sh
Pairing with restart:
./stop-app.sh
# Make changes
./restart-app.sh
Clean state testing: Stop the app, clear data/caches manually, then restart fresh.
pymobiledevice3 not found:
pip3 install pymobiledevice3No device detected:
App not stopping:
This script is safe to call repeatedly:
The script is configured for the specific app's bundle ID (e.g., com.miso.noobtest for Firefly/NoobTest). Different apps have different bundle IDs.