gpt4 book ai didi

ios - 两个 Google pod 之间的重复符号

转载 作者:可可西里 更新时间:2023-11-01 06:13:56 24 4
gpt4 key购买 nike

我知道 duplicate symbol 是一个反复出现的问题,但这个问题很特殊,或者至少我在 iOS 开发方面的知识对我没有帮助。

我曾经在我的最终应用程序中使用 GooglePlayGames (GPG),在我的 SDK 中使用 GoogleCloudMessaging (GCM),但今天由于某种原因,事情开始爆炸(想法:由于上次 GCM 更新,但我无法获得旧版本)

考虑到我的 SDK 中最新版本的 GCM,我有:

Pod 文件

pod 'MySDK'                 # All good
pod 'Google/CloudMessaging' # Nothing special...

输出

$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
...
Installing GGLInstanceID (1.1.5) # Dependencies
Installing Google (1.3.2) # relative to GCM
Installing GoogleCloudMessaging (1.1.2)
Installing GoogleIPhoneUtilities (1.1.1)
Installing GoogleInterchangeUtilities (1.1.0)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSymbolUtilities (1.0.3)
Installing GoogleUtilities (1.1.0)
...
Generating Pods project
Integrating client project

在我的最终申请中:

Pod 文件

pod 'GooglePlayGames' # Nothing special...

输出

$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
...
Installing GoogleAppUtilities (1.0.0) # Dependencies relative
Installing GoogleAuthUtilities (1.0.1) # to GPG
Installing GooglePlayGames (5.0)
Installing GooglePlusOpenSource (1.7.1)
Installing GoogleSignIn (2.4.0)
...
Generating Pods project
Integrating client project

当我构建我的最终应用程序时,这是我遇到的错误(明确但我没有找到任何解决方案......)

duplicate symbol _OBJC_CLASS_$_GIPLocale in:
/Users/Path/To/App/Pods/GoogleIPhoneUtilities/Libraries/libGIP_Locale.a(GIPLocale.o)
/Users/Path/To/App/Pods/GooglePlayGames/gpg-cpp-sdk/ios/gpg.framework/gpg(GIPLocale.o)

据我所知,我有两次 GIPLocale,这让我有重复的符号。如果我们看一下相关的 Pod,一个属于 GPG,另一个属于 GCM

我尝试了很多东西,但都没有成功。这可以很容易地用一个空项目重现,并在同一个 Podfile 中添加两个依赖项。请注意,必须禁用 ENABLE_BITCODE

可能在 Xcode 配置中丢失了一些愚蠢的东西......

最佳答案

我创建了 same issueGoogle Clound Messaging Github答案很明确,这是他们需要修复的错误。

希望它快点到来。

关于ios - 两个 Google pod 之间的重复符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34882089/

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