Step 1: Describe your environment
- Xcode version:
- Firebase SDK version: on iOS whatever the version is here; for
- Installation method:
- Firebase Component: Analytics
Step 2: Describe the problem
I am a React Native developer utilizing
@react-native-firebase, specifically for Analytics, and have successfully integrated it in Android, however have been unable to do so due to some strange errors on iOS. The problem is detailed here, there is a React Native example here.
Steps to reproduce:
1.) For React Native, run the install script:
yarn install && cd ios && pod install && cd .. && npm run ios. You’ll get this error:
▸ Touching RNFBApp.framework (in target 'RNFBApp' from project 'Pods') ▸ Processing RNFBAnalytics-Info.plist ▸ Linking RNFBAnalytics ❌ Undefined symbols for architecture x86_64 > Symbol: _OBJC_CLASS_$_FIRAnalytics > Referenced from: objc-class-ref in RNFBAnalyticsModule.o ❌ ld: symbol(s) not found for architecture x86_64 ❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
2.) When I utilized the iOS Analytics quickstart with
use_frameworks! via XCode I got this error:
You can see my iOS repo here.
The conversation I had on the React Native repo revolved around
use_frameworks, as you can see here.