Question or problem in the Swift programming language:
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
How to solve the problem:
Solution 1:
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.
Solution 2:
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}”
Solution 3:
Try to run your app (or make archive etc…) without the script (to create DSYM files the first time) by removing it from Build Phases --> Run Script
, then add the script and retry.
(Worked for me with FirebaseCrashlytics/upload-symbols
script)
Solution 4:
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.