[SDK 41] Standalone app crashes on ios when built with EAS while using AsyncStorage
See original GitHub issueSummary
When using AsyncStorage from the package recommended by the SDK 41 upgrade, it breaks the standalone ios app when the app is built using “eas build”. It works fine on standalone android.
The way to reproduce this is call AsyncStorage.getItem(‘key’) in app.js and build it with eas build -p ios and submit that version to the store. It will crash the app right away.
To fix this issue, you’ll have to build the app using expo build.
It has something to do with what native code is used when building the ios standalone app.
Check this issue for more information: https://github.com/expo/expo/issues/13391
Is there a way we could use EAS build using the native code expo build uses as well?
This is such a major issue and nearly impossible to debug without knowing what caused the error initially as it’ll simply crash.
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
41
Environment
Expo CLI 4.7.1 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 12.18.3 - C:\Program Files\nodejs\node.EXE npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD npmPackages: expo: ^41.0.0 => 41.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/refs/tags/sdk-42.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 react-navigation: ^4.4.4 => 4.4.4 Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
The way to reproduce this is call AsyncStorage.getItem(‘key’) in app.js and build it with eas build -p ios and submit that version to the store. It will crash the app right away.
To fix this issue, you’ll have to build the app using expo build.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
same here, i am using SDK 43 and it looks like
react-native-async-storage/asyncStorage
is broken in EAS buildThis makes a lot of sense. Let me try a few things first then.
Thanks for the feedback.