将gdata链接到xcode 4项目 [英] linking gdata to an xcode 4 project

查看:52
本文介绍了将gdata链接到xcode 4项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从xcode 3.2.5升级到xcode 4后,我在将gdata链接到项目时遇到了重大问题.我想知道是否有人遇到类似的问题,以及他们如何解决这些问题.我正在使用gdata版本1.11,这是他们网站上的最新版本.谢谢,该项目在3.2.5上完美运行.

I'm having major issues linking gdata to a project after upgrading from xcode 3.2.5 to xcode 4. I would like to know if anyone is having similar issues, and what did they do to resolve them. i am using gdata version 1.11 which is the latest on their site. The project works flawlessly on 3.2.5, thanks.

我已经为我的项目创建了一个工作区,然后将gdata.proj添加到其中.因此,我确实通过引用链接了所有文件.但是包含#import"GDataYouTube.h"的项目文件看不到该文件.我收到没有这样的文件或目录"

I have created a workspace for my project, and then added the gdata.proj to it. So I do have all the files linked by reference. But project files which include #import "GDataYouTube.h" do not see the file. I get "No Such File or Directory"

推荐答案

好消息...已解决并经过测试,所有工作都遵循以下步骤...

Good News... resolved and tested, all working follow these steps...

从3.2版的xcode 4中打开您的项目

Open your project in xcode 4 from 3.2

点击文件->另存为工作区

click File -> Save As Workspace

在左侧的项目导航器中,如果看到所有文件,请折叠您的项目

in project navigator on the left, collapse your Project if you see all the files

在折叠的项目下方,在空白区域中右键单击或控制单击->将文件添加到...

below your collapsed project, in the empty space right click or control click -> Add Files to...

选择要链接的项目文件,取消选中复制项目",然后单击添加"

select the project file you wish to link to, leave Copy items unchecked, click Add

现在,您将在Project导航器中看到2个折叠的项目,将它们都展开

Now you will see 2 collapsed projects in your Project navigator, expand both

现在我不知道我还要做什么

Now what I didn't know I had to still do

将所需的文件或文件夹从第二个项目拖到主项目中,确保在选项中选择了主项目"目标,并且我也选择了组,然后单击完成"

Drag the files or folders you want from the second project to your main, make sure your Main project target is selected in the options, and I also have group selected then click Finish

一切顺利,您可能会对第二个项目及其目标SDK发出一些警告.通过在项目导航器"->构建设置"->基本SDK"中将项目名称单击为10.6,将部署目标"为10.5

You are good to go, you might have some warnings about your second project and its targeted SDK. Fix those by clicking the project name in the Project Navigator -> Build Settings -> Base SDK to 10.6, Deployment Target to 10.5

这篇关于将gdata链接到xcode 4项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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