Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The new Crashlytics Method

I just downloaded Crashlytics through Cocoapods yesterday, I Started integrating it to my project following some videos in the internet. I liked the way of integration without fabric pod (the new way) so I did that successfully.

Screen shot of successful Crashlytics settings.

Everything is working fine except for uploading DSYM files. I tried the following code:

"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp
"${PROJECT_DIR}/GoogleService-Info.plist" -p ios
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"

But that give me an error while compiling :

Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Validation succeeded. Exiting because upload-symbols was run in validation mode
[31merror: Could not get path for GoogleService-Info.plist[0m
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 4: /Users/ahmedal-mashhoor/Desktop/MagicWordiOS/GoogleService-Info.plist: Permission denied
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 5: /Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Products/Debug-iphoneos/MAGICWORLD.app.dSYM: is a directory
Command PhaseScriptExecution failed with a nonzero exit code

What am I doing wrong here?, help please.

like image 342
FamousMaxy Avatar asked Mar 12 '20 06:03

FamousMaxy


People also ask

What happened to Crashlytics?

In January 2017, Crashlytics and Fabric were acquired by Google. In September 2018, Google announces that Fabric will be deprecated and developers should use Crashlytics via Firebase.

Is Crashlytics deprecated?

Old versions of your app still using the Fabric Crashlytics SDK will not break once it's deprecated, however they will no longer submit crash reports. But it seems like it will just continue to work as per normal after this date until further notice. Just leave it the way it is.

How does Crashlytics work?

Crashlytics saves you troubleshooting time by intelligently grouping crashes and highlighting the circumstances that lead up to them. Find out if a particular crash is impacting a lot of users. Get alerts when an issue suddenly increases in severity.

How much does Crashlytics cost?

With Crashlytics Enterprise, there are no usage costs, fees, or limits when it comes to your app's performance monitoring.


Video Answer


1 Answers

I found the right code:

"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p iOS "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
like image 73
FamousMaxy Avatar answered Jan 29 '23 13:01

FamousMaxy