How to use GData in iOS? [closed]

纵饮孤独 提交于 2019-11-27 21:45:01
Swastik

Step 1

The first step, is to head on over to the Google Code website for the Objective-C Client, download and extract the zip file source code. Alternatively, you can get the latest and greatest version via Git using:

git clone https://github.com/google/gdata-objectivec-client

If you downloaded the zip file from the website, you’ll have version 1.7.0.

Step 2

Open up the GData Xcode Project from your downloaded folder as well as your iPhone App Xcode project.

Step 3

Drag over the GData Sources Folder from the GData project to your iPhone App project and add it as reference [don't check the box for Copy items into destination group's folder (if needed).] You do not need to copy over all the files into your project. You can, but it’s not required.

Step 4

Open up the build settings for your iPhone App project. Located and set the following settings. * Header Search Paths: /usr/include/libxml2 ../gdata-objectivec-client-1.9.1/Source * Other Linker Flags: -lxml2, -ObjC

For the Debug build configuration only, add the Other C Flags setting so that the library’s debug-only code is included:

Other C Flags: -DDEBUG=1

Step 5

Now be sure that the downloaded source code is in the same directory in which your actual Code Folder is.

Step 6 Make sure I've the frameworks "SystemConfiguration.FrameWork" and "Security.FrameWork" added to your project.

Hope it helps..These are the steps for GData integration

grobbins

The error in the screenshot is that the system's Security.framework framework is not linked to the application, but the GData OAuth sign-in controller (which requires Security.framework) is linked into the app.

Either add Security.framework to your application target, or remove the OAuth source files. This is mentioned at https://github.com/google/gdata-objectivec-client/wiki/BuildingTheLibrary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!