4

Ok. I've followed all the steps on Google's API page. I am trying to interact with Blogger's api and I'm getting exactly 9 Apple Mach-O Linker errors. How can I import the library and get everything set up and NOT get those 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)

2 Answers2

0

I'll just quote what @borrrden already wrote. This worked for me.

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

uriel
  • 1,209
  • 1
  • 16
  • 26
0

I have the same problem just like you. I solve by check all the steps again . I found the problem.HAHA!

Build phases --> Link Binary With Libraries

at there all the framework disappeared after running the code! So what you have to do is add the framework again.

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