◉RORK LABJP
●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
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.

Rork622Expo240EAS11environmentsapp 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-11-16
I Set cameraPermission to false for a Photo Picker, and the QR Scanner Lost Its Camera Too
In expo-image-picker, cameraPermission: false deletes NSCameraUsageDescription from Info.plist on iOS and blocks CAMERA for every package on Android. Here is what happens when you also use expo-camera, and a working script that checks permissions before you submit.
◇ App Dev2026-10-28
"Project is incompatible with this version of Expo Go": Three Places to Check Before Blaming Your Project
When Expo Go says your project needs a newer Expo Go, compare three things before you delete node_modules: the project's SDK, the SDK your Expo Go build includes (the App Store build on a physical iPhone works differently from Android and simulators), and a real mix-up in Android Expo Go 56.0.1. With a symptom-by-symptom table.
◇ App Dev2026-10-22
Expo SDK 58 With Stripe: pod install Stops, and Whether to Turn Off Precompiled Modules or Wait
useFrameworks is already dynamic, yet pod install says Stripe is static and the SDK 58 iOS build stops. The reported conditions, three ways out, and a small script to check your own project first.