Does anyone have a bare IOS application working with expo updates and bundled assets hosted on your own S3 bucket? We’re experiencing the below issue meaning we can’t update any assets with an OTA update.
Summary of Issue
A bare expo IOS application fails to download changed assets from our own S3 bucket due to requiring the file extension.
expo exportcreates all assets in the
assetsfolder with no file extension. e.g.
- ios app is requesting
assets/cec49ef2741941ccb25a382cfa463189.pngand receives access denied due to the correct url actually being
2020-07-23 17:01:00.543811+0100 Test App[7736:11806467] error loading asset cec49ef2741941ccb25a382cfa463189.png: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>XXXX</RequestId><HostId>XXXX</HostId></Error>
- ios - bare
- S3 bucket hosting content of an expo-export
Expo CLI 3.20.5 environment info: System: OS: macOS 10.15.4 Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.6.0 - ~/.nvm/versions/node/v14.6.0/bin/node Yarn: 1.22.4 - ~/.yarn/bin/yarn npm: 6.14.6 - ~/.nvm/versions/node/v14.6.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.6 AI-192.7188.8.131.5292135 Xcode: 11.6/11E708 - /usr/bin/xcodebuild npmPackages: expo: 37.0.10 => 37.0.10 react: 16.9.0 => 16.9.0 react-dom: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5
Steps to Reproduce
- Build a bare IOS application with a couple of images
- Run app
- Change one of the images
- Run an expo export and upload build to S3
- Reload the native app to fetch the latest update
error loading asset
Expected Behavior vs Actual Behavior
- Expect the native app to use no
.pngwhen requesting files from the hosted update.
expo exportto generate assets with file extensions.