I’ve an app constructed with React Native and Expo.
I had it on Expo SDK-version 48 and simply upgraded to model 49. Now after I run: eas construct
and eas submit
after which replace my app by way of TestFlight on my cellphone, then it crashes instantly.
How do I clear up this error – or determine why it occurs?
And my FYI: My initiatives identify is hercules
.
Resolution try 1: App Retailer Join Crash report
I can then ship a crash report.
If I discover it in App Retailer Join and click on ‘Open in Xcode’:
I then get a stack hint like this:
I suppose that is the draw back of utilizing React Native and Expo. When the ultimate construct is generated like this, then it is tougher to make sense of the stack hint. I am unable to make sense of what it says in above-shown picture.
Resolution try 2: Construct logs in Expo.dev
I additionally checked the “Construct logs” from the Expo.dev “Construct” menu. There are 9mb of logs. Right here is the beginning and the tip (there aren’t any timestamps, so I do not know if it is sorted in ascending or descending order):
Command line invocation:
/Functions/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ./hercules.xcworkspace -scheme hercules -configuration Launch -destination generic/platform=iOS -archivePath "/Customers/expo/Library/Developer/Xcode/Archives/2023-07-09/hercules 2023-07-09 15.19.05.xcarchive" archive
Person defaults from command line:
IDEArchivePathOverride = /Customers/expo/Library/Developer/Xcode/Archives/2023-07-09/hercules 2023-07-09 15.19.05.xcarchive
IDEPackageSupportUseBuiltinSCM = YES
Put together packages
Computing goal dependency graph and provisioning inputs
Create construct description
Construct description signature: 2d65783870e59f558d579d6dedae71da
Construct description path: /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/IntermediateBuildFilesPath/XCBuildData/2d65783870e59f558d579d6dedae71da.xcbuilddata
notice: Constructing targets in dependency order
CreateBuildDirectory /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation
cd /Customers/expo/workingdir/construct/ios
builtin-create-build-directory /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation
CreateBuildDirectory /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/IntermediateBuildFilesPath
...
...
...
Validate /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Functions/hercules.app (in goal 'hercules' from undertaking 'hercules')
cd /Customers/expo/workingdir/construct/ios
builtin-validationUtility /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Functions/hercules.app
Contact /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Functions/hercules.app (in goal 'hercules' from undertaking 'hercules')
cd /Customers/expo/workingdir/construct/ios
/usr/bin/contact -c /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Functions/hercules.app
warning: Run script construct section '[CP-User] Generate app.manifest for expo-updates' might be run throughout each construct as a result of it doesn't specify any outputs. To deal with this warning, both add output dependencies to the script section, or configure it to run in each construct by unchecking "Based mostly on dependency evaluation" within the script section. (in goal 'EXUpdates' from undertaking 'Pods')
** ARCHIVE SUCCEEDED **
Resolution try 3: Different minor notes and makes an attempt
- On my cellphone, after I’ve up to date the app model, I do not see something: It crashed instantly.
- I attempted force-quitting the app, reinstalling it, rebooting my cellphone. None of it modifications the result (nonetheless a right away crash).
- I can run the app in an iOS simulator on my Mac (no crash, however I do get an Axios Community Error I am debugging now).
- I’ve tried to set up Sentry to get higher error reporting. However I could not get this to work (the construct began to fail). So I take away this once more.