Agent Skills › Leanmcp/gateway-skills › ios-bootstrap-testflight

ios-bootstrap-testflight

GitHub

自动化iOS应用从SwiftUI脚手架、模拟器运行到TestFlight上传的全流程CLI工具,涵盖图标生成、构建、签名及发布。

skills/ios-bootstrap-testflight/SKILL.md Leanmcp/gateway-skills

Trigger Scenarios

用户希望从零创建或构建iOS/iPhone/iPad应用 提及Xcode、SwiftUI、xcodebuild、simctl等关键词 iOS构建失败,涉及图标、签名、团队配置或重复构建号问题 需要将应用部署到真机或上传至TestFlight

Install

npx skills add Leanmcp/gateway-skills --skill ios-bootstrap-testflight -g -y
More Options

Use without installing

npx skills use Leanmcp/gateway-skills@ios-bootstrap-testflight

指定 Agent (Claude Code)

npx skills add Leanmcp/gateway-skills --skill ios-bootstrap-testflight -a claude-code -g -y

安装 repo 全部 skill

npx skills add Leanmcp/gateway-skills --all -g -y

预览 repo 内 skill

npx skills add Leanmcp/gateway-skills --list

SKILL.md

Frontmatter
{
    "name": "ios-bootstrap-testflight",
    "description": "Scaffold a native iOS app (SwiftUI, no dependencies) from nothing, run it in the Simulator, and archive + upload it to TestFlight entirely from the command line. Bundles working scripts for icon generation, simulator run, and signed upload via the App Store Connect API. Use this whenever the user wants to build, run, ship, or debug an iOS\/iPhone\/iPad app, mentions Xcode, SwiftUI, .xcodeproj, xcodebuild, simctl, provisioning, code signing, App Store Connect, TestFlight, archiving, or \"get this on my phone\" — and also when an existing iOS build is failing on icons, signing, teams, destinations, or duplicate build numbers."
}

iOS bootstrap → TestFlight

Two jobs: create an iOS app that builds, and get it onto a real phone. Both are almost entirely CLI. Xcode's UI is only needed for first-time account setup.

Read next

File When
references/bootstrap.md Creating a new project, or the project won't open/build
references/testflight.md Signing, archiving, uploading. Holds the user's Team ID and API key details.
references/appstore.md Public release — screenshots, metadata, privacy policy, review. Read the 4.3 risk section before the user invests in assets.
references/caveats.md Anything looks wrong on device — button styling, layout, gestures, animation

Scripts

Copy into the project's workspace/ and run from the project root. They auto-detect the .xcodeproj and scheme, so they work unmodified in any project.

mkdir -p workspace
cp ~/.claude/skills/ios-bootstrap-testflight/scripts/* workspace/
chmod +x workspace/*.sh
Script Does
make_icon.swift Renders a 1024×1024 App Store icon into the asset catalog
run.sh Build → boot simulator → install → launch
upload_testflight.sh Bump build number → icon → archive → upload to TestFlight
screenshots.sh Captures App Store screenshots at Apple's exact required sizes
time ./workspace/run.sh                          # test locally
time ./workspace/upload_testflight.sh --validate # archive only, no API key needed
time ./workspace/upload_testflight.sh            # bump + archive + upload

The rule that saves the most time

Never run xcodebuild raw and read the output. It emits thousands of lines and buries the one that matters. Always filter:

xcodebuild ... 2>&1 | grep -E "error:|warning:|BUILD"

A build can print ** BUILD FAILED ** while every Swift file compiled fine — asset catalog and signing failures look identical to code failures in raw logs. Check which build command failed before assuming the code is broken.

Environment expectations

  • Xcode (full app, not Command Line Tools) — xcode-select -p must contain Xcode.app
  • ~40 GB free disk for Xcode + one iOS platform
  • Apple Developer Program membership for TestFlight (free tier cannot upload)

If any of that is missing, references/bootstrap.md has the setup commands in order.

Version History

  • 7a708ce Current 2026-10-19 08:14

Same Skill Collection

claude-code-skills/SKILL.md
skills/analyze-exports/SKILL.md
skills/leanmcp-builder/SKILL.md
skills/mcp-apps-builder/SKILL.md
skills/mcp-builder/SKILL.md
skills/code-explanation/SKILL.md
skills/fireworks-inference/SKILL.md
skills/godot-city-game-3d/SKILL.md
skills/posthog-adblock-bypass/SKILL.md
skills/publicity-distribution/SKILL.md
skills/research-paper-integrity/SKILL.md
skills/security-repro/SKILL.md
skills/tinker-training-inference/SKILL.md
skills/translate-explanation/SKILL.md
skills/vuln-repro/SKILL.md

Metadata

Files
0
Version
7a708ce
Hash
bb6c4fce
Indexed
2026-10-19 08:14

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 02:45
浙ICP备14020137号-1