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 once I run: eas construct
and eas submit
after which replace my app through TestFlight on my telephone, then it crashes instantly.
How do I resolve this error – or work out why it occurs?
And my FYI: My tasks 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 can not 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:
/Purposes/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
Consumer 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/Purposes/hercules.app (in goal 'hercules' from mission 'hercules')
cd /Customers/expo/workingdir/construct/ios
builtin-validationUtility /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Purposes/hercules.app
Contact /Customers/expo/Library/Developer/Xcode/DerivedData/hercules-aiqjbxmtddzpiscjqedlczrddaee/Construct/Intermediates.noindex/ArchiveIntermediates/hercules/InstallationBuildProductsLocation/Purposes/hercules.app (in goal 'hercules' from mission '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/Purposes/hercules.app
warning: Run script construct part '[CP-User] Generate app.manifest for expo-updates' will probably be run throughout each construct as a result of it doesn't specify any outputs. To handle this warning, both add output dependencies to the script part, or configure it to run in each construct by unchecking "Primarily based on dependency evaluation" within the script part. (in goal 'EXUpdates' from mission 'Pods')
** ARCHIVE SUCCEEDED **
Resolution try 3: Different minor notes and makes an attempt
- On my telephone, 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 telephone. None of it adjustments the result (nonetheless a direct 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.