在 Xcode 4 版本控制中,当您刚刚添加到项目中的文件附近有一个问号时,这意味着什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8321770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In Xcode 4 version control, what does it mean when there is a question mark near a file that you have just added to the project?
提问by xcoder
How do you change it to ensure that the file is properly added?
您如何更改它以确保正确添加文件?
I copied some files into my project folder. Then in Xcode I clicked on a group and chose "Add files to project...". Then I selected multiple files.
我将一些文件复制到我的项目文件夹中。然后在 Xcode 中,我单击一个组并选择“将文件添加到项目...”。然后我选择了多个文件。
One of the files was added properly - It had an "A" next to it. The other file had a "?" mark next to it.
其中一个文件已正确添加 - 它旁边有一个“A”。另一个文件有一个“?” 在它旁边做标记。
Why didn't it add properly? What should I do to add it properly? It is a PNG file.
为什么没有正确添加?我应该怎么做才能正确添加它?它是一个 PNG 文件。
回答by xcoder
The ? mark means that the file is not under source control (but is part of the project). You can add it to the project by clicking on the file ---> Source Control ----> Add.
这 ?标记表示该文件不受源代码控制(但属于项目的一部分)。您可以通过单击文件 ---> Source Control ----> Add 将其添加到项目中。