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

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

概述我在连接Google登录时遇到此错误,而不使用可可豆荚. 我在这里提到了许多解决方案,但没有一个解决了我的问题.请引导我通过适当的解决方案. Undefined symbols for architecture x86_64:"_GSDK_NSClassFromString", referenced from: l010 in GoogleSignIn(GIDSignIn.o) l059 我在连接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_64clang: 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

总结

以上是内存溢出为你收集整理的swift – 获取clang:错误:链接器命令失败,退出代码1(使用-v查看调用),同时谷歌签名全部内容,希望文章能够帮你解决swift – 获取clang:错误:链接器命令失败,退出代码1(使用-v查看调用),同时谷歌签名所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1008803.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存