Skip to content
ios-deploy-usb logo

iOS USB Deploy

ios-deploy-usb

Build and deploy iOS app to connected iPhone via USB. Fast deployment (~8-10 seconds) for development iteration. Use when deploying, installing, or building apps to physical iPhone.

SKILL.md

Full skill instructions

iOS USB Deploy

Overview

Builds an iOS app using xcodebuild and installs it directly to a USB-connected iPhone. This is the fastest way to test on real hardware during development, taking only 8-10 seconds vs TestFlight's longer review process.

When to Use

Invoke this skill when the user:

  • Asks to "deploy to iPhone"
  • Wants to "install the app on device"
  • Says "build and deploy"
  • Mentions testing on physical iPhone
  • Wants to "push to device"

Prerequisites

  • iPhone connected via USB
  • Device trusted (user tapped "Trust This Computer" on iPhone)
  • Developer Mode enabled (Settings → Privacy & Security → Developer Mode)
  • Valid code signing identity configured
  • The project must be in an iOS app directory with .xcodeproj

Instructions

  1. Navigate to the iOS app directory (look for .xcodeproj file):

    cd path/​to/​ios/​app
    
  2. Run the install-device.sh script:

    ./​install-device.sh
    
  3. The script will:

    • Auto-detect the connected iPhone
    • Build the app with xcodebuild (using LD="clang" workaround)
    • Install the .app to the device
    • Report success
  4. After successful installation, automatically start the app:

    ./​restart-app.sh
    
  5. Inform the user:

    • The build typically takes 8-10 seconds
    • The app will be automatically launched on the iPhone
    • If errors occur, check that iPhone is properly connected and trusted

Expected Output

📱 Installing NoobTest directly to connected device...
✅ Found device: ashphone16
   Device ID: 00008140-0001684124A2201C
🔨 Building...
✅ Build complete
📲 Installing to device...
🎉 Installation complete!
🔄 Restarting NoobTest on device...
✅ App restarted
The app is now running on your iPhone.

Common Issues

No device detected:

  • Check USB connection
  • Ensure "Trust This Computer" was accepted on iPhone
  • Enable Developer Mode in Settings
  • Try disconnecting and reconnecting

Build fails with linker error:

  • Script uses LD="clang" to avoid Homebrew linker conflicts
  • This is automatically handled

Script hangs during build or install:

  • Most common cause: VPN is enabled on the Mac
  • If the install-device.sh script hangs and doesn't complete:
    1. Ask the user: "Is your VPN currently enabled? If so, please disable it and try again."
    2. Wait for user to disable VPN
    3. Retry the deployment
  • This happens because VPN can interfere with USB device communication
  • After disabling VPN, the deployment should complete normally

Implementation Details

The script:

  • Uses xcodebuild -showdestinations to find the device ID
  • Builds with -allowProvisioningUpdates for automatic code signing
  • Finds the built .app in DerivedData by modification time
  • Uses xcrun devicectl device install app to deploy

Platform-Specific Notes

This is an iOS-specific skill. For Android deployment, use the android-deploy-usb skill.

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