FirebaseCrashlytics/run: No such file or directory error while building the app - swift
Asked Answered
G

3

41

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

Glede answered 2/9, 2020 at 11:50 Comment(1)
Can you add the steps you've taken so far for the Crashlytics integration based on what's here: firebase.google.com/docs/crashlytics/get-started?platform=ios. And if you enable debug mode (firebase.google.com/docs/crashlytics/…), you may get more logs. If so, please post those as well.Moncrief
M
110

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"
Millburn answered 6/3, 2022 at 12:7 Comment(6)
Why this doesn't make it into Firebase documentation is beyond me.Woodley
@liquid Yeah, This is very critical!! Firebase docs should be updated!!Myelencephalon
it's written here: firebase.google.com/docs/crashlytics/get-started?platform=iosChronicle
@Philip Mintah - thank you for your answer. I am looking up for this more than an hour. Anyone having this issue firebase.google.com/docs/ios/installation-methods - Here you can find the link.Szabo
Saved my day! thanks a lot <3 again another great! firebase documentation issue...Amyamyas
Here is the update link of Firebase Docs (to know what to use if you're using SwiftPackageManager or CocoaPods): firebase.google.com/docs/ios/…Studley
H
15

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.

Hustings answered 3/9, 2020 at 6:44 Comment(1)
It didn't work in my caseFarinaceous
B
4

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!

Buggs answered 31/10, 2022 at 11:15 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.