gpt4 book ai didi

ios - iOS 中 gDrive SDK 集成中的重复符号问题

转载 作者:行者123 更新时间:2023-11-28 08:52:33 25 4
gpt4 key购买 nike

我正在尝试将 Google Drive API 集成到我的应用程序中。一切都在进行,但是当我尝试编译应用程序时,它出现了以下错误。我还在我的工作区中安装了 pod:

我发布的部分错误:

duplicate symbol _OBJC_IVAR_$GTLBatchQuery.queries in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_IVAR_$GTLBatchQuery.additionalHTTPHeaders in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_IVAR_$GTLBatchQuery.urlQueryParameters in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_IVAR_$GTLBatchQuery.requestIDMap in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_IVAR_$GTLBatchQuery.skipAuthorization in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_CLASS_$_GTLBatchQuery in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTLBatchQuery.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTLBatchQuery.o)

duplicate symbol _OBJC_IVAR_$GTMOAuth2ViewControllerTouch.didViewAppear in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTMOAuth2ViewControllerTouch.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)

duplicate symbol _OBJC_CLASS_$_GTMOAuth2Keychain in:

/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTMOAuth2ViewControllerTouch.o)

/Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)

duplicate symbol _OBJC_METACLASS_$_GTMOAuth2Keychain in:
/Users/am/Library/Developer/Xcode/DerivedData/AMCAT-gpiriurdkrrgvmdhpqxzqnncgljq/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a(GTMOAuth2ViewControllerTouch.o) /Users/amit/ios/GoogleOpenSource.framework/GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)

最佳答案

看起来您已经添加了两次库,一次是手动添加,第二次是通过 pod。在 pod 项目的 pods 文件夹中找到库。并且还可以在您的 xcode 项目中查看它是否存在而不是删除其中一个。我建议尝试删除您手动添加的库。 Pod 处理很多事情,所以不要删除它。

关于ios - iOS 中 gDrive SDK 集成中的重复符号问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33823292/

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