/rn-launch-harness:rn-harness-build-localfrom rn-launch-harness
Builds and deploys React Native (Expo) apps without EAS when the EAS free plan is full. Handles local Android Gradle builds, iOS Xcode/fastlane builds, keystore signing, self-hosted OTA, and Play Store upload.
Ships in rn-launch-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build and ship without EAS. Use this instead of rn-harness-build + the EAS parts of rn-harness-submit when the user cannot use EAS — most commonly because the EAS free plan is full (3-project limit reached) or they simply don't want the dependency.
The orchestrator (or the user) picks the build method at the start of Phase 8:
| Situation | Path |
|---|---|
| EAS account has a free project slot, wants managed credentials/OTA | rn-harness-build (default) |
| EAS free plan full (3 projects) / declined EAS / wants full local control | this skill |
EAS free plan allows a limited number of projects per account. Once full,
eas initon a new app fails. This path needs no EAS project at all.
Called by the orchestrator as Phase 8 when build method = local.
docs/harness/config.mdANDROID_HOME set), Gradle (bundled via wrapper)brew install fastlane or gem install fastlane) — used for iOS signing + uploadExpo managed projects have no android/ / ios/ folders until prebuilt. Generate them:
# Clean native projects from app.config.ts (idempotent)
npx expo prebuild --clean
This creates android/ and ios/ with the correct bundle id, icons, splash, and plugin config. Re-run after any app.config.ts change.
OTA note:
expo-updatesin a non-EAS setup needs a self-hosted update endpoint (see Step 6). If OTA is not needed, removeexpo-updatesfrom plugins before prebuild to avoid a build-timeupdates.urlrequirement.
Same rule as the EAS path — never silently generate a keystore. A local Gradle release build requires a keystore; there is no cloud fallback.
AskUserQuestion — "안드로이드 서명 keystore를 어떻게 할까요?":
| 선택지 | 동작 |
|---|---|
| 기존 keystore 사용 | 보유한 .jks 사용. 이미 Play에 출시된 앱이면 필수. |
| 새로 생성 (신규 앱) | keytool로 새 keystore 생성 (아래). 처음 출시하는 앱만. |
| 잘 모르겠음 | Play에 앱이 이미 있으면 기존 사용, 완전 신규면 새로 생성. |
새로 생성 시:
keytool -genkeypair -v \
-keystore credentials/keystore.jks \
-alias upload -keyalg RSA -keysize 2048 -validity 10000
# 비밀번호/이름 입력 → credentials/keystore.jks 생성
생성 직후 안전한 곳에 백업 (이 키를 잃으면 앱 업데이트 영구 불가).
공통 — Gradle에 keystore 연결: create android/gradle.properties entries (or better, ~/.gradle/gradle.properties so secrets stay out of the repo):
RN_UPLOAD_STORE_FILE=keystore.jks
RN_UPLOAD_KEY_ALIAS=upload
RN_UPLOAD_STORE_PASSWORD=********
RN_UPLOAD_KEY_PASSWORD=********
Place keystore.jks at android/app/keystore.jks and wire android/app/build.gradle signingConfigs.release to read those properties. Verify credentials.json, *.jks, *.keystore are gitignored.
HARD GATE: app already on Play + new keystore = FAIL (Play rejects). Confirm before building.
cd android
./gradlew bundleRelease
# → android/app/build/outputs/bundle/release/app-release.aab
APK for sideload testing (optional):
./gradlew assembleRelease
# → android/app/build/outputs/apk/release/app-release.apk
Common failures & fixes:
| Error | Fix |
|---|---|
OutOfMemoryError / Metaspace | org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g in android/gradle.properties |
SDK location not found | set ANDROID_HOME, or create android/local.properties with sdk.dir=... |
Keystore file not found | keystore path in build.gradle is relative to android/app/ |
Duplicate class | ./gradlew clean then rebuild |
Requires macOS + Xcode + an Apple Developer account. Use fastlane for signing so we don't hand-manage provisioning profiles.
cd ios && pod install && cd ..
Create ios/fastlane/Fastfile (or use fastlane match for team signing):
default_platform(:ios)
platform :ios do
lane :beta do
build_app(
scheme: "<APP_SCHEME>", # usually the app slug
export_method: "app-store",
workspace: "ios/<APP>.xcworkspace"
)
upload_to_testflight( # → TestFlight
api_key_path: "credentials/asc-api-key.json" # ASC API key (see submit skill)
)
end
end
cd ios && fastlane beta
Signing options:
fastlane + ASC API key handles certs/profiles.fastlane match: for teams sharing certs via a private git repo.xcodebuild -workspace ... -scheme ... archive then -exportArchive with an exportOptions.plist. Only if fastlane is unavailable.If no macOS is available, iOS cannot be built locally — note this to the user and either use a Mac/CI runner or fall back to EAS for iOS only.
ls -lh android/app/build/outputs/bundle/release/app-release.aab
ls -lh ios/build/*.ipa 2>/dev/null || echo "iOS built via fastlane → uploaded to TestFlight"
EAS Update is a hosted service. Without it, expo-updates needs a self-hosted update server. Options, easiest first:
expo-updates; ship JS changes via normal store updates. Simplest; fine for low-frequency updates.npx expo export produces the update bundle in dist/; serve it from any static host (S3/CloudFront, Cloudflare, a small Express server implementing the expo-updates protocol). Set updates.url in app.config.ts to that endpoint. Most control, most setup.# Produce an update bundle to host yourself (option 2)
npx expo export --platform all
# → dist/ (upload to your static host; point updates.url at it)
Record which OTA option was chosen. If "skip", state clearly that JS fixes now require a store re-submission.
git add android/ ios/ app.config.ts .gitignore
git commit -m "chore: local (EAS-free) build config for Android + iOS"
(Native folders android//ios/ are committed here because this is the bare-workflow build source. Never commit the keystore or credentials.json.)
The rn-harness-submit skill already submits Android via the Google Play Developer API (scripts/publish.js) — that path is already EAS-free, it just needs the local app-release.aab. Only the iOS binary upload differs.
Follow rn-harness-submit Part B unchanged. In the manual AAB-upload step, upload the local android/app/build/outputs/bundle/release/app-release.aab instead of an EAS build URL. scripts/publish.js handles metadata, images, and review submission via the API.
eas submitPick one (all use the ASC API key from rn-harness-submit A-1):
| Tool | Command | Notes |
|---|---|---|
| fastlane (recommended) | fastlane pilot upload (TestFlight) / fastlane deliver (App Store) | Same key as build step; scriptable |
| Transporter app | GUI drag-drop the .ipa | Manual, no CLI |
| altool | xcrun altool --upload-app -f app.ipa --apiKey <KEY_ID> --apiIssuer <ISSUER> | Built into Xcode CLI |
Then metadata + review submission via the App Store Connect API exactly as in rn-harness-submit A-3 (that part never used EAS).
If you upload screenshots with
fastlane deliverinstead of the ASC API (some prefer it), it appends by default — running it more than once (or leaving stale files in the folder) stacks duplicate screenshots on the listing. This is a confirmed footgun. Guard it:
- Clear the folder first, leave only the final images:
rm -rf fastlane/screenshots/* && cp <final PNGs> fastlane/screenshots/- Pass
--overwrite_screenshots true(replace instead of append), plus--skip_binary_upload true --skip_metadata truewhen uploading screenshots only.- Keep one image per device-size slot — a single PNG matching several size slots lands in each, showing the same picture multiple times.
# fastlane/Deliverfile (screenshots only) api_key_path("./credentials/asc-api-key.json") app_identifier("com.company.app") screenshots_path("./fastlane/screenshots") overwrite_screenshots(true) skip_binary_upload(true) skip_metadata(true) run_precheck_before_submit(false)
docs/harness/handoff/build-result.md:
# Build Result (EAS-free / local)
## Build Method
- EAS: NOT USED (reason: [free plan full / user choice])
## Android
- Method: local Gradle (`./gradlew bundleRelease`)
- Status: [SUCCESS/FAILED]
- Artifact: android/app/build/outputs/bundle/release/app-release.aab
- Keystore: [existing / newly generated — BACKED UP?]
## iOS
- Method: fastlane gym (Xcode)
- Status: [SUCCESS/FAILED/SKIPPED — no macOS]
- Artifact: [.ipa path / uploaded to TestFlight]
## OTA
- Strategy: [skipped / self-hosted expo-updates / third-party]
- updates.url: [endpoint or N/A]
## Build Config
- bundleIdentifier / package: com.xxx.xxx
- version: 1.0.0
- buildNumber / versionCode: 1
current_phase: screenshot
next_role: rn-harness-screenshot
credentials.json, *.jks, *.keystore gitignored — secrets never committedfastlane deliver: clear the folder first + overwrite_screenshots(true) + one image per size slot (else duplicates)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub tjdrhs90/rn-launch-harness --plugin rn-launch-harness17 skills in this plugin
/rn-harnessReact Native app launch harness — from market research to App Store & Google Play submission. One command takes you from idea to store review./rn-harness-acceptancePhase 7.5 — Human acceptance gate before store build. Runs an automated Maestro E2E smoke test on a real simulator/emulator, then PAUSES for the user to run the app themselves and explicitly approve before any EAS/local build or store submission./rn-harness-admobPhase 7 — Smart AdMob ad placement analysis and integration. Guides user through manual ad unit creation./rn-harness-buildPhase 8 — EAS Build for iOS and Android, plus EAS Update (OTA) configuration./rn-harness-contractPhase 4 — Generator and Evaluator negotiate completion criteria before any code is written./rn-harness-designPhase 3 — Design system with NativeWind theme, colors, typography, and component specs.