I have used
expo eject and trying to build for my iOS device with Xcode directly.
It does work when selecting Product → Run.
But, it launches a Metro server the app which is built on the device is depdend on the JS file which is stored remotely.
How can I build with an ejected project without having a metro builder running? something with a minified JS build into the code?
Hey @danomano214, you can use the
react-native cli to handle this if you want. For example, the command
npx react-native run-ios --configuration Release --no-packager will build a release binary without starting the packager. If you want to build for a physical device, you can add the
--device flag to the command above.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.