kk:install-device

Use when building and installing an iOS app to a connected physical device, especially when the user says "install to <device>" or "安装到 <device>".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "kk:install-device" with this command: npx skills add xandeer/skills/xandeer-skills-kk-install-device

Install to Physical Device

Build the current iOS app and install it to a connected physical device.

Usage

User says: install to kio or 安装到 kio

The argument is the device name (for example, kio).

Workflow

  1. Resolve the device via the local cache helper:

    device_info="$(bash skills/kk-install-device/scripts/resolve-device.sh <device_name>)"
    

    The helper returns <display_name><TAB><device_uuid>. It reads ~/.local/share/kk-install-device/devices.tsv first and only refreshes that cache with xcrun devicectl list devices when the requested device is missing. Matching remains case-insensitive and supports unique substrings such as kio; if multiple cached devices match, use a more specific name.

  2. Extract the resolved values:

    device_display_name="${device_info%%$'\t'*}"
    device_uuid="${device_info#*$'\t'}"
    

    device_display_name is the clean Xcode-visible device name. device_uuid is the CoreDevice UUID used by devicectl.

  3. Build using the resolved device display name:

    xcodebuild -project <project>.xcodeproj -scheme <scheme> \
      -derivedDataPath /tmp/<derived-data-dir> \
      -destination 'platform=iOS,name=<device_display_name>' \
      -allowProvisioningUpdates build
    

    Do not pass the CoreDevice UUID to xcodebuild -destination id=...; Xcode destination IDs and CoreDevice UUIDs are not interchangeable.

  4. Install using the resolved device UUID and the built app path:

    xcrun devicectl device install app \
      --device <device_uuid> \
      <path/to/YourApp.app>
    
  5. Optionally launch the app if the bundle ID is known:

    xcrun devicectl device process launch \
      --device <device_uuid> \
      <bundle_id>
    

Notes

  • Build uses the resolved device display name; install and launch use the resolved device UUID.
  • In Codex, real-device build / install / launch usually requires elevated permissions because xcodebuild and devicectl need Xcode caches, signing assets, and CoreDevice services.
  • Cache file: ~/.local/share/kk-install-device/devices.tsv
  • Refresh rule: only refresh on cache miss.
  • To force a full rebuild of the local cache, delete ~/.local/share/kk-install-device/devices.tsv and run the helper again.
  • The .app output path varies by project. Use the current DerivedData output or xcodebuild -showBuildSettings to locate it.
  • -derivedDataPath /tmp/... reduces sandbox noise but does not remove the need for elevated permissions.
  • If the app does not appear to update, manually kill and relaunch it on the device.
  • If the bundle ID is unknown, skip the launch step or inspect build settings first.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

Repository SourceNeeds Review
164.1K95.1Kanthropics
Coding

remotion-best-practices

Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.

Repository SourceNeeds Review
150.1K2.2Kremotion-dev
Coding

azure-ai

Service Use When MCP Tools CLI

Repository SourceNeeds Review
137.6K156microsoft
Coding

azure-deploy

AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE

Repository SourceNeeds Review
137.2K156microsoft