GData Static Library for iOS

When I first came across the GData Objective-C client, I really shocked by its complicated setup procedures. Besides going through the tedious official setup procedures, why couldn’t we make our life easier by just importing the headers and static library image? I searched for such goodies but no luck.. So I compiled one from source and put it on GitHub😉

https://github.com/hoishing/GData-iOS-Static-Library-1.12

How to use:

  • First download and put all files into your Xcode project
  • In your target -> Build Settings, set /usr/include/libxml2 in Header Search Paths
  • In your target -> Build Phases -> Link Binary With Libraries, add libxml2.dylib
  • To use the GData classes, just import the header file by: #import “GData.h”

That is! Pretty simple, right? BTW, what are the pros and cons of this method?

Pros: you can deploy GData library quick and easy.

Cons: The static library image file is big (19MB). Because, firstly, it included all APIs provided by Google, you may not want to use all of them. Secondly, its an universal binary work in both simulator and devices. It means both i386 and ARM6 architecture binaries are embed in one file.

Therefore, if quick and easy deployment is your priority, this could be your choice. 

GData Static Library for iOS

11 thoughts on “GData Static Library for iOS

  1. bdeniz says:

    Hi!

    i tried to do everything in this post. i did all step to use GData classes but when i run project ,i took an error in GDataObject.h file.

    this is where i took error in code:
    typedef struct GDataDescriptionRecord {
    NSString *label;
    NSString *keyPath;
    GDataDescRecTypes reportType;
    } GDataDescriptionRecord;

    this is the error message : “ARC forbids Objective C objects in struct or unions”

    Can you help me for this?

  2. […] GData Static Library for iOS « Kelvin’s BlogAug 22, 2011 … i tried to do everything in this post. i did all step to use GData classes but when i run project ,i took an error in GDataObject.h file. this is where i … […]

  3. I did every thing like above procedure, but i unable to upload a video in youtube . I am getting following error.

    *** Assertion failure in -[GDataServiceBase fetchObjectWithURL:objectClass:objectToPost:ETag:httpMethod:delegate:didFinishSelector:completionHandler:retryInvocationValue:ticket:](), /Users/hoishing/Desktop/gdata-objectivec-client-read-only/Source/BaseClasses/GDataServiceBase.m:579
    2012-11-16 17:18:56.917 YouTubeApp[17418:c07] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘GTMHTTPUploadFetcher needed’
    *** First throw call stack:
    (0x1732052 0x1418d0a 0x16daa78 0xf11346 0x574d0 0x169851d 0x1698437 0x5f561 0x169851d 0x1698437 0x76c70 0x76a84 0x77bce 0xf7da59 0xf7be94 0xf7ceb7 0xf7be4f 0xf7bfd5 0xec0f6a 0x269bbd 0x3365ea 0x3368b5 0x260298 0x33616b 0x260137 0x170697f 0x1669b73 0x1669454 0x1668db4 0x1668ccb 0x1db7879 0x1db793e 0x588a9b 0x2d4a 0x2c55)
    terminate called throwing an exception(lldb)

  4. Rahul Gupta says:

    *** Assertion failure in -[GDataServiceBase fetchObjectWithURL:objectClass:objectToPost:ETag:httpMethod:delegate:didFinishSelector:completionHandler:retryInvocationValue:ticket:](), /Users/hoishing/Desktop/gdata-objectivec-client-read-only/Source/BaseClasses/GDataServiceBase.m:579

  5. Tom Lee says:

    I followed same in this site, but i had problems like ‘bdeniz’ after doing all these things in my application.Anyone can help.@Gopinath how to do you added GData.h file in ur app.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s