gpt4 book ai didi

ios - 如何将 Google API Objective-C 客户端库导入到我的 iOS 项目中而不会出现错误?

转载 作者:可可西里 更新时间:2023-11-01 06:15:51 24 4
gpt4 key购买 nike

好的。我已按照 Google's API page 上的所有步骤进行操作.我正在尝试与 Blogger 的 api 进行交互,但我收到了 9 个 Apple Mach-O 链接器错误。我怎样才能导入库并设置所有内容而不出现这些错误?谢谢!

这是错误:

Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_GTLService", referenced from:
_OBJC_METACLASS_$_GTLServiceBlogger in GTLBlogger_Sources.o
(maybe you meant: _OBJC_METACLASS_$_GTLServiceBlogger)
"_OBJC_CLASS_$_GTLService", referenced from:
_OBJC_CLASS_$_GTLServiceBlogger in GTLBlogger_Sources.o
(maybe you meant: _OBJC_CLASS_$_GTLServiceBlogger)
"_OBJC_METACLASS_$_GTLObject", referenced from:
_OBJC_METACLASS_$_GTLBloggerPage in GTLBloggerPage.o
_OBJC_METACLASS_$_GTLBloggerPageAuthor in GTLBloggerPage.o
_OBJC_METACLASS_$_GTLBloggerPageBlog in GTLBloggerPage.o
_OBJC_METACLASS_$_GTLBloggerPageAuthorImage in GTLBloggerPage.o
_OBJC_METACLASS_$_GTLBloggerBlog in GTLBloggerBlog.o
_OBJC_METACLASS_$_GTLBloggerBlogLocale in GTLBloggerBlog.o
_OBJC_METACLASS_$_GTLBloggerBlogPages in GTLBloggerBlog.o
...
"_OBJC_METACLASS_$_GTLQuery", referenced from:
_OBJC_METACLASS_$_GTLQueryBlogger in GTLBlogger_Sources.o
(maybe you meant: _OBJC_METACLASS_$_GTLQueryBlogger)
"_OBJC_METACLASS_$_GTLCollectionObject", referenced from:
_OBJC_METACLASS_$_GTLBloggerPageList in GTLBloggerPageList.o
_OBJC_METACLASS_$_GTLBloggerPostList in GTLBloggerPostList.o
_OBJC_METACLASS_$_GTLBloggerBlogPosts in GTLBloggerBlog.o
_OBJC_METACLASS_$_GTLBloggerPostReplies in GTLBloggerPost.o
_OBJC_METACLASS_$_GTLBloggerCommentList in GTLBloggerCommentList.o
_OBJC_METACLASS_$_GTLBloggerBlogList in GTLBloggerBlogList.o
"_OBJC_CLASS_$_GTLObject", referenced from:
_OBJC_CLASS_$_GTLBloggerPage in GTLBloggerPage.o
_OBJC_CLASS_$_GTLBloggerPageAuthor in GTLBloggerPage.o
_OBJC_CLASS_$_GTLBloggerPageBlog in GTLBloggerPage.o
_OBJC_CLASS_$_GTLBloggerPageAuthorImage in GTLBloggerPage.o
_OBJC_CLASS_$_GTLBloggerBlog in GTLBloggerBlog.o
_OBJC_CLASS_$_GTLBloggerBlogLocale in GTLBloggerBlog.o
_OBJC_CLASS_$_GTLBloggerBlogPages in GTLBloggerBlog.o
...
"_OBJC_CLASS_$_GTLQuery", referenced from:
_OBJC_CLASS_$_GTLQueryBlogger in GTLBlogger_Sources.o
(maybe you meant: _OBJC_CLASS_$_GTLQueryBlogger)
"_OBJC_CLASS_$_GTLCollectionObject", referenced from:
_OBJC_CLASS_$_GTLBloggerPageList in GTLBloggerPageList.o
_OBJC_CLASS_$_GTLBloggerPostList in GTLBloggerPostList.o
_OBJC_CLASS_$_GTLBloggerBlogPosts in GTLBloggerBlog.o
_OBJC_CLASS_$_GTLBloggerPostReplies in GTLBloggerPost.o
_OBJC_CLASS_$_GTLBloggerCommentList in GTLBloggerCommentList.o
_OBJC_CLASS_$_GTLBloggerBlogList in GTLBloggerBlogList.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

我只会引用@borrrden 已经写的内容。这对我有用。

Make sure that you have the armv7 architecture included in your build settings under "Architectures"

关于ios - 如何将 Google API Objective-C 客户端库导入到我的 iOS 项目中而不会出现错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17204600/

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