GoogleMobileVision GoogleSignIn duplicate symbol using Cocoapods?

﹥>﹥吖頭↗ 提交于 2020-01-02 20:11:10

问题


I am using CocoaPods to add two frameworks.

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

But when I run - I get duplicate error. It seems both framework are using same file.

My Pod version is 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)

How can I install both using CocoaPods without conflicts --- I removed all conflicts logs - if needed, I can add them.


回答1:


This is an issue with the GoogleMobileVision and GoogleSignIn pods including the same symbols in their builds. See this discussion.

Until the build issue is resolved in one or both of those pods, a workaround is to back up the version of GoogleSignIn:

pod 'GoogleSignIn', '4.1.2'


来源:https://stackoverflow.com/questions/51869996/googlemobilevision-googlesignin-duplicate-symbol-using-cocoapods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!