ios-ci-setuplisted
Install: claude install-skill puyanlin/ios-selfhosted-ci
# Set up CI for an iOS app repo
Tool: `scripts/bootstrap-repo.sh` in the ios-selfhosted-ci checkout. Settings (owner, Team ID, Xcode, review
language, commit trailer) come from `~/.config/ios-selfhosted-ci/config`.
## Language
Read `LANGUAGE` from `~/.config/ios-selfhosted-ci/config`:
- `zh-TW` → talk to the user in **Traditional Chinese with Taiwan wording** (e.g. 檔案、設定、分支、編譯、送審).
- `en` → English.
- unset → use the language of the user's messages.
This only affects how you talk to the user. Commands, file contents and identifiers stay as they are.
## Before running
- The repo must exist on GitHub, be **private** (the script refuses public repos: fork PRs could run code on the
Mac), and contain the Xcode project. If it doesn't exist yet, create it (`gh repo create <owner>/<name> --private`)
and push the project first.
- A CocoaPods project without committed `Pods/` stops the script. Talk to the user: install CocoaPods on the
runner, or migrate to SPM.
- If `~/.config/ios-selfhosted-ci/config` is missing, help the user create it from `config.example`.
## Run
```bash
scripts/bootstrap-repo.sh <repo> [options]
```
| Option | When |
|---|---|
| `--scheme "A B"` | Auto-detected if omitted. Several candidates = each branch uses the one it has (two apps on different long-lived branches) |
| `--project path/X.xcodeproj` | The project isn't at the repo root |
| `--branch name` | Extra long-lived branches that also get the workflows and the ruleset |
| `--destination d