获取clang:错误:链接器命令失败,退出代码1(使用-v查看调用),同时谷歌签名

Jan*_*Jan 4 swift google-signin

我在连接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)
Run Code Online (Sandbox Code Playgroud)

Jay*_*iya 6

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/ 下载Google登录SDK 4.0.0