r/reactnative • • 22d ago

Question Testing the app during development.

Hey there app people, as of now the app I am currently working on is using React Native and Expo to build it, and at 25 builds per month ( the free plan ) I am quickly spending it all on just fixing bugs.

I am currently a computer science student ( very early ) and using a blend of my own coding and Codex / ChatGPT to create it.

Is there a better and possibly free way to test each new version of the app on my phone without using Expo to build it?

3 Upvotes

17 comments sorted by

3

u/PenguinOnYourTV 22d ago

So from what I'm reading, ther are 2 things you are not doing:

  1. Running the Expo/Metro server on your machine and deploying to your connected Android- or iOS-device, either a real device or your simulator

    1. This is where I normally do dev-work, bug fixing etc.
    2. Your build will likely be in DEV-mod
  2. Assuming you have a macbook, if you want to test a Production build on your device and thus cut out the EXPO dependencies, you can open the workspace-file of your latest build in Xcode (There are two, and I can't freakingremember which one of them it is, sorry!), Edit the Schema from "Debug" to "Release" and deploy it manually to your connected iOS device.

    1. If you make any changes, you'll have to rebuild and re-deploy, so save this for when you wanna test "Production-level-stuff" before you submit through Expo.

--------------

I just ran the following prompt through ChatGPT, and it gave me a good guide on what you need to do to get going with the above suggestions:

Heya.

Working with React native Expo, I need a guide for 2 things to test my build:

  • Setup and launch a Expo/Metro server locally on my machine and connect to a simulator or test on a real device
  • How to take a build and change it from "Debug" to "Release" and deploy to my real device, without using Expo

0

u/Thaatguuuy 22d ago

Yeah I don't know why my ChatGPT would circle around it so much, after pasting what you said in for the prompt he actually gave me the answer, so thank you very much!

I am on Windows, making it for Android first ( because that's the phone I have access to so I can test it ) it involves quite a bit of 3D-modeling in the app so I tried testing it on a emulator on the PC but that didn't really work.

3

u/mx_aurelia 22d ago

You probably don't need a full native build each time. Look into the concepts of OTA (to get JS updates to your users) and fingerprinting within expo (the native fingerprint which decides if an update is OTA compatible).

As long as your app's fingerprint stays the same, you can just use a development build, which you can run locally, to test your changes.

1

u/Thaatguuuy 22d ago

Thank you very much!

2

u/Professional-Tap-186 22d ago

Use ”eas build ios --local“

1

u/HmongSliw68 22d ago

seconding the local dev build, saves so much waiting around too tbh

1

u/Huge_Pool7424 22d ago

also keep a release build on a real android phone now and then, since dev mode hides perf and hermes issues that only show up in release.

1

u/Shugzaurus 22d ago

So I don't work with EAS, I only use it on personal projects so my fldefzult way of doing things is to build locally first. If you have a Mac you should be able to do everything locally so you can preserve your runs for prod builds. If you're on win or Linux, then you won't be able to get an iOS dev build without EAS or any cloud agent running mac (at work inxas able to make all iOS builds with azdo pipelines for example)

0

u/Thaatguuuy 22d ago

After I read some of the replies I figured it out.

I had previously asked Chattie Boy how to do this locally, but he would not give me a good answer, always said you can't do this and that, but now he suddenly gave me an option.

Also, I've so far been developing it for Android, mostly because that's what my own phone is, and using the USB-debug when bugs pop up.

1

u/__CaliMack__ 22d ago

Are your using expo go now?

1

u/Thaatguuuy 22d ago

As of right now im coding it on the github cloud. Then using git pull in PowerShell to download it locally. Then using Metro to send the update to the phone.

When im doing native changes I use Gradle and the Android SDK that I installed through Android Studio to build the APK on ny PC. ADB then installs it on the phone through USB.

Its ALOT faster aswell, especially when the build queue times on Expo are high.

1

u/Low_Drive3170 22d ago

You only need to build once. Make a development build and install it on your phone, then JS changes show up instantly through the dev server with fast refresh, no new build. Or just use Expo Go if you aren’t touching native modules

1

u/NoBullfrog11 20d ago

i burned thru free builds the same way when i started. switched to a local expo development build on a real phone and only used eas for actual release candiates.

daily testing is just npx expo start + the installed dev client, no cloud build each time. saved me a ton of the monthly quota.

1

u/Triple-B-564 17d ago

Sounds like you have got a solid local setup going for Android already.

For iOS, if you don’t have a Mac, you’ll eventually need some kind of cloud build machine anyway. Bitrise CI is one option worth checking out - a disclosure, I work there (so maybe I’m biased), but I think it’s genuinely useful to look at, especially if you want to see how CI/build pipelines work in practice.

It runs builds on macOS machines, has a pretty decent free tier, and you can check what’s included on the pricing page / FAQ: https://bitrise.io/pricing

Also, it supports CodePush / OTA updates, so once you’ve got a real build on a device, JS-only changes can go straight without a full rebuild. 

Since you’re in university (assuming you are still learning new things), trying different  CI setups can be a nice exercise too - you get a better feel for how the build process works.