Skip navigation
Debugging a production bug shouldn't mean uninstalling your dev build first.
0:00 / 0:54

Debugging a production bug shouldn't mean uninstalling your dev build first.

Expo

92K followers

Visit on X
353 likesDownloadOriginal post

31,221 views

Debugging a production bug shouldn't mean uninstalling your dev build first. You need to use app variants. App variants give each build its own identity, so dev, preview, and production sit side by side on one phone. One dynamic config reads 𝙰𝙿𝙿_𝚅𝙰𝚁𝙸𝙰𝙽𝚃, each variant gets its own bundle ID and icon, and you tap between them freely. It's the first thing worth setting up on a real project. Full setup and blog from Jacob Clausen below ↓

14 Comments

Comments from the original post on X (Twitter)

  • Expo's profile picture

    @expo

    📖 Install dev and production side by side with app variants ✍️ @entiendoNULL

    41 likes

  • parbez's profile picture

    @notparbez

    Doing the same

    3 likes

  • Expo's profile picture

    @expo

    This is it.

    2 likes

  • Vince's profile picture

    @vellapps

    This is wonderful

    2 likes

  • Alan Acuña's profile picture

    @Alantheace13

    this is one of those “boring setup” tasks that saves you from doing a very un-boring production debugging session later absolutely love this trick 😁

    2 likes

  • Expo's profile picture

    @expo

    Alan gets it.

    2 likes

  • Eddy's profile picture

    @eddy_builds

    Yep I do this for expo apps. Expo is freaking awesome!

    2 likes

  • Bob Troia's profile picture

    @BobTroia

    We do this with all of our Expo-powered apps at @AwesomeLabsLLC 💪

    1 like

  • Expo's profile picture

    @expo

    @AwesomeLabsLLC Top of the class Bob.

    2 likes

  • Utkarsh Singh's profile picture

    @Utkarsh51557661

    tried that before — turns out managing all those configs gets messy real fast.

    1 like

  • Owen Melbourne's profile picture

    @OwenMelbz

    We’ve done this a few times now, the bit everybody forgets to mention is the complexity around setting up 3 apps in the google/play console and apple dev portals, then how to get the preview builds etc into the hands of stakeholders etc The task doesn’t stop at an ENV change.

    1 like

  • Brilliant Insane's profile picture

    @brill_insane

    I guess I’ll need to do some renaming in my project then 😅 Or I can just name the env variable differently, but that just doesn’t feel right

  • Thijs.Cro 🇳🇱's profile picture

    @soulanemone

    How do you debug a iOS widget tho.. spend like 150 usd on builds

  • Cornelius Mark's profile picture

    @corneliusmark

    This setup shines when you add analytics or payments that behave differently in prod. Avoids accidental data leaks during dev.