GoogleMobileVision GoogleSignIn使用Cocoapods的重复符号?

时间:2018-08-16 05:12:51

标签: cocoapods google-signin duplicate-symbol google-ios-vision

我正在使用CocoaPods添加两个框架。

target 'TestGoogleLib' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TestGoogleLib
    pod 'GoogleMobileVision'
    pod 'GoogleSignIn'


end

但是当我跑步时-我得到重复的错误。似乎两个框架都使用相同的文件。

我的Pod版本是 1.5.3

duplicate symbol _OBJC_IVAR_$_MDMPasscodeCache._localAuthenticationInfo in:


ld: 13 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何使用CocoaPods进行安装而不出现冲突---我删除了所有冲突日志-如果需要,可以添加它们。

1 个答案:

答案 0 :(得分:5)

这是ws1GoogleMobileVision窗格中包含相同符号的问题。参见此discussion

在其中一个或两个吊舱中解决构建问题之前,一种解决方法是备份GoogleSignIn的版本:

GoogleSignIn