Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我单击导航窗格中的文件夹并在 Finder 中打开它时,该文件就在那里,但它没有在 Xcode 中显示,并且构建失败并抱怨该文件不存在。有没有办法“刷新”文件结构(就像你在 IntelliJ 中的方式)或者我只能做一个拖放来修复它?
当我单击导航窗格中的文件夹并在 Finder 中打开它时,该文件就在那里,但它没有在 Xcode 中显示,并且构建失败并抱怨该文件不存在。
项目导航器不会向您显示文件系统,它会向您显示项目中包含的文件。如果您需要在项目中包含一个文件,那么您需要添加它。您可以通过将其拖到项目中,或使用 File->Add Files To "..." 菜单命令来做到这一点。