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

Viewed 7215

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

2 Answers

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"

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.

Related