简体   繁体   English

Firebase FCM 与 google plus cordova 插件冲突 - IOS

[英]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我添加了IOS平台

"cordova-ios": "^5.0.1",

and when I try to build it in XCode it fails with below error.当我尝试在 XCode 中构建它时,它失败并显示以下错误。

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 架构 x86_64 的 Firebase 未定义符号

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.最新版本8.0.0使用Pods来管理全局/项目范围的依赖项,而 7.0.1 在本地处理依赖项,即仅针对该插件。 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还应该考虑到有时需要添加REVERSED_CLIENT_ID

Xcode -> info -> URL Types (add this) Xcode -> info -> URL Types(添加这个)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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