RORK LABJP
BUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verifyBUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verify
Articles/App Dev
App Dev/2026-06-25Advanced

Three Builds on One iPhone: Environment Separation for Rork (Expo) Apps

Split a Rork-generated Expo app into dev, staging, and production builds that live side by side on one device. A hands-on walkthrough of dynamic app.config.ts, eas.json profiles, and isolating notifications, analytics, and billing per environment.

Rork539Expo175EAS6environmentsapp variant

Premium Article

One morning I tried a pre-release fix by installing a test build on my own iPhone, and the icon for the app I use every day quietly disappeared. The bundle ID was identical, so the test build overwrote my production install. Re-login, restoring purchases, re-granting notification permission. I lost maybe ten minutes, but the constraint that followed — "I can't casually test on my daily-driver phone" — kept shaving away at my development speed.

As an indie developer running several apps in parallel, that friction maps directly onto productivity. This article lays out an environment-separation setup that splits a Rork-generated Expo app into dev, staging, and production builds that coexist on the same device, based on the exact configuration I run across my own wallpaper apps at Dolice.

The setup at a glance

Before the concrete config, it helps to see that there are only three things to do.

  1. Make `app.config.ts` dynamic via `APP_VARIANT`, giving each environment its own bundle ID and app name
  2. Add development / preview / production profiles to `eas.json`, pinning `APP_VARIANT` in each
  3. Swap external service credentials — notifications, analytics, billing — to a separate set per environment

With those three in place, the same source code yields three distinct app identities that coexist on one device.

Why a single bundle ID eventually traps you

The code Rork first emits usually has just one bundle ID (bundleIdentifier on iOS, package on Android). That is fine for a prototype, but after launch it breaks in three predictable ways.

You can't keep a production app and a test app on the same device, because the OS identifies installs by bundle ID and overwrites matching ones. EAS Update (OTA) channels get crossed, so a JS bundle you meant for testing can reach production users. And your analytics, billing, and notification data get contaminated, mixing your debugging into real DAU and conversion numbers until they're unreadable.

The fix is simple in principle: split into dev (local development), staging (pre-release verification), and production, and give each its own bundle ID, app name, and service credentials.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Switching app.config.ts dynamically with APP_VARIANT to give each environment its own bundle ID and name
Organizing eas.json into development / preview / production profiles so all three coexist on one device
Isolating push tokens, analytics, and RevenueCat per environment so testing never pollutes production data
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

App Dev2026-08-18
The three places I had to fix before a Rork project actually targeted API level 36
My app.json said targetSdkVersion 36. The value my build actually read was 35. Here is the script that reports the effective value, and how I split my apps between raising, leaving alone, and requesting an extension.
App Dev2026-08-16
My chart broke on day one, not at scale
A line chart that vanished for anyone with only a few days of data. The cause was a zero-height Y axis turning coordinates into NaN. Here is the measured behavior and the small normalization layer that fixed it.
App Dev2026-08-06
Deciding overlay text legibility at ingest time instead of on device — four metrics measured side by side
Moving the question of whether text stays readable over a wallpaper out of the device and into the content pipeline. Four candidate metrics measured across 240 images, including what downscaled judging actually computes.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →