The Problem:
An iOS app build is failing when using react-native-firebase/crashlytics
. The error message indicates that the symbols _SKAdNetworkCoarseConversionValueHigh
, _SKAdNetworkCoarseConversionValueLow
, and _SKAdNetworkCoarseConversionValueMedium
are undefined.
The Solutions:
Solution 1: Update Xcode to version 14.1 or later
The Firebase Apple SDK requires Xcode 14.1 or later. These StoreKit symbols were not defined in the StoreKit SDK that Xcode 14 is building against – leading to the errors.
Updating to a newer Xcode version should resolve the issue.
Solution 2: Remove firebase_crashlytics and firebase_analytics
Firebase Crashlytics and Analytics are not supported by Xcode 14 or below. If your Mac cannot support operating systems newer than macOS 12, you must remove firebase_crashlytics and firebase_analytics from the project.
Q&A
I tried updating packages. Remove yarn.lock, reset pods, clean build, etc. but the error doesn’t go away. Errror while building ios app: Undefined symbol: _SKAdNetworkCoarseConversionValueHigh
Firebase Apple SDK requires 14.1 or later. Updating to Xcode 14.1 should resolve the issue.
I tried all the solutions i could find online and none of them worked.
It seems the firebase_analytics
is not supported by Xcode 14.1 or below. Removing firebase_analytics
or react-native-firebase/crashlytics
should fix the issue.