添加Xcode子项目:不应该复制所有源文件吗? [英] Adding an Xcode subproject: Shouldn't all the source files get copied?

查看:165
本文介绍了添加Xcode子项目:不应该复制所有源文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我手动将



一切似乎都运转正常。但是,我发现该子项目的源文件未复制到我的项目中。它们仍然在我下载它们的原始位置。这是设计的吗?如果我想将来与其他人分享我的项目源代码怎么办?他们没有项目工作所必需的子项目源。



如果我确实需要将子项目源复制到我的项目中,那我该怎么办那个?

解决方案

首先将它添加到您的文件系统结构中。例如,在Chimee项目中按Show in Finder,它将引导您到达它所在的文件夹。然后在那里复制SQLite项目结构。



之后你可以将xcodeproj拖放到你的项目中,然后它仍会链接到它的原始路径,但是现在它已经在你的项目结构中了,不再是问题了。



我想这是设计的,因为当您通过将文件添加到YourProject进行尝试时,您可以选择复制项目(如果需要) -option但是它仍然不会被复制(只有.xcodeproj文件,它适用于所有其他文件类型)


I am manually adding the SQLite.swift subproject to my project. As the directions indicated, I copied the .xcodeproj file to my project. This allows me see all the source files (unlike this SO question).

Everything seemed like it was working fine. However, I discovered that the source files of that subproject were not copied to my project. They are still in original location where I downloaded them. Is this by design? What if I want to share my project source code with other people in the future? They won't have the subproject source that is necessary for my project to work.

If I do need to copy the subproject source to my project, then how do I do that?

解决方案

Add it to your filesystem-structure first. For example by pressing "Show in Finder" on the "Chimee"-project which will lead you to the folder it's located in. Then copy the SQLite-project structure in there.

Afterwards you can then drag&drop the xcodeproj into your project which will then still link to its original path, but as it's now inside your project-structure isn't a problem anymore.

I guess that this is by design, because when you try it via Add files to "YourProject" you can select the Copy items if needed-option but it will still not get copied (only with .xcodeproj-files, it works with all other filetypes)

这篇关于添加Xcode子项目:不应该复制所有源文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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