简体   繁体   中英

Firebase FCM with google plus cordova plugin conflict - 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 ie 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)

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM