31

I am integrating the Firebase Analytics and the Crashlytics in my app. After Initializing the Crashlytics, I am getting the following error while building the app.

mediates.noindex/AppName.build/Release-iphoneos/AppName.build/Script-CEF6C7C8235DEDE800229776.sh: line 3: /Users/apple/Documents/AppFolder/AppName/Folder/Pods/FirebaseCrashlytics/run: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code

The following is my transcript configuration I have imported the crashlytics pod and analytics pod. How to fix this issue. Any help is really appreciated.

enter image description here

Varun P V
  • 1,092
  • 1
  • 12
  • 30
  • Can you add the steps you've taken so far for the Crashlytics integration based on what's here: https://firebase.google.com/docs/crashlytics/get-started?platform=ios. And if you enable debug mode (https://firebase.google.com/docs/crashlytics/test-implementation?platform=ios#enable_debug_logging), you may get more logs. If so, please post those as well. – Kevin Kokomani Sep 02 '20 at 18:09

3 Answers3

71

If you installed firebase using cocoa pods use:

"${PODS_ROOT}/FirebaseCrashlytics/run"

If you installed firebase using Swift Package Manager use:

"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
Wahyu Kristianto
  • 8,719
  • 6
  • 43
  • 68
Philip Mintah
  • 737
  • 5
  • 10
  • 9
    Why this doesn't make it into Firebase documentation is beyond me. – trndjc Apr 09 '22 at 18:25
  • 2
    @liquid Yeah, This is very critical!! Firebase docs should be updated!! – Hyungju Moon Apr 26 '22 at 08:30
  • 1
    it's written here: https://firebase.google.com/docs/crashlytics/get-started?platform=ios – Turvy May 31 '22 at 09:14
  • @Philip Mintah - thank you for your answer. I am looking up for this more than an hour. Anyone having this issue https://firebase.google.com/docs/ios/installation-methods - Here you can find the link. – Saravanan Nov 23 '22 at 07:45
14

It helped me. Check your podfile, it should contain the following:

# Add the pod for Firebase Crashlytics
pod 'Firebase/Crashlytics'
# Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'

and run pod install

https://firebase.google.com/docs/crashlytics/get-started?platform=ios

To continue getting crash reports in the Firebase console, make sure you upgrade to the Firebase Crashlytics SDK versions 17.0.0+ for Android, 4.0.0+ for iOS, and 6.15.0+ for Unity.

flowGlen
  • 627
  • 3
  • 11
1

As mentioned in this answer by Philip Mintah, if you are using Swift Package Manager you should use a different path to Crashlytics, another thing worth to mention is that you are probably using upload-symbols script which also requires a path change.

So if you are using CocoaPods:

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

If you are using Swift Package Manager:

${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols -gsp ${PROJECT_DIR}/${TARGET_NAME}/GoogleService-Info.plist -p ios ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}

Hope that helps!

ytpm
  • 4,962
  • 6
  • 56
  • 113