如何解决 Xcode 5 中的红色(移动)文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19603332/
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
How can I resolve a red (moved) file in Xcode 5?
提问by user
In Xcode 4 when you would move a file, you could resolve the new location of the file by clicking a button in the right menu, and selecting the new location through Finder.
在 Xcode 4 中移动文件时,可以通过单击右侧菜单中的按钮并通过 Finder 选择新位置来解析文件的新位置。
In Xcode 5, there is no button in the right menu and I haven't found any way to specify the new location of the file through right clicking the file, or the top menu bar options.
在 Xcode 5 中,右侧菜单中没有按钮,我还没有找到通过右键单击文件或顶部菜单栏选项来指定文件新位置的任何方法。
回答by Kirby Todd
- Right click the file in Xcode and select "Show File Inspector"
- In the file inspector click the little folder icon next to the file path.
- 右键单击 Xcode 中的文件并选择“显示文件检查器”
- 在文件检查器中,单击文件路径旁边的小文件夹图标。
This will open a file dialog allowing you to update the file path.
这将打开一个文件对话框,允许您更新文件路径。
回答by Khanh Nguyen
Just delete the old one and add the moved one.
只需删除旧的并添加移动的。