-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug/Build/Deploy Expo app locally without EAS/CI or Expo Go #1300
Comments
Hi @martin-braun, Could you please clarify what's the issue? Put in other words, what credentials EAS CLI is exactly expecting you to pass?
|
Hi @dsokal. My goal is to be able to not use the CI of Expo altogether and just benefit from the build tools. I learned about prebuilding my projects, but trying to run my project directly from Android Studio as debug APK on my physical device gives me "Unable to load script. Make sure you're either running Metro or your bundle is packaged correctly for release". Trying to run my project with I tried the command above to solve it, same result. Using Look, I understand that Expo is very slick and customer-friendly with your CI tightly integrated, but a service can never remain forever. It also feels weird that I cannot opt-out of the server dependency at any time. I know that I can ditch Expo and use RN directly, but I was hoping that I can build an app with the slick Expo tool chain with peace in mind, that I can always fall back to do truly local builds without any remote dependency. If this means that I have to eject from Expo, it defeats the purpose and I rather move to RN directly which will give me more opportunities like building for Windows and macOS. |
Your concerns sound reasonable. We'll try to address them soon. |
@dsokal Thanks a lot. Good news though. I checked the documentations of ReactNative regarding my error above. When I run I can just run So luckily I know that I can peacefully use Expo and its CI and have always the option to fall back to local building, as long as I keep the signing local as you mentioned. Will my configuration be compatible with expo plugins when I decide to build locally? I.e. will |
I don't know if I fully understand your message but for what it's worth, you need to use |
Hi @dsokal
|
I would like to know that too. Thanks! |
@trevorwang To be able to build the project in Android without EAS, I used these commands:
Remember to follow up the React Native Documentation to sign the APK and publish to Google Play Store. |
@Youngermaster Many thanks. Will try later. |
@trevorwang You are welcome, I hope that fix your issue, It worked for my First App in React Native with Expo, I'll deploy tomorrow if everything goes right (If Google Play accepts my App). |
Hi! |
|
For anyone trying to just build an APK you can do the prebuild command and after:
|
Hi! Sorry to dig up an old thread. I just want to confirm — is there no way to run a build locally via eas, for example:
Without having to login? |
EAS seems need login every time. There is a workaround for me to build for ios device locally, |
For android, you can use |
What are you guys doing in your CI for the build step? Expo comes with the default
Does it make sense to swap this to What purpose does the export serve if I'm not using expo to serve up web? Edit: expo build seems to run the prebuild anyways. |
Your solution works
But when I tried to run npx react-native start , it didn't work Thank you in advance |
Summary
I assume this should be a mistake. When running local builds on my own infrastructure, there is no need to ask for authentication. This is very important, because it ensures that EAS can even function in a local environment when the Expo service is not available.
Environment
Reproducible demo or steps to reproduce from a blank project
The text was updated successfully, but these errors were encountered: