xcode 未显示某些文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10484738/
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
xcode not showing some files
提问by jokham
Me and my team are using git for a project and we are all new to it. Anyway, after adding some class files to the project (objective C project) and making commits, when another person clones the project, Xcode doesn't show the added files. I saw this postand I understand that we should have been commiting the .xcodeproj file all along. Now since the .xcodeproj file in the repository is the original file without the changes from everyone, how do I change my copy so that Xcode shows the files? They can be seen in Finder.
我和我的团队正在将 git 用于一个项目,我们都是新手。无论如何,在将一些类文件添加到项目(目标 C 项目)并进行提交后,当另一个人克隆项目时,Xcode 不会显示添加的文件。我看到了 这篇文章,我明白我们应该一直提交 .xcodeproj 文件。现在,由于存储库中的 .xcodeproj 文件是未经所有人更改的原始文件,我该如何更改我的副本以便 Xcode 显示这些文件?它们可以在 Finder 中看到。
采纳答案by Yusuf X
Drag the as-yet-unseen files into the "project navigator", that is, the tree of files you see on the left (that you wish would have your files).
将尚未看到的文件拖到“项目导航器”中,即您在左侧看到的文件树(您希望拥有您的文件)。
回答by hakanfilip
I had the same problem. I work in between two computers. The reason why I could not see the files in Xcode was because before committing the latest update I forgot to add the new files:
我有同样的问题。我在两台电脑之间工作。我在 Xcode 中看不到文件的原因是因为在提交最新更新之前我忘记添加新文件:
git add .
And then
进而
git commit -m "Your message"
Hope this helps someone out there :)
希望这可以帮助那里的人:)
回答by KarimIhab
Try this, it worked for me.
试试这个,它对我有用。
- Open the project in Xcode
- Open the project in Finder
- Double click on the files, they will automatically show up in the project navigator inside Xcode.
- 在 Xcode 中打开项目
- 在 Finder 中打开项目
- 双击文件,它们将自动显示在 Xcode 内的项目导航器中。