Firebase Crashlytics IOS SourcePackages not found
Asked Answered
L

2

7

I tried setting up Firebase Crashlytics to my React Native project. I received the following error when I was building the project after I added the build phase script.

Script I added from the firebase guide (can be found here) :

Script from firebase guide

Error:

MY-APP-ABC/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run: No such file or directory

When I look in the folder of MY-APP-ABC, I don't see the SourcePackages folder anywhere.

Lotus answered 12/1, 2022 at 3:23 Comment(0)
H
16

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"
Hypotenuse answered 25/5, 2022 at 16:46 Comment(2)
Thank you very much!!! I don't understand why they didn't put this in the official document.Sewellyn
there are different scripts required depending if you are using Pods or SPM #63705411Azole
R
0

In my case it was the custom path for DerivedData that I set for the project. Reverting back to the Xcode default location solved this error.

Remex answered 25/9 at 15:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.