We have a detached ExpoKit SDK 31 app that we are now building using XCode for development builds and using fastlane build_app
for production builds.
On my first production build, I encountered the Unexpected end of JSON input
error for shell-app-manifest.json and did an expo publish
on the command line to resolve this error per Xcode Build Fails on ExpoKit Detachment from SDK29.
Then we found that expo publish
needs to be run before each production build, or else the user will install the build and get a stale JS bundle loaded. Questions:
(1) How can I get fastlane build_app
to include that expo publish
step?
(2) Each time I manually run expo publish
, it results in changes to shell-app-manifest.json, AppConstants.java, and shell-app.bundle, which is not desirable for automated builds. How to avoid this? I read https://docs.expo.io/versions/v32.0.0/expokit/advanced-expokit-topics/#configuring-the-js-url but was not clear on how to change this.