如何在iPhone中使用GData? [英] How to use GData in iphone?
问题描述
我知道这个问题已在这里被多次询问,我看了很多但是我的项目无法使用GData
我用过这个< a href =http://code.google.com/p/gdata-objectivec-client/ =nofollow noreferrer> GData 和 gdata-objectivec-client-read-only
如果您从网站下载了zip文件,那么您将拥有1.7.0版本,如果您使用了svn代码,那么您将拥有一个只读文件夹。
第2步
从下载的文件夹以及iPhone App XCode中打开GData XCode项目项目。
第3步
从GData拖动GData Sources文件夹将项目添加到您的iPhone App项目并将其添加为参考[不要选中将项目复制到目标组的文件夹(如果需要)的复选框。]您无需将所有文件复制到项目中。你可以,但这不是必需的。
第4步
打开为您的iPhone App项目构建设置。找到并设置以下设置。
*标题搜索路径:/ usr / include / libxml2 ../gdata-objectivec-client-1.9.1/Source
*其他链接标志:-lxml2,-ObjC
仅对于Debug构建配置,添加Other C Flags设置,以便包含库的仅调试代码:
其他C标志:-DDEBUG = 1
第5步
现在确保下载的源代码与您的实际代码文件夹所在的目录相同。
第6步
确保我的框架SystemConfiguration.FrameWork和Security.FrameWork已添加到您的项目中。
希望它有所帮助..这些是GData集成的步骤
I know that this question has been asked here many times and i have looked many of them but was unable to use GData with my project
I have used this GData and the tutorial ......But every time i missed something and lost......i am working on sdk 4.0.....
I am new to this...platform
please help
EDIT
Here is the error page which occurs when i follow all steps
EDIT-2 thanks both of you
now error down to 4
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 Subversion using:
svn checkout http://gdata-objectivec-client.googlecode.com/svn/trunk/ gdata-objectivec-client-read-only
If you downloaded the zip file from the website, you’ll have version 1.7.0, and if you used the svn code you’ll have a -read-only folder.
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
这篇关于如何在iPhone中使用GData?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!