Kelvin's Blog

Life is a program you write everyday ~

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. 

Advertisement

3 Responses to GData Static Library for iOS

  1. Pingback: GData Objective-C Client Setup in XCode 4 « Kelvin's Blog

  2. Pingback: GData Static Library for Specific API « Kelvin's Blog

  3. bdeniz 2 January 2012 at 7:09 pm

    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?

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.