[[GDataServiceGoogleYouTube alloc] init]

7 views
Skip to first unread message

yaniv92648

unread,
Apr 1, 2010, 3:59:30 AM4/1/10
to Google Data APIs Objective-C Client Library Discussion
Hi,
i defined "header search path" /usr/include/libxml2, and in "other
linker fla gs" -ObjC -lxml2.
i dragged the GData files from YouTubeSample including the
GData.Framework within but it didn't compile so i added the
GData.Framework as a reference and made it "Weak" in Project->Edit
Active Target" on tab General.
i imported:
#import <GData/GData.h>
#import <GData/GDataFeedPhotoAlbum.h>
#import <GData/GDataFeedPhoto.h>
#import <GData/GDataEntryYouTubeUpload.h>
#import <GData/GDataServiceGoogleYouTube.h>
#import <GData/GDataEntryPhotoAlbum.h>
#import <GData/GDataEntryPhoto.h>
in this method: - (GDataServiceGoogleYouTube *)youTubeService, the
following line:
service = [[GDataServiceGoogleYouTube alloc] init];
gives EXC_BAD_ACCESS.
anyone..? i'm kinda desperate about this..
Thanks.

Greg Robbins

unread,
Apr 1, 2010, 12:05:45 PM4/1/10
to gdata-objec...@googlegroups.com
Are you trying to build a Mac or an iPhone app?  

Can you build and run the YouTube Mac sample app on your Mac?  

What specific compiler errors did you see in your own project?

יניב כהן

unread,
Apr 3, 2010, 4:38:31 AM4/3/10
to gdata-objec...@googlegroups.com
i'm trying to build an iPhone app.
the youTubeSample works on my mac just not on my iPhone..


2010/4/1 Greg Robbins <grob...@google.com>
Are you trying to build a Mac or an iPhone app?  

Can you build and run the YouTube Mac sample app on your Mac?  

What specific compiler errors did you see in your own project?

--
You received this message because you are subscribed to the Google Groups "Google Data APIs Objective-C Client Library Discussion" group.
To post to this group, send email to gdata-objec...@googlegroups.com.
To unsubscribe from this group, send email to gdata-objectivec-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gdata-objectivec-client?hl=en.

Greg Robbins

unread,
Apr 3, 2010, 11:08:13 AM4/3/10
to gdata-objec...@googlegroups.com
The YouTube sample is not intended for use as an iPhone app, nor is its project a suitable template for an iPhone app.

Just follow the instructions on the BuildingTheLibrary page

http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary

to make an iPhone project, either by building a static GData library or by including the sources of the GData library in your project.

Reply all
Reply to author
Forward
0 new messages