在许多使用参考的软件包(甚至 iTunes)中,您可以移动磁盘上的文件,然后更新软件中的参考。在 Xcode 版本 3.2.5 中,我不知道如何执行此操作。
我可以在文本编辑器中打开项目文件,然后更改在磁盘上移动的文件或项目的路径,但我不想这样做。
我可以将文件移回到磁盘上的位置,但我们假设我是故意移动它的。
我可以从项目中删除引用并添加一个新引用,但这是不必要的步骤,并且不会重新添加我为该资源设置的任何构建依赖项或操作。
那么,有没有办法只从 Xcode 中更新引用呢?我错过了一个简单的菜单选项吗?
In many software packages that work with references (even iTunes), you can move files on disk, and then update the reference in the software. In Xcode version 3.2.5, I can't figure out how to do this.
I could open the project file in a text editor and change the path to the file or project that I moved on disk, but I'd prefer to not to.
I could just move the file back to where is was on disk, but let's assume I moved it on purpose.
I could remove the reference from the project and add a new one, but that is unnecessary steps, and won't re-add any build dependencies or actions that I had set up for that resource.
So, is there a way to just update the reference from within Xcode? Have I missed a simple menu option?
发布评论
评论(1)
Xcode 3.2.5 不会自动跟踪重新定位的文件,除非该文件位于 文件夹引用(但是文件夹引用还有其他限制)。
在 Xcode 3.2.5 中,您可以通过以下方式更新参考:
Xcode 3.2.5 won't track relocated files automatically, unless that file is within a folder reference (however folder references have other limitations).
In Xcode 3.2.5, you can update the reference by: