加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift – 获取clang:错误:链接器命令失败,退出代码1(使用-v查

发布时间:2020-12-14 04:46:20 所属栏目:百科 来源:网络整理
导读:我在连接Google登录时遇到此错误,而不使用可可豆荚. 我在这里提到了许多解决方案,但没有一个解决了我的问题.请引导我通过适当的解决方案. Undefined symbols for architecture x86_64:"_GSDK_NSClassFromString",referenced from: l010 in GoogleSignIn(GIDS
我在连接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/下载Google登录SDK 4.0.0

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读