Integrate YouTube API into my iOS app support 64-bit support

360 views
Skip to first unread message

Nguyen Dinh Hung

unread,
Jan 11, 2015, 9:31:43 AM1/11/15
to google-api-obj...@googlegroups.com
I am  integrate YouTube API into my iOS app.
I down google-api-objectivec-client-read-only
Frist I added folder Services/You Tube in my project .
Then  create folder include/GTL . It inclue file .h from folder HTTPFethcher,Object,Utilities,OAuth2.
Then I edit : Other Linker Flags: -ObjC -all_load ,
ARC : NO

And I play  and errors :

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GTLCollectionObject", referenced from:
      _OBJC_CLASS_$_GTLYouTubeI18nLanguageListResponse in GTLYouTubeI18nLanguageListResponse.o
      _OBJC_CLASS_$_GTLYouTubeActivityListResponse in GTLYouTubeActivityListResponse.o
      _OBJC_CLASS_$_GTLYouTubeInvideoPromotion in GTLYouTubeInvideoPromotion.o
      _OBJC_CLASS_$_GTLYouTubeLiveStreamListResponse in GTLYouTubeLiveStreamListResponse.o
      _OBJC_CLASS_$_GTLYouTubeChannelSectionListResponse in GTLYouTubeChannelSectionListResponse.o
      _OBJC_CLASS_$_GTLYouTubeVideoListResponse in GTLYouTubeVideoListResponse.o
      _OBJC_CLASS_$_GTLYouTubeSubscriptionListResponse in GTLYouTubeSubscriptionListResponse.o
      ...
  "_OBJC_CLASS_$_GTLObject", referenced from:
      _OBJC_CLASS_$_GTLYouTubeSearchResultSnippet in GTLYouTubeSearchResultSnippet.o
      _OBJC_CLASS_$_GTLYouTubeVideoSuggestions in GTLYouTubeVideoSuggestions.o
      _OBJC_CLASS_$_GTLYouTubeActivityContentDetailsSocial in GTLYouTubeActivityContentDetailsSocial.o
      _OBJC_CLASS_$_GTLYouTubeVideoRecordingDetails in GTLYouTubeVideoRecordingDetails.o
      _OBJC_CLASS_$_GTLYouTubePlaylistSnippet in GTLYouTubePlaylistSnippet.o
      _OBJC_CLASS_$_GTLYouTubePlaylistItemSnippet in GTLYouTubePlaylistItemSnippet.o
      _OBJC_CLASS_$_GTLYouTubeChannelLocalization in GTLYouTubeChannelLocalization.o
      ...
  "_OBJC_CLASS_$_GTLQuery", referenced from:
      _OBJC_CLASS_$_GTLQueryYouTube in GTLYouTube_Sources.o
      _OBJC_CLASS_$_GTLQueryYouTube in GTLQueryYouTube.o
     (maybe you meant: _OBJC_CLASS_$_GTLQueryYouTube)
  "_OBJC_CLASS_$_GTLService", referenced from:
      _OBJC_CLASS_$_GTLServiceYouTube in GTLServiceYouTube.o
      _OBJC_CLASS_$_GTLServiceYouTube in GTLYouTube_Sources.o
     (maybe you meant: _OBJC_CLASS_$_GTLServiceYouTube)
  "_OBJC_METACLASS_$_GTLCollectionObject", referenced from:
      _OBJC_METACLASS_$_GTLYouTubeI18nLanguageListResponse in GTLYouTubeI18nLanguageListResponse.o
      _OBJC_METACLASS_$_GTLYouTubeActivityListResponse in GTLYouTubeActivityListResponse.o
      _OBJC_METACLASS_$_GTLYouTubeInvideoPromotion in GTLYouTubeInvideoPromotion.o
      _OBJC_METACLASS_$_GTLYouTubeLiveStreamListResponse in GTLYouTubeLiveStreamListResponse.o
      _OBJC_METACLASS_$_GTLYouTubeChannelSectionListResponse in GTLYouTubeChannelSectionListResponse.o
      _OBJC_METACLASS_$_GTLYouTubeVideoListResponse in GTLYouTubeVideoListResponse.o
      _OBJC_METACLASS_$_GTLYouTubeSubscriptionListResponse in GTLYouTubeSubscriptionListResponse.o
      ...
  "_OBJC_METACLASS_$_GTLObject", referenced from:
      _OBJC_METACLASS_$_GTLYouTubeSearchResultSnippet in GTLYouTubeSearchResultSnippet.o
      _OBJC_METACLASS_$_GTLYouTubeVideoSuggestions in GTLYouTubeVideoSuggestions.o
      _OBJC_METACLASS_$_GTLYouTubeActivityContentDetailsSocial in GTLYouTubeActivityContentDetailsSocial.o
      _OBJC_METACLASS_$_GTLYouTubeVideoRecordingDetails in GTLYouTubeVideoRecordingDetails.o
      _OBJC_METACLASS_$_GTLYouTubePlaylistSnippet in GTLYouTubePlaylistSnippet.o
      _OBJC_METACLASS_$_GTLYouTubePlaylistItemSnippet in GTLYouTubePlaylistItemSnippet.o
      _OBJC_METACLASS_$_GTLYouTubeChannelLocalization in GTLYouTubeChannelLocalization.o
      ...
  "_OBJC_METACLASS_$_GTLQuery", referenced from:
      _OBJC_METACLASS_$_GTLQueryYouTube in GTLYouTube_Sources.o
      _OBJC_METACLASS_$_GTLQueryYouTube in GTLQueryYouTube.o
     (maybe you meant: _OBJC_METACLASS_$_GTLQueryYouTube)
  "_OBJC_METACLASS_$_GTLService", referenced from:
      _OBJC_METACLASS_$_GTLServiceYouTube in GTLServiceYouTube.o
      _OBJC_METACLASS_$_GTLServiceYouTube in GTLYouTube_Sources.o
     (maybe you meant: _OBJC_METACLASS_$_GTLServiceYouTube)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How fix this errors and Imterate youtube Api into my project ?

Greg Robbins

unread,
Jan 12, 2015, 1:21:54 PM1/12/15
to google-api-obj...@googlegroups.com
The main library sources must be compiled and linked into the app target. Those are included by GTLCommon_Sources.m and GTLCommon_Networking.m

See the section "Compiling the Source Files Directly into a Mac or iOS Application" here:

Reply all
Reply to author
Forward
0 new messages