Skip to content
ios-stop-app logo

iOS Stop App

ios-stop-app

Stop the iOS app running on connected iPhone. Cleanly terminates the app using SIGTERM. Use when stopping the app for debugging, testing, or cleanup.

SKILL.md

Full skill instructions

iOS Stop App

Overview

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.

When to Use

Invoke this skill when the user:

  • Asks to "stop the app"
  • Wants to "kill the app"
  • Says "terminate the app on device"
  • Mentions shutting down or closing the app
  • Needs to stop before deploying new version

Prerequisites

  • iPhone connected via USB
  • pymobiledevice3 installed (pip3 install pymobiledevice3)
  • Device trusted
  • App must be running on the device

Instructions

  1. Navigate to the iOS app directory:

    cd path/​to/​ios/​app
    
  2. Run the stop script:

    ./​stop-app.sh
    
  3. The script will:

    • Auto-detect the connected iPhone
    • Find the app's process ID using pymobiledevice3
    • Send SIGTERM signal to terminate cleanly
    • Report success or if app wasn't running
  4. Inform the user:

    • The app has been stopped
    • Safe to call even if app isn't running
    • Use SIGTERM (not SIGKILL) for clean shutdown

Expected Output

When app is running:

🛑 Stopping NoobTest on device...
✅ App stopped

When app is not running:

🛑 Stopping NoobTest on device...
⚠️  NoobTest is not running

How It Works

The script:

  1. Uses xcodebuild -showdestinations to get device ID
  2. Runs pymobiledevice3 processes pgrep NoobTest to find process ID
  3. Extracts PID from output
  4. Uses xcrun devicectl device process signal to send SIGTERM

SIGTERM vs SIGKILL

The script uses SIGTERM (signal 15), not SIGKILL:

  • SIGTERM allows the app to clean up (save state, close connections)
  • SIGKILL would force immediate termination without cleanup
  • SIGTERM is the proper way to stop an app during development

Common Use Cases

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.

Common Issues

pymobiledevice3 not found:

  • Install it: pip3 install pymobiledevice3
  • Ensure Python bin directory is in PATH

No device detected:

  • Check USB connection
  • Ensure device is trusted
  • Try disconnecting and reconnecting

App not stopping:

  • Check app is actually running on device
  • Try restarting the device if process is stuck

Safety

This script is safe to call repeatedly:

  • Won't error if app isn't running
  • Uses clean shutdown signal
  • Reports status clearly

Bundle ID

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.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View