xiaohongshu
xiaohongshu
Build, archive, upload iOS app to TestFlight, auto-distribute to external testers, submit for Beta App Review, and update server version. Full automated pipeline via App Store Connect API.
Full skill instructions
Fully automated TestFlight deployment:
Invoke this skill when the user:
~/.appstoreconnect/private_keys/AuthKey_TF37RTPFSZ.p8requests module installedRun the consolidated Python script:
cd /Users/asnaroo/Desktop/experiments/miso/apps/firefly/product/client/imp/ios
python3 testflight-deploy.py
This script performs all 8 steps automatically:
Key feature: The build number is read back from Apple's API (not assumed from local state), ensuring the server version is always accurate.
============================================================
TestFlight Deployment Pipeline
============================================================
Working directory: /Users/asnaroo/Desktop/experiments/miso/apps/firefly/product/client/imp/ios
============================================================
Step 1: Syncing tunables
============================================================
Synced live-constants.json to iOS bundle
============================================================
Step 2: Incrementing build number
============================================================
New build number: 18
============================================================
Step 3: Building and archiving
============================================================
Archive complete
============================================================
Step 4: Exporting for App Store
============================================================
Export complete
============================================================
Step 5: Uploading to TestFlight
============================================================
Uploading... (this may take a minute)
Upload complete
============================================================
Step 6: Waiting for Apple to process build 18
============================================================
(This typically takes 5-15 minutes)
Status: PROCESSING (elapsed: 0s)
Status: PROCESSING (elapsed: 30s)
Status: VALID (elapsed: 60s)
Build is ready!
============================================================
Step 7: Distributing to external testers
============================================================
Getting beta groups...
Target group: marylebone test group
Getting latest build from Apple...
Latest build: 18
Adding build to marylebone test group...
Build added to group
Checking beta review status...
Submitted! Status: APPROVED
Distribution complete!
============================================================
Step 8: Updating server version to 18
============================================================
Restarting server...
Verifying...
Server now reports build 18
============================================================
Deployment Complete!
============================================================
Build 18 is now available to external testers.
Server version updated to 18.
External testers (unlike internal team members) require builds to go through Beta App Review:
betaAppReviewSubmission via API"Missing Compliance" resolved:
ITSAppUsesNonExemptEncryption = false"Invalid bundle - orientations":
Authentication failed (401) for upload:
2e5cbf08-b1a5-4857-b013-30fb6eec002e~/.appstoreconnect/private_keys/AuthKey_TF37RTPFSZ.p8Build number already exists:
agvtool next-version -allDistribution fails:
Build shows "Ready to Submit" (yellow) instead of "Testing":
Server version update fails:
ssh [email protected] "echo ok"~/firefly-server/.env and restart server~/.appstoreconnect/private_keys/AuthKey_TF37RTPFSZ.p8Important: The REST API requires tokens generated by altool --generate-jwt, not PyJWT. The script handles this automatically.
| Script | Purpose |
|---|---|
testflight-deploy.py | Full pipeline (build + upload + wait + distribute + review + server update) |
sync-tunables.sh | Sync live-constants.json from source of truth |
Deprecated scripts (kept for reference):
testflight-deploy.sh - Old bash script, replaced by Python versiondistribute-testflight.py - Old distribution-only script, now integratedGET /v1/apps - Find app by bundle IDGET /v1/apps/{id}/betaGroups - List beta groupsGET /v1/builds - Get latest build (used to confirm build number from Apple)POST /v1/betaGroups/{id}/relationships/builds - Add build to groupGET /v1/builds/{id}/betaAppReviewSubmission - Check review statusPOST /v1/betaAppReviewSubmissions - Submit for Beta App Reviewxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience