Hi, I’m using EAS to build an IOS app using managed workflow. My assets correctly display in the simulator, but they don’t display in code built in EAS.
My assets directory is in the same directory as App.json.
app.json:
“assetBundlePatterns”: [
“assets/*”
],
can you or op share a project that reproduces this? definitely should not be necessary to publish the project because the assets are bundled already with the binary
I’ve recently been battling this - a bundled asset just will not load on a production iOS build (eas build --platform ios) until I do an expo publish --target bare.
Android is absolutely fine, iOS Simulators are fine, Expo Go is fine, just IPAs uploaded to the Apple App Store don’t load images from bundled assets.
I have one project under Expo at the moment - if you can view it then feel free to use that, otherwise I’ll try and throw a test project together
@notbrent I’m not sure if you still need a reproduction case, I might be able to get you something privately but I’m still seeing this issue on v42 with EAS builds. Android works correctly, and iOS simulators and dev clients seem to work as expected, but for published iOS builds there aren’t any assets I’m providing besides the splash and app icon (which are in the same directory as my other assets). A separate publish command does later resolve the issue, but would rather not need that. Would greatly appreciate any help :).
sure, you can share your project with me on github: brentvatne
the issue is likely that you have a metro.config.js that does not extend the @expo/metro-config. you need to follow these instructions: Customizing Metro - Expo Documentation
we’re adding validation to eas-cli for this because it is tripping up a good number of people and longer term, we’ll just make sure every config extends the correct base config by default.