Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yaniv92648

macrumors member
Original poster
Oct 26, 2009
96
0
Hi,
i'd like to record a video in my app and upload it to my youTube account using the youTube API (not by email). i checked in this link
gdata-objectivec-client - Project Hosting on Google Code
the objective-c forum and the objective-c samples including the YouTubeSample which doesn't work.
anyone has a (relatively) clear tutorial on how to upload videos to my youTube account? can someone post a relevant code?
Thank you.
 
i get an error saying:

"target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform"
 
i linked according to : linking to the iphone static library..

Hi,
i defined "header search path" /usr/include/libxml2, and in "other linker flags" -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.
 
Why are you still trying to use the framework? It won't work, as I already mentioned. You should be configuring it as a static library. Follow the instructions on the Google wiki.
 
but that's what i did..

i followed the instructions of "Linking to the iPhone static library" to configure it as a static library but i guess i failed doing so. like i said, i defined "header search path" /usr/include/libxml2, and in "other linker flags" -ObjC -lxml2 and dragged the GData files from YouTubeSample. did i miss any settings configuration? because it still doesn't compile if i don't add the GData.Framework...
Thank u Luke, i really appreciate it..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.