run-ios-sim
Skill38 starsChanged 3 months agoApache-2.0View on GitHub
Build the hushh One webapp, sync it into the native iOS shell, and launch it on an iPhone simulator against the UAT backend. Use when the user asks to run/launch/build the app on the simulator, take a screenshot on device, or verify a change in the real native app. Wraps the mobile build gotchas (UAT backend override, Node 22, 8 GB heap, /tmp DerivedData) into one command.
- Reads credentials
- Deletes or force-pushes
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- hushh-webapp/AGENTS.mdAGENTS.md
- hushh-webapp/CLAUDE.mdCLAUDE.md
- hushh-icon-themeSkill
- access-explainedSkill
- animateSkill
- animation-vocabularySkill
- apple-designSkill
- brandkitSkill
- client-env-paritySkill
- codex-bridgeSkill
- deploy-uatSkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- emil-design-engSkill
- find-animation-opportunitiesSkill
- full-output-enforcementSkill
- gcp-accessSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- hushh-icon-themeSkill
- hushh-research-shipSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- impeccableSkill
- improve-animationsSkill
- industrial-brutalist-uiSkill
- kg-feature-deliverySkill
- location-header-systemSkill
- minimalist-uiSkill
- mobile-bug-logSkill
- pick-ui-librarySkill
- prototypeSkill
- redesign-existing-projectsSkill
- release-ios-appstoreSkill
- review-animationsSkill
- safe-changesSkill
- senior-engineeringSkill
- ship-disciplineSkill
- ship-ios-testflightSkill
- ship-testflightSkill
- ship-without-actionsSkill
- stitch-design-tasteSkill
- wire-voice-actionSkill
- wire-voice-navigationSkill
- hushh-icon-themeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Verify a class landed: grep -c 'background-color:#007aff' hushh-webapp/out/_next/static/css/*.css.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run hushh One on the iOS simulator
One command that goes from source → running app on the simulator. It bakes in every recurring build gotcha from [[mobile-bug-log]] so you don't rediscover them.
Quick start
.claude/skills/run-ios-sim/launch.shOptional: pass a specific simulator UDID as $1. With no argument the script
resolves one itself: an already-booted iPhone if there is one, otherwise the
newest available iPhone. List them with xcrun simctl list devices available.
- Simulator: resolved at run time, never pinned. Xcode updates retire device types, so a hardcoded UDID eventually points at a simulator that no longer exists and the run fails only after a full web build.
- App:
com.hushh.app(schemeApp,ios/App/App.xcodeproj) - Backend baked in: UAT (
https://consent-protocol-f2gsa4kfsq-uc.a.run.app)
What the script does (and why)
nvm use 22—cap syncneeds Node 22 (see [[mobile-bug-log]] GOTCHA #2 / iOS build notes).- Verify UAT backend is reachable (
curl→ expect200) before wasting a build. export NEXT_PUBLIC_BACKEND_URL=<UAT>thenNODE_OPTIONS=--max-old-space-size=8192 npm run cap:build— the UAT override is mandatory (GOTCHA #1: without itlocalhost:8000gets baked in and the app can't reach the vault → navigation dies on every screen). The 8 GB heap avoids thecap:buildOOM. This does NOT touch your.env.local.npm run cap:sync:ios— copiesout/into the native shell + syncs plugins.- Boot the simulator (
xcrun simctl boot,open -a Simulator) and wait until it reportsBooted. xcodebuildtheAppscheme foriphonesimulator, DerivedData in/tmp/hushh-ios-dd(iCloud FinderInfo on the default DerivedData path breaks codesign).- Install + launch the built
App.appand print the app's URL so you can confirm. - Confirm the right backend is live — greps the app log for
consent-protocol(good) vs127.0.0.1:8000(bad, GOTCHA #1 regressed).
After it launches
Most screens are auth + vault gated — you must log in to reach the dashboard,
Onepoint/location, etc. On UAT you can use a QA test phone number with fixed OTP
000000 (see [[mobile-bug-log]] "QA test phone numbers"), then unlock the vault.
Autonomous agents cannot pass this gate — a human does the login.
Diagnose runtime issues with the WKWebView + native log:
UDID="$(xcrun simctl list devices booted | sed -n 's/.*(\([0-9A-F-]\{36\}\)).*/\1/p' | head -1)"
xcrun simctl spawn "$UDID" log show --last 120s --predicate 'process == "App"'Screenshot the current simulator screen:
xcrun simctl io booted screenshot /tmp/onepoint-sim.pngGotchas (don't relearn these)
- Sim shows "Shutdown" / install fails → it's not booted. The build likely
already succeeded; just
xcrun simctl boot <UDID>; open -a Simulator; sleep 6then re-run install. The script handles this, but if you install manually, boot first. - Capacitor has no OTA — a committed fix that isn't in this build has NOT shipped to a TestFlight tester. This script always rebuilds from current source, so what you see is your working tree.
- First
nextbuild is slow (a few minutes). Subsequent builds are faster. - Stale CSS after a color/className change → the webpack cache (
.next/cache) can serve a Tailwind compilation from before your edit, so new arbitrary classes (e.g.bg-[#007aff]) ship in the JS but have no CSS rule — the element renders with no color (a blue button with a transparent background). Fix:CLEAN=1 .claude/skills/run-ios-sim/launch.sh(forcesrm -rf .next out). Verify a class landed:grep -c 'background-color:#007aff' hushh-webapp/out/_next/static/css/*.css. - Full disk corrupts the build —
next buildon a 100%-full disk produces a broken/partial CSS bundle (same symptom as above) even though it reports success. The script now aborts if < 5 GB is free..nextcan grow to ~17 GB;rm -rf hushh-webapp/.nextto reclaim it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

