如何在iOS中使用GData? [英] How to use GData in iOS?

查看:77
本文介绍了如何在iOS中使用GData?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了 GData

I have used this GData and the tutorial ...But every time I missed something and lost...I am working on sdk 4.0.

这是我执行所有步骤时出现的错误页面

Here is the error page which occurs when I follow all steps

[edit]现在错误降至4

[edit] Now error down to 4

推荐答案

步骤1

第一步是访问Objective-C客户端的Google Code网站,下载并提取zip文件的源代码.另外,您可以使用以下命令通过Git获取最新和最佳版本:

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

如果您是从网站下载的zip文件,则版本为1.7.0.

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

第2步

从下载的文件夹以及iPhone App Xcode项目中打开GData Xcode项目.

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

第3步

将GData Sources文件夹从GData项目拖到您的iPhone App项目中,并将其添加为参考[不要选中将项目复制到目标组的文件夹中的框(如果需要).]将所有文件放入您的项目.您可以,但这不是必需的.

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.

第4步

打开iPhone App项目的构建设置.找到并设置以下设置. *标头搜索路径:/usr/include/libxml2 ../gdata-objectivec-client-1.9.1/Source *其他链接器标志:-lxml2,-ObjC

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

仅对于调试"构建配置,添加其他C标志"设置,以便包括该库的仅调试代码:

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

第5步

现在,请确保下载的源代码与您的实际代码文件夹位于同一目录中.

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

步骤6 确保已将框架"SystemConfiguration.FrameWork"和"Security.FrameWork"添加到您的项目中.

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

希望它有帮助.这些是GData集成的步骤

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

这篇关于如何在iOS中使用GData?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆