ios-rebuild-dev

Featured

Rebuild TermioMobile and install + relaunch it on the connected iPhone (or the booted simulator with 'sim'), pointed at this Mac's companion server. Invoke when the user says 'rebuild ios', 'rebuild the iphone app', 'run on my phone', 'preview on iphone', 'ios rebuild', '重新编译 ios', or '装到手机上'.

Web & Frontend 436 stars 36 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Rebuild iOS App (local development) Build `TermioMobile`, install it on the user's iPhone, and relaunch it connected to this Mac's companion server — the iOS equivalent of `macos-rebuild-dev`. Everything is already scripted in `ios/dev-run.sh`: it finds the first connected iPhone via `xctrace`, builds Debug with `xcodebuild` (automatic provisioning, derived data in `ios/build/`), installs with `devicectl`, and launches `sh.termio.mobile` with `-roster-url ws://<this Mac's en0 IP>:8787` so the app talks to the companion server in the running Mac termio. `--terminate-existing` kills the previous instance, so rerunning the script IS the edit-preview loop. ## Instructions When invoked, execute these steps sequentially: 1. **Decide the target.** Default is a physical iPhone. If the user said "sim"/"simulator" (or no iPhone is reachable and they agree to fall back), use the simulator path in step 4 instead. 2. **Run the dev script** from the repo root. Show the tail of the output; on build failure show the error and **stop — do NOT install/launch**: ```bash ./ios/dev-run.sh 2>&1 | tail -20 ``` Pass a custom roster URL through as `./ios/dev-run.sh ws://host:8787` only if the user asked for one. 3. **Triage the common failures** instead of retrying blindly: - *"No iPhone found"* — the phone must be plugged in (or Wi-Fi paired) and have trusted this Mac. Show the `xcrun xctrace list devices` output the script printed and ask the user to co...

Details

Author
termio-sh
Repository
termio-sh/termio
Created
3 months ago
Last Updated
today
Language
Swift
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category