linking gdata to an xcode 4 project

家住魔仙堡 提交于 2019-12-08 13:09:43

问题


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.

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"


回答1:


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

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

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

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



来源:https://stackoverflow.com/questions/5379644/linking-gdata-to-an-xcode-4-project

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