gpt4 book ai didi

ios - 尝试构建我的 xcode 项目时出现 GTMSessionFetcherService 链接器错误

转载 作者:可可西里 更新时间:2023-11-01 04:23:12 25 4
gpt4 key购买 nike

我正在使用 Cocoapods 安装最新的 GPG,并使用了最新的 XCode 7.3 和 iOS SDK 9.3,但我无法构建我的项目,并遇到了这 5 个我无法解决的链接器错误:

 "_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
objc-class-ref in gpg(GIPNetworkImage.o)
objc-class-ref in libSignIn_external.a(GIDSignIn.o)

"_GSDK_kGTMSessionFetcherStatusDomain", referenced from:
-[GSDK_GTMOAuth2SignIn authCodeObtained] in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o)
"_GSDK_GTMSessionFetcherAssertValidSelector", referenced from:
-[GSDK_GTMOAuth2Authentication authorizeRequest:delegate:didFinishSelector:] in libGTMOAuth2_external_external.a(GTMOAuth2Authentication.o)
-[GSDK_GTMOAuth2SignIn initWithAuthentication:authorizationURL:delegate:webRequestSelector:finishedSelector:] in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
objc-class-ref in libGTMOAuth2_internal_external.a(GTMOAuth2SignInInternal.o)
objc-class-ref in libGTMOAuth2_external_external.a(GTMOAuth2Authentication.o)
objc-class-ref in libGTMOAuth2_external_external.a(GTMOAuth2SignIn.o)
objc-class-ref in gpg(GPGClearcutLogger.o)
objc-class-ref in libSignIn_external.a(GIDSignIn.o)
objc-class-ref in libSignIn_external.a(GIDRuntimeConfigFetcher.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我什至尝试在我的项目中添加 GTMSessionFetcherService 源,但似乎无法解决这个问题。有什么想法吗?

谢谢

最佳答案

我在尝试集成 Google 登录时遇到了一个非常相似的构建问题。 non-Cocoapods instructions提到将 GoogleSignIn.framework 添加到您的项目,但他们没有告诉您您还需要链接登录 SDK 中的其余框架:

GoogleAppUtilities.framework
GoogleAuthUtilities.framework
GoogleNetworkingUtilities.framework
GoogleSignIn.framework
GoogleSymbolUtilities.framework
GoogleUtilities.framework

关于ios - 尝试构建我的 xcode 项目时出现 GTMSessionFetcherService 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36469226/

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