[expo-updates] [SDK 49] Presence of expo-updates causes production build to crash on launch
Problem
Minimal reproducible example https://github.com/mikescott/expo-updates-crash Summary The presence of expo-updates causes production and simulator builds to crash on launch. I discovered this after upgrading a project to SDK 49. The issue does not happen in SDK 48. To reproduce 1. Build the app: `eas build --platform=ios --profile=simulator` 2. Run the app in an iOS Simulator The app will crash with the following report: [code block] To fix the app: 1. `yarn remove expo-updates` 2. `eas build --platform=ios --profile=simulator` 3. App will launch successfully Environment [code block]
Error Output
Exception Type: EXC_CRASH (SIGABRT)
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Remove expo-updates to Fix Production Build Crash
The expo-updates module is incompatible with SDK 49, leading to crashes on launch in both production and simulator builds. This issue does not occur in SDK 48, indicating a regression or breaking change introduced in the upgrade to SDK 49.
Awaiting Verification
Be the first to verify this fix
- 1
Remove expo-updates
Uninstall the expo-updates package from your project to eliminate the source of the crash.
bashyarn remove expo-updates - 2
Clean the build cache
Clear any cached build artifacts to ensure that the changes take effect properly.
basheas build --platform=ios --profile=simulator --clear-cache - 3
Rebuild the application
Rebuild the application for the iOS simulator to confirm that the crash is resolved.
basheas build --platform=ios --profile=simulator - 4
Test the application
Run the application in the iOS simulator to verify that it launches successfully without crashing.
bashopen ios/build/YourApp.app
Validation
Confirm that the application launches without crashing in the iOS simulator. Check for any error logs or crash reports to ensure that the issue is resolved.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep