Firebase和Google Signin给出了重复的符号错误 [英] Firebase and Google Signin giving duplicate symbols error

查看:266
本文介绍了Firebase和Google Signin给出了重复的符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 复制符号_kServiceInfoFileName位于:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GMeMementment.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GMeMeasurement.pb.o)

重复的符号_OBJC_CLASS _ $ _ ACPResultData in:
/ Users / APPLE / Desktop /Justride/Pods/Firebase/Libraries/libFIRCore.a(GMeMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GMeMeasurement.pb.o)

重复符号_OBJC_METACLASS _ $ _ ACPResultData in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GMeMementment.pb.o)
/ Users / APPLE /Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GMeMeasurement.pb.o)

ld:体系结构x86_64的46个重复符号 解析方案

赞赏这是一个较老的问题,但是从评论中可以看出,一样。只要您使用Google和Firebase pod的最新版本,就应该能够一起使用这两者。

如果你引用了一些不存在的东西,可能会造成困难的事情之一。例如,如果您包含 pod'Google \ AppInvite',那么CocoaPods将使用旧版本的Google pod,如 AppInvite subspec no更长的时间在这种情况下,您需要更新到 pod'Firebase \Invites'

您可以在 iOS迁移指南

最后,记得运行 pod update ,以确保你拉下依赖的最新版本,而不是只是 pod install



您仍然遇到问题,请发布您的Podfile,并检查您的Podfile.lock,以查看Google和Firebase Pod的版本号。


duplicate symbol _kServiceInfoFileName in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)

duplicate symbol _OBJC_CLASS_$_ACPResultData in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)

duplicate symbol _OBJC_METACLASS_$_ACPResultData in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)

ld: 46 duplicate symbols for architecture x86_64

解决方案

Appreciate this is an older question, but judging from the comment other people have hit the same thing. You should be able to use the two together, as long as you're using the most recent versions of both the Google and Firebase pods.

One of the things that might make that difficult is if you're referencing something that doesn't exist any more. For example, if you include pod 'Google\AppInvite' then CocoaPods will use an older version of the Google pod, as the AppInvite subspec no longer exists. In that case you need to update to pod 'Firebase\Invites'.

You can see a full list of what the updated dependencies should be in the iOS migration guide.

Finally, remember to run pod update to ensure you pull down the latest versions of the depedencies rather than just pod install.

If you're still having trouble, please post your Podfile, and check your Podfile.lock to see what version numbers of the Google and Firebase pods you have.

这篇关于Firebase和Google Signin给出了重复的符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆