gpt4 book ai didi

swift - 获取 clang : error: linker command failed with exit code 1 (use -v to see invocation) while google signing

转载 作者:搜寻专家 更新时间:2023-10-31 08:18:02 24 4
gpt4 key购买 nike

我在不使用 cocoa pods 的情况下链接 Google 登录时遇到此错误。我在这里提到了很多解决方案,但没有一个解决了我的问题。请指导我找到合适的解决方案。

Undefined symbols for architecture x86_64:
"_GSDK_NSClassFromString", referenced from:
l010 in GoogleSignIn(GIDSignIn.o)
l059 in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2Authentication", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDAuthentication.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2Keychain", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2SignIn", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDAuthentication.o)
"_OBJC_CLASS_$_GSDK_GTMOAuth2ViewControllerTouch", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
objc-class-ref in GoogleSignIn(GIDRuntimeConfigFetcher.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
"_OBJC_CLASS_$_GSDK_OpenInChromeController", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

GoogleAppUtilities.framework
GoogleAuthUtilities.framework
GoogleNetworkingUtilities.framework
GoogleSymbolUtilities.framework
GoogleUtilities.framework
GoogleSignIn.framework
SystemConfiguration.framework
SafariServices.framework
AddressBook.framework
GoogleSignIn.bundle
libz.tbd


在项目中添加所有框架 https://developers.google.com/identity/sign-in/ios/sdk/下载谷歌登录 SDK 4.0.0

关于swift - 获取 clang : error: linker command failed with exit code 1 (use -v to see invocation) while google signing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37766179/

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