- SDK Version: 40
- Platforms(Android/iOS/web/all): iOS
- Managed workflow
Expo CLI 4.3.0 environment info:
System:
OS: macOS 11.2.1
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.18.3 - /usr/local/bin/node
npm: 6.14.6 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
IDEs:
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
npmPackages:
expo: ^40.0.1 => 40.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/sdk-40.0.1.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
npmGlobalPackages:
expo-cli: 4.3.0
Expo Workflow: managed
Suddenly out of the blue, our app keeps crashing 1 second after start in production or when published by expo publish. The problem is only on iOS (all versions), android works just fine. After some debugging, we figured out it it crashes on this section of code in App.js:
componentDidMount() {
Updates.checkForUpdateAsync()
.then((update) => {
if (update.isAvailable) {
Updates.fetchUpdateAsync()
.then((reload) => {
Updates.reloadAsync();
})
.catch((e) => {
console.log(e);
})
}
})
.catch((e) => {
console.log(e); - this line will catch
})
}
Catched the error for the function checkForUpdateAsync():
[Error: The updates module controller has not been properly initialized. If you’re in development mode, you cannot check for updates. Otherwise, make sure you have called [[ABI40_0_0EXUpdatesAppController sharedInstance] start].]
Didn’t have any issue with updates before and this section of code didn’t change for about 1 year.
Deleting & installing node_modules didn’t help.
Any help would be greatly appreciated as I’m currently in dead end.