简体   繁体   English

Xcode 4 - 使用现有项目

[英]Xcode 4 - Using existing projects

I have this weird problem which I don't remember to ever had in XCode 3.我有这个奇怪的问题,我不记得在 XCode 3 中遇到过。

I have my head project which I was developing.我有我正在开发的头部项目。 Now I want to use another project, but when I drag the.xcodeproj file to my head project from my other project, all it copies is the.xcodeproj file, without nothing else (groups,source files, etc..).现在我想使用另一个项目,但是当我将 .xcodeproj 文件从我的另一个项目拖到我的头项目时,它复制的只是 .xcodeproj 文件,没有别的(组、源文件等)。 I remember on Xcode 3 it was asking if to copy or just reference the new project.我记得在 Xcode 3 上,它询问是复制还是仅引用新项目。 But now nothing.但现在什么都没有。

Should I do it differently on XCode 4?我应该在 XCode 4 上做不同的事情吗?

I even tried to play with a new workspace, but it still behaves the same.我什至尝试使用新的工作区,但它的行为仍然相同。

It seems to be treating the.xcodeproj as a resource like an image or other stuff.它似乎将 .xcodeproj 视为图像或其他东西之类的资源。 I think you'l have to open the other project you want to work with and drag in all the files manually.我认为您必须打开要使用的其他项目并手动拖入所有文件。

Maybe there's a better way, but try doing that for now:)也许有更好的方法,但现在尝试这样做:)

Seems like closing and reopening XCode fixed the issue, it's weird that I have to do it everytime now that I want to reference a new project.似乎关闭并重新打开 XCode 解决了这个问题,很奇怪我每次都必须这样做,因为我想引用一个新项目。 oh well.那好吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM