Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not complete submission of dSYM When fabric to firebase migration for crashlytics

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

like image 306
IKKA Avatar asked Nov 05 '19 04:11

IKKA


People also ask

How do I create a dSYM file?

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.

How do I upload missing dSYM to Crashlytics?

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).

What is dSYM file?

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.


3 Answers

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.

like image 187
weet1988 Avatar answered Sep 29 '22 00:09

weet1988


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}"

like image 37
Ramesh R C Avatar answered Sep 29 '22 01:09

Ramesh R C


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.

like image 21
Shanakor Avatar answered Sep 29 '22 01:09

Shanakor