gpt4 book ai didi

cocoapods - GoogleMobileVision GoogleSignIn 使用 Cocoapods 重复符号?

转载 作者:行者123 更新时间:2023-12-03 03:53:01 25 4
gpt4 key购买 nike

我正在使用 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 安装两者而不发生冲突 --- 我删除了所有冲突日志 - 如果需要,我可以添加它们。

最佳答案

这是 GoogleMobileVisionGoogleSignIn pod 的问题,在其构建中包含相同的符号。看这个discussion .

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

pod 'GoogleSignIn', '4.1.2'

关于cocoapods - GoogleMobileVision GoogleSignIn 使用 Cocoapods 重复符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51869996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com