Hey, I recently signed up for the EAS build and cannot build for iOS or Android. The legacy builds work fine.
For my Android build it is failing on:
Task :app:bundleReleaseJsAndAssets
Error: The resource `/build/workingdir/build/index.js` was not found.
For my iOS build it is failing on:
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/xxxx/Build/Intermediates.noindex/ArchiveIntermediates/xxxx/BuildProductsPath/Release-iphoneos/xxxx.app/main.jsbundle does not exist. This must be a bug with
❌ Metro encountered an error:
Error loading Metro config and Expo app config: Expected `fromDir` to be of type `string`, got `undefined`
Here is the error details from the xcode logs:
error: File /Users/expo/Library/Developer/Xcode/DerivedData/HabitStar-eijmukzmubkgsxegvbjmzjshewkb/Build/Intermediates.noindex/ArchiveIntermediates/HabitStar/BuildProductsPath/Release-iphoneos/habitstar.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2
Error: @build-script-error-begin
Error loading Metro config and Expo app config: Expected `fromDir` to be of type `string`, got `undefined`
Make sure your project is configured properly and your app.json / app.config.js is valid.
If you are using environment variables in app.config.js, verify that you have set them in your EAS Build profile configuration or secrets.
@build-script-error-end
at /Users/expo/workingdir/build/node_modules/expo-updates/scripts/createManifest.js:32:11
GenerateDSYMFile /Users/expo/Library/Developer/Xcode/DerivedData/HabitStar-eijmukzmubkgsxegvbjmzjshewkb/Build/Intermediates.noindex/ArchiveIntermediates/HabitStar/BuildProductsPath/Release-iphoneos/habitstar.app.dSYM /Users/expo/Library/Developer/Xcode/DerivedData/HabitStar-eijmukzmubkgsxegvbjmzjshewkb/Build/Intermediates.noindex/ArchiveIntermediates/HabitStar/InstallationBuildProductsLocation/Applications/habitstar.app/habitstar (in target 'HabitStar' from project 'HabitStar')
cd /Users/expo/workingdir/build/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/expo/Library/Developer/Xcode/DerivedData/HabitStar-eijmukzmubkgsxegvbjmzjshewkb/Build/Intermediates.noindex/ArchiveIntermediates/HabitStar/InstallationBuildProductsLocation/Applications/habitstar.app/habitstar -o /Users/expo/Library/Developer/Xcode/DerivedData/HabitStar-eijmukzmubkgsxegvbjmzjshewkb/Build/Intermediates.noindex/ArchiveIntermediates/HabitStar/BuildProductsPath/Release-iphoneos/habitstar.app.dSYM
/Users/expo/workingdir/build/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'boost-for-react-native' from project 'Pods')
I’m using the managed expo workflow. I believe I followed all the instructions per: EAS Build - Expo Documentation
What other info can I provide to help diagnose?
Do I need to have a metro.config.js
file?
Failed Android Build: Build Details — 8a0b3c64-d928-4cfd-aed0-586c91eccf36 — habit-star — Expo
Failed iOS Build: Build Details — 8a0b3c64-d928-4cfd-aed0-586c91eccf36 — habit-star — Expo