I am using xcode11 with mac os 10.14.1. I implemented fabric to firebase migration using the following docs.
https://medium.com/@niamhpower/the-great-migration-moving-from-fabric-to-firebase-as-an-ios-developer-7b61a8b40008
And I generated code for testing crash , but this crash report cannot appear in firebase crashlytics console.I used the following doc for this implementation
https://firebase.google.com/docs/crashlytics/force-a-crash?platform=ios
I also added the following run script in Xcode build phases
"${PODS_ROOT}/Fabric/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
But this will return the following error when I run the application.
31merror: Could not complete submission of dSYM at /Users/macmini1/Library/Developer/Xcode/DerivedData/app_name-dnzsvdsxebmfqjbjecjlyhdzwags/Build/Products/Debug-iphonesimulator/app_name.app.dSYM: Error Domain=com.crashlytics.mac.error-domain.process-dsym Code=3 "File no longer exists at (null)" UserInfo={NSLocalizedFailureReason=File no longer exists at (null)}[0m Command PhaseScriptExecution failed with a nonzero exit code
Could you please help me how to solve this issue
Download dSYM files using Xcode's app archive Open the Xcode Organizer: From the Xcode menu, select Window > Organizer > Archives > (select a mobile app). From Version, select the archive that matches the app version (listed first) and build number (following the app version in parentheses). Select Download dSYMs.
To manually upload your dSYMs, you can use the console-based "Drag and Drop" option to upload a zip archive containing your dSYM files (go to Firebase console > Crashlytics > dSYMs tab).
A dSYM file is an ELF file that contains DWARF (debugging with attributed record formats) debug information for your application. DWARF is a debugging file format that supports source-level debugging.
I had the same problem. The reason was that the script "$ {PODS_ROOT}/Fabric/run" was not the last in the list of scripts in Build Phases. Made the script last and everything became OK.
I have solved by adding find
command. Add find command above the upload-symbols
Example :
find "${DWARF_DSYM_FOLDER_PATH}" -name "*.dSYM" | xargs -I {} $PODS_ROOT/Fabric/upload-symbols -gsp "${PROJECT_DIR}/MyApp/GoogleService-Info.plist" -p ios {}
"${PODS_ROOT}/Fabric/upload-symbols" -gsp "${PROJECT_DIR}/MyApp/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
In my case, I tried uploading the unzipped version of the dSYMs. My build produces a file myapp.app.dsym.zip
. You have to upload the zipped version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With