invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.53k stars 2.19k forks source link

🔥 linker command failed with exit code 1 #4623

Closed mdbaniani closed 3 years ago

mdbaniani commented 3 years ago

Issue

I'm struggling to get RNFirebase working on ios for a day or two. I've followed the instructions carefully and successfully installed and debugged on android, but regarding ios:

when i follow the instructions of 'Getting Started' to the point that i add the /app package and do pod install, everything is fine and project builds correctly.

as soon as i add the /analytics package and do pod install and run project in Xcode/without Xcode, build fails and this error displays:

Ld /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/dadhesab.app/dadhesab normal x86_64 (in target: dadhesab) cd /Users/mdbaniani/Documents/dadhesabappreactnative063/ios export IPHONEOS_DEPLOYMENT_TARGET=10.0 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/FirebaseCore -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/FirebaseInstallations -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Folly -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/GoogleDataTransport -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/GoogleUtilities -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/PromisesObjC -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNCAsyncStorage -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNCMaskedView -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNFBAnalytics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNFBApp -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNGestureHandler -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNInAppReviewIOS -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNReanimated -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNSVG -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/RNScreens -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-Core -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/Yoga -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/glog -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/nanopb -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/react-native-config -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/react-native-netinfo -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -L/Users/mdbaniani/Documents/dadhesabappreactnative063/ios/Pods/CocoaLibEvent/lib -L/Users/mdbaniani/Documents/dadhesabappreactnative063/ios/Pods/OpenSSL-Universal/ios/lib -F/Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator -F/Users/mdbaniani/Documents/dadhesabappreactnative063/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/mdbaniani/Documents/dadhesabappreactnative063/ios/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Intermediates.noindex/dadhesab.build/Debug-iphonesimulator/dadhesab.build/Objects-normal/x86_64/dadhesab.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Intermediates.noindex/dadhesab.build/Debug-iphonesimulator/dadhesab.build/Objects-normal/x86_64/dadhesab_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseInstallations -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lGoogleDataTransport -lGoogleUtilities -lPromisesObjC -lRCTTypeSafety -lRNCAsyncStorage -lRNCMaskedView -lRNFBAnalytics -lRNFBApp -lRNGestureHandler -lRNInAppReviewIOS -lRNReanimated -lRNSVG -lRNScreens -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lYoga -lYogaKit -lc++ -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lglog -lnanopb -lreact-native-config -lreact-native-netinfo -lreact-native-safe-area-context -lsqlite3 -lssl -lstdc++ -lz -framework AudioToolbox -framework CFNetwork -framework CoreTelephony -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework Foundation -framework GoogleAppMeasurement -framework JavaScriptCore -framework MobileCoreServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Intermediates.noindex/dadhesab.build/Debug-iphonesimulator/dadhesab.build/dadhesab.app-Simulated.xcent -lPods-dadhesab -Xlinker -dependency_info -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Intermediates.noindex/dadhesab.build/Debug-iphonesimulator/dadhesab.build/Objects-normal/x86_64/dadhesab_dependency_info.dat -o /Users/mdbaniani/Library/Developer/Xcode/DerivedData/dadhesab-cvmrpsmfaupwzgetktvuprgklpuk/Build/Products/Debug-iphonesimulator/dadhesab.app/dadhesab

ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator' Undefined symbols for architecture x86_64: "___isPlatformVersionAtLeast", referenced from: -[APMMeasurement reportFirstOpenOnWorkerQueue] in GoogleAppMeasurement(APMMeasurement_a8dd8f414f0ab852dc536b0b90fa0992.o) -[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_0a821c4f08ef1829b8739ff30ad1cffe.o) +[APMASIdentifierWrapper iOS14OrAbove] in GoogleAppMeasurement(APMASIdentifierWrapper_956b262b08898320f48bad82f10343ac.o) -[APMIdentity supportsAppTrackingConsentStatus] in GoogleAppMeasurement(APMIdentity_b7c26fbe35850ccea06a684a0c94fc8f.o) _APMInAppPurchaseEventParametersFromProductAndTransactionV2 in GoogleAppMeasurement(APMInAppPurchaseTransaction_edea9bd715422e955ddab49b1cc6b62c.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

i've already tried cleaning project, restarting Xcode, system and combinations of them with no luck.


Project Files

Javascript

Click To Expand

#### `package.json`: ```json { "name": "dadhesab", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.32", "@fortawesome/free-brands-svg-icons": "^5.15.1", "@fortawesome/free-regular-svg-icons": "^5.15.1", "@fortawesome/free-solid-svg-icons": "^5.15.1", "@fortawesome/react-native-fontawesome": "^0.2.6", "@react-native-async-storage/async-storage": "^1.13.1", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/netinfo": "^5.9.7", "@react-native-firebase/analytics": "^10.1.0", "@react-native-firebase/app": "^10.1.0", "@react-navigation/native": "^5.8.2", "@react-navigation/stack": "^5.11.1", "add": "^2.0.6", "axios": "^0.21.0", "jwt-decode": "^3.1.1", "persian-number": "^1.5.1", "persianjs": "^0.4.0", "react": "16.13.1", "react-native": "0.63.3", "react-native-cafebazaar-intents": "0.0.2", "react-native-config": "^1.4.0", "react-native-custom-billing": "^2.0.0", "react-native-gesture-handler": "^1.8.0", "react-native-in-app-review": "^2.1.2", "react-native-loading-spinner-overlay": "^2.0.0", "react-native-modal": "^11.5.6", "react-native-onboarding-swiper": "^1.1.4", "react-native-reanimated": "^1.13.1", "react-native-safe-area-context": "^3.1.8", "react-native-screens": "^2.12.0", "react-native-svg": "^12.1.0", "react-redux": "^7.2.2", "redux": "^4.0.5", "redux-thunk": "^2.3.0" }, "devDependencies": { "@babel/core": "7.12.3", "@babel/runtime": "7.12.1", "@react-native-community/eslint-config": "1.1.0", "babel-jest": "25.5.1", "eslint": "6.8.0", "jest": "25.5.4", "metro-react-native-babel-preset": "0.59.0", "react-test-renderer": "16.13.1" }, "jest": { "preset": "react-native" } } ``` #### `firebase.json` for react-native-firebase v6: ```json # N/A ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' project 'dadhesab', 'Sibapp.Debug' => :debug, 'Sibapp.Release' => :release target 'dadhesab' do config = use_native_modules! use_react_native!(:path => config["reactNativePath"]) target 'dadhesabTests' do inherit! :complete # Pods for testing end # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. use_flipper! post_install do |installer| flipper_post_install(installer) end end target 'dadhesab-tvOS' do # Pods for dadhesab-tvOS target 'dadhesab-tvOSTests' do inherit! :search_paths # Pods for testing end end ``` #### `AppDelegate.m`: ```objc #import "AppDelegate.h" #import #import #import #import #ifdef FB_SONARKIT_ENABLED #import #import #import #import #import #import static void InitializeFlipper(UIApplication *application) { FlipperClient *client = [FlipperClient sharedClient]; SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client addPlugin:[FlipperKitReactPlugin new]]; [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; [client start]; } #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Add me --- \/ if ([FIRApp defaultApp] == nil) { [FIRApp configure]; } // Add me --- /\ #ifdef FB_SONARKIT_ENABLED InitializeFlipper(application); #endif RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"dadhesab" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; return YES; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } @end ```


Android

Click To Expand

#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `MainApplication.java`: ```java // N/A ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz Memory: 30.99 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.14.1 - /usr/local/bin/node Yarn: Not Found npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.0 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 Android SDK: Not Found IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 10.0/10A255 - /usr/bin/xcodebuild Languages: Java: 13.0.2 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.3 => 0.63.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found``` - **Platform that you're experiencing the issue on**: - [x] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `10.1.0` - **`Firebase` module(s) you're using that has the issue:** - `analytics` - **Are you using `TypeScript`?** - `N`


mikehardy commented 3 years ago

Try this: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh

You're not on Apple Silicon, where I would expect to maybe have problems. That script should work. If that script does not work, you may be missing something in your local development toolchain?

mdbaniani commented 3 years ago

Try this: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh

You're not on Apple Silicon, where I would expect to maybe have problems. That script should work. If that script does not work, you may be missing something in your local development toolchain?

I did as you said sir. again I'm receiving similar error(pasted below). I also made a fresh react-native v0.60 project and followed instructions . also encountered same error after installing /analytics package

Ld /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/rnfbdemo.app/rnfbdemo normal x86_64 (in target: rnfbdemo)
    cd /Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios
    export IPHONEOS_DEPLOYMENT_TARGET=10.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/BoringSSL-GRPC -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseABTesting -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseAuth -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseCore -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseCrashlytics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseDatabase -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseDynamicLinks -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseFirestore -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseFunctions -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseInstallations -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseInstanceID -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseMessaging -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseRemoteConfig -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FirebaseStorage -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Folly -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/GoogleAPIClientForREST -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/GoogleDataTransport -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/GoogleUtilities -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/PersonalizedAdConsent -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/PromisesObjC -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Protobuf -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBAdMob -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBAnalytics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBApp -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBAuth -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBCrashlytics -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBDatabase -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBDynamicLinks -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBFirestore -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBFunctions -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBIid -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBInAppMessaging -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBML -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBMessaging -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBPerf -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBRemoteConfig -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/RNFBStorage -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-Core -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/Yoga -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/abseil -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/gRPC-C++ -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/gRPC-Core -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/glog -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/leveldb-library -L/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/nanopb -L/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/CocoaLibEvent/lib -L/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/OpenSSL-Universal/ios/lib -F/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/FirebaseMLCommon/Frameworks -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/FirebaseMLVision/Frameworks -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/FirebasePerformance/Frameworks -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/mdbaniani/Documents/rnfbdemo/rnfbdemo/ios/Pods/GoogleUserMessagingPlatform/Frameworks/Release -F/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds -F/Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/UserMessagingPlatform -filelist /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Intermediates.noindex/rnfbdemo.build/Debug-iphonesimulator/rnfbdemo.build/Objects-normal/x86_64/rnfbdemo.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Intermediates.noindex/rnfbdemo.build/Debug-iphonesimulator/rnfbdemo.build/Objects-normal/x86_64/rnfbdemo_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lBoringSSL-GRPC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFirebaseABTesting -lFirebaseAuth -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseCrashlytics -lFirebaseDatabase -lFirebaseDynamicLinks -lFirebaseFirestore -lFirebaseFunctions -lFirebaseInAppMessaging -lFirebaseInstallations -lFirebaseInstanceID -lFirebaseMessaging -lFirebaseRemoteConfig -lFirebaseStorage -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lGTMSessionFetcher -lGoogleAPIClientForREST -lGoogleDataTransport -lGoogleToolboxForMac -lGoogleUtilities -lPersonalizedAdConsent -lPromisesObjC -lProtobuf -lRCTTypeSafety -lRNFBAdMob -lRNFBAnalytics -lRNFBApp -lRNFBAuth -lRNFBCrashlytics -lRNFBDatabase -lRNFBDynamicLinks -lRNFBFirestore -lRNFBFunctions -lRNFBIid -lRNFBInAppMessaging -lRNFBML -lRNFBMessaging -lRNFBPerf -lRNFBRemoteConfig -lRNFBStorage -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lYoga -lYogaKit -labseil -lc++ -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lgRPC-C++ -lgRPC-Core -lglog -licucore -lleveldb-library -lnanopb -lsqlite3 -lssl -lstdc++ -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework FirebaseMLCommon -framework FirebaseMLVision -framework FirebasePerformance -framework Foundation -framework GoogleAppMeasurement -framework GoogleMobileAds -framework JavaScriptCore -framework LocalAuthentication -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework UserMessagingPlatform -framework WebKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework UserNotifications -weak_framework WebKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Intermediates.noindex/rnfbdemo.build/Debug-iphonesimulator/rnfbdemo.build/rnfbdemo.app-Simulated.xcent -lPods-rnfbdemo -Xlinker -dependency_info -Xlinker /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Intermediates.noindex/rnfbdemo.build/Debug-iphonesimulator/rnfbdemo.build/Objects-normal/x86_64/rnfbdemo_dependency_info.dat -o /Users/mdbaniani/Library/Developer/Xcode/DerivedData/rnfbdemo-eaujngxxcdohidcvgkpagozlkwbg/Build/Products/Debug-iphonesimulator/rnfbdemo.app/rnfbdemo

ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator'
ld: warning: Could not find auto-linked framework 'GoogleDataTransport'
ld: warning: Could not find auto-linked framework 'FirebaseRemoteConfig'
ld: warning: Could not find auto-linked framework 'FirebaseCore'
ld: warning: Could not find auto-linked framework 'GoogleUtilities'
ld: warning: Could not find auto-linked framework 'FirebaseInstallations'
ld: warning: Could not find auto-linked framework 'Protobuf'
ld: warning: Could not find auto-linked framework 'GoogleToolboxForMac'
Undefined symbols for architecture x86_64:
  "___darwin_check_fd_set_overflow", referenced from:
      _RAND_poll in libcrypto.a(rand_unix.o)
  "_UISceneDidEnterBackgroundNotification", referenced from:
      l001 in GoogleMobileAds(GADIntermissionStateMonitor.o)
      l003 in GoogleMobileAds(GADEvents.o)
      l003 in GoogleMobileAds(GADApplicationStateEvents.o)
  "_OBJC_CLASS_$_WKWebpagePreferences", referenced from:
      objc-class-ref in GoogleMobileAds(GADWebViewPinger.o)
      objc-class-ref in GoogleMobileAds(GADWebKitWebViewController.o)
  "_UISceneWillDeactivateNotification", referenced from:
      l008 in GoogleMobileAds(GADRequestStatisticsSignals.o)
      l003 in GoogleMobileAds(GADEvents.o)
      l001 in GoogleMobileAds(GADViewVisibilityMonitor.o)
      _GADSceneWillDeactivateObserversForView in GoogleMobileAds(GADSceneEvents.o)
  "_UISceneDidActivateNotification", referenced from:
      l003 in GoogleMobileAds(GADDeviceOrientationSignalCache.o)
      l001 in GoogleMobileAds(GADIntermissionStateMonitor.o)
      l003 in GoogleMobileAds(GADEvents.o)
      l001 in GoogleMobileAds(GADViewVisibilityMonitor.o)
      _GADSceneDidActivateObserversForView in GoogleMobileAds(GADSceneEvents.o)
  "_UISceneWillEnterForegroundNotification", referenced from:
      l001 in GoogleMobileAds(GADIntermissionStateMonitor.o)
      l003 in GoogleMobileAds(GADEvents.o)
      l003 in GoogleMobileAds(GADApplicationStateEvents.o)
  "___isPlatformVersionAtLeast", referenced from:
      -[FBMLx_CCTUIKitAXUtils initPrivate] in FirebaseMLCommon(CCTUIKitAXUtils_dc6251b59450ef4636775ee851849230.o)
      -[FBMLx_CCTUIKitAXUtils isAssistiveTouchRunning] in FirebaseMLCommon(CCTUIKitAXUtils_dc6251b59450ef4636775ee851849230.o)
      -[FBMLx_CCTUIKitAXUtils isShakeToUndoEnabled] in FirebaseMLCommon(CCTUIKitAXUtils_dc6251b59450ef4636775ee851849230.o)
      -[FBMLx_CCTUIKitAXUtils updateAccessibilityStateCache] in FirebaseMLCommon(CCTUIKitAXUtils_dc6251b59450ef4636775ee851849230.o)
      -[APMMeasurement reportFirstOpenOnWorkerQueue] in GoogleAppMeasurement(APMMeasurement_a8dd8f414f0ab852dc536b0b90fa0992.o)
      -[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_0a821c4f08ef1829b8739ff30ad1cffe.o)
      +[APMASIdentifierWrapper iOS14OrAbove] in GoogleAppMeasurement(APMASIdentifierWrapper_956b262b08898320f48bad82f10343ac.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mdbaniani commented 3 years ago

is there a way that i can install rnfirebase only for android?

mikehardy commented 3 years ago

is there a way that i can install rnfirebase only for android?

Not really a use case we support, although there is nothing stopping you from simply not building the iOS app, at which point you won't get iOS compile errors

Something is wrong in your local environment and I don't think we'll be able to fix it with any change here. That demo script works everywhere I test it, even windows now.

It looks like something went wrong with pod install such that the dependency cocoapods aren't downloaded. Perhaps you need to delete the cocoapods cache entirely or something, but I'm really just guessing here - I don't reproduce this locally and have never seen it

mdbaniani commented 3 years ago

after reading issues with similar error across the internet , it seems that updating Xcode might solve the issue. note that I'm currently running Xcode 10.0 (which doesn't include sdks for iOS 13) on High sierra OS.

mikehardy commented 3 years ago

Oh my! I should have noticed that but it is rare for people not to be current. You have that in your information:

Xcode: 10.0/10A255 - /usr/bin/xcodebuild

As a general rule, if you develop for iOS you must use current Xcode. It is a monstrously big download but you have to stay current. In my experience every time they release a new Xcode there are a few very low-level changes that are made in the tools ecosystem to simply make the builds work and also in the higher-level dependencies to support new App Store requirements, and there is no real avoiding the update.

So definitely get the most current Xcode (12.2 right now if I recall correctly) and re-try

mdbaniani commented 3 years ago

So definitely get the most current Xcode (12.2 right now if I recall correctly) and re-try

thx for your reply Mike. I'm currently using an early 2011 MacBook so I should be planning for a purchase. seems inevitable.

mikehardy commented 3 years ago

Does it not even permit the install? I have some mid-2013 Airs and they still work. Hate it when older hardware is cut off :-). Mostly replying to say that you may be able to get modern software on powerful hardware you have laying around https://github.com/kholia/OSX-KVM

mikehardy commented 3 years ago

I'm going to close this as I don't think it's actionable - we can't reproduce it and it should resolve with modern Xcode, but if you can get a reproduction with Xcode 12.2 we will obviously reopen and figure it out. Good luck!