使用Cocoapods的GoogleMobileVision GoogleSignIn重复符号吗? [英] GoogleMobileVision GoogleSignIn duplicate symbol using Cocoapods?

查看:123
本文介绍了使用Cocoapods的GoogleMobileVision GoogleSignIn重复符号吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我的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进行安装而不出现冲突---我删除了所有冲突日志-如果需要,可以添加它们.

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

推荐答案

这是GoogleMobileVisionGoogleSignIn窗格中包含相同符号的问题.参见此讨论.

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

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

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'

这篇关于使用Cocoapods的GoogleMobileVision GoogleSignIn重复符号吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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