gpt4 book ai didi

ios - 重复符号 _OBJC_IVAR_$_GCOAuth.OAuthParameters ShareKit 和 RestKit。

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

我处于一个棘手的情况,在过去的几天里,我无法在 sharekit 实现方面取得进展,因为我在使用 RestKit 时遇到了重复的符号错误。我正在运行 iOS 5.1 和最新版本的 xcode。根据给出的指南,我已经安装了两个库。我不明白如何从 ShareKit 或 RestKit 中删除对此的引用,而不会导致其中之一出现问题。我真的需要一些帮助...谢谢。

duplicate symbol _OBJC_IVAR_$_GCOAuth.OAuthParameters in:
/Users/josephboston/Library/Developer/Xcode/DerivedData/Prowd_Wallet-ezxvmeygcnwgtzehshsnnprpsjww/Build/Products/Debug-iphoneos/libShareKit.a(GCOAuth.o)
/Users/josephboston/Library/Developer/Xcode/DerivedData/Prowd_Wallet-ezxvmeygcnwgtzehshsnnprpsjww/Build/Products/Debug-iphoneos/libRestKit.a(GCOAuth.o)

my project

最佳答案

您收到此错误是因为两个框架都使用通用的第三方框架。所以 Xcode 提示重复的符号。这个博客,"Avoiding duplicate symbol issues when using common utilities within a static library"正在解释解决此问题的方法。
这是那里提到的解决方案,

I’m working on two projects right now that have static libraryproducts, to be given to other developers to use in their projects:Audiobus and The Amazing Audio Engine. In both cases, I’m making quiteheavy use of my circular buffer code, TPCircularBuffer, which wouldresult in duplicate symbol errors if the static library were linkedwith another project that used it.

Use the preprocessor to rename the symbols automatically during thebuild phase.

This is done by adding a series of -DOldSymbol=NewSymbol flags to the‘Other C Flags’ build setting – like-DTPCircularBuffer=ABCircularBuffer, for instance.


enter image description here

关于ios - 重复符号 _OBJC_IVAR_$_GCOAuth.OAuthParameters ShareKit 和 RestKit。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14032167/

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