How to import Google Objective-C API client library into my iOS project without errors?

Ok I followed all the steps on the Google API page. I try to interact with Apache Blogger and I get exactly 9 Apple Mach-O Linker errors. How can I import a library and configure everything without getting these errors? Thanks!

Here's the error:

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) 
+4
source share
2 answers

I'll just tell you what @borrrden already wrote. It worked for me.

Make sure you have armv7 architecture included in your build settings in the Architecture section

0
source

I have the same problem as you. I decide all the steps again. I found a problem .HAHA!

Assembly phasesLink to binary files with libraries

there all the frames disappeared after the code was run! So what you need to do is add the framework again.

Please add the structure as follows: libGTLTouchStaticLib.a + Security.framework + SystemConfiguration.framework + MobileCoreServices.framework

0
source

Source: https://habr.com/ru/post/1487192/


All Articles