Firebase FCM with google plus cordova plugin conflict - IOS - ios

I am using
"cordova-plugin-fcm-with-dependecy-updated": "^2.4.0",
"cordova-plugin-googleplus": "^8.0.0",
I have added IOS platform
"cordova-ios": "^5.0.1",
and when I try to build it in XCode it fails with below error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note: I have tried everything mentioned in this question.
Firebase Undefined symbols for architecture x86_64
Build works if I remove any one of the plugins.

To anyone wondering, I solved it by downgrading to
`"cordova-plugin-googleplus": "^7.0.1",`
Latest version 8.0.0 is using Pods to manage dependencies which will be global/project-wide, while 7.0.1 handles dependencies locally i.e only for that plugin. So it won't affect any other plugin(s) using those same dependencies.

With this version it has worked perfectly.
"cordova-plugin-googleplus": "^7.0.1"
It should also be taken into account that sometimes it is necessary to add REVERSED_CLIENT_ID
Xcode -> info -> URL Types (add this)

Related

FirebaseCrashlytics and FirebaseAnalytics pod installation is failing

In migrating my Fabric/Crashlytics SDK into FirebaseCrashlytics, I've decided to integrate cocoapods.
After adding FirebaseCrashlytics and FirebaseAnalytics into the Podfile, I am getting this error when I compile and I can't figure out why it is happening:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
"_kFirebaseCloudMessagingErrorDomain", referenced from:
-[FIRMessaging(FIRApp) configureMessaging:] in FirebaseMessaging(FIRMessaging+FIRApp_ed2c92d2ac2b5969ab6c5684759ab5bd.o)
-[FIRMessaging(FIRApp) exitApp:withError:] in FirebaseMessaging(FIRMessaging+FIRApp_ed2c92d2ac2b5969ab6c5684759ab5bd.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What am I missing?
EDIT: - I've fixed the second issue with FirebaseMessaging, for the life of me, I can't figure out why I'm having issues with this:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
All of the Firebase Repos I'm using are currently now set up via Cocoapods.
It looks like the app is linking a very old copy of FirebaseMessaging and some of its dependencies with recent versions of Analytics and Crashlytics.
Since Firebase libraries share dependencies, it is not likely to work to mix incompatible versions or installation methods.
Something with linking... Looks like the wrong podfile configuration. Make sure that you add target pods to the needed App target correctly.

iOS Unity Firebase Messenger Xcode Compile Error: FIRDynamicLinks

Building with Unity 2018.4.2 - Xcode 10.2 - Latest iOS Targets
Firebase Latest (6.1.1) for Unity with .Net 4
For Firebase We are using the following unity packages:
- FirebaseMessaging.unitypackage
- FirebaseAnalytics.unitypackage
Get the following Build Error in Xcode:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On another Machine same error however armv7 target:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tested Solutions (no solution yet):
Obj-C to frameworks (was already there)
Updated Cocoa Pods to Latest
Deleted Developer/Xcode/DerivedData
Updated Cocoa Pods and deleted caches
The strangest thing is this only started happening on Monday, previously was working, nothing else was changed, so this leads to believe this is Google changed something in their Cocoa pods library which is linking agains't another package which is not included now.
Problem does not occur in the same Android Variant of the Project.
Solution:
It now requires you to also include and install Firebase: DynamicLinks in order to compile for iOS.
FirebaseDynamicLinks.unitypackage
So install the following package into your unity project from the download of Firebase Unity.

Trouble with _RCTReconnectingWebSocket with ExpoKit

I'm experimenting an issue since some days ago, and I don't know what I made to have my project under a bad configuration. I hope explain it in a good way:
If I configure my scheme with build configuration set to Release, the build is ok. But when I changed the build configuration to Debug, the build is failed with the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RCTReconnectingWebSocket", referenced from:
objc-class-ref in libReact.a(RCTPackagerConnection.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My project is a react native ejected with ExpoKit:
"expo": "^19.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-19.0.0.tar.gz",
Plus, the project has CocoaPods as a dependency manager (so I open the project with the xcworkspace file).
Any ideas what do I have wrong?

failing to embed 'GoogleAppIndexing' pod to IOS app

Im having hard time to build the project after adding GoogleAppIndexing (deep linking) pod to my project. Google's Install Instructions
Im a newbie in IOS , in fact i know very little about objC, My app is written in react native.
Im getting these exception on build.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDAppIndexing", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
as i understand the message pod/lib is not compatible with 64bit environments , doesn't make any sense .
im using xcode 6.4 .
Thanks
GoogleAppIndexing Lib is IOS 9 and above.

Linker error when building Login Demo

I'm getting this error when I try to build the iOS Login Demo from https://github.com/firebase/login-demo-ios:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Firebase", referenced from:
objc-class-ref in ViewController.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 have updated the project Podfile to use Firebase 2.4.1 and updated the target to iOS 8.4 and am using XCode 7.0.1. How do I fix this?
I created an issue on Github per #Frank van Puffelen's recommendation, and got this response (https://github.com/firebase/login-demo-ios/issues/15):
This is due to a broken release for Firebase on CocoaPods. We're working on a fix for that. As a workaround until we release that you can point to 2.3.3 in the Podfile.
I imagine this would break any project pulling Firebase 2.4 from CocoaPods.

Resources