过去,我经常遇到 Xcode 想要查找不再存在并从 XCode 中删除的文件的情况;并且得出的结论是,XCode 正在某个构建目录中的某处缓存某些数据,并且至少查询其中的一部分而不是 XCode 工作区本身。
这是我现在遇到的情况的一个示例,表明情况确实如此:
I had a workspace W, containing projects M and N, in directory D.
- To this workspace I added a new project O.
- I then deleted the entire contents of directory D.
- From a backup I copied an older copy of the workspace W into directory D (this older copy only contains projects M and N).
- If I launch the workspace from the backup location it builds cleanly.
- But if I launch the workspace from the directory D, then when building it complains that project O is missing. Yet I deleted the entire contents of directory D and copied the workspace which didn't contain project O into that location.
因此,Xcode 必须在构建过程中的某个地方缓存一些数据,这就是为什么它正在寻找项目 0,即使它不再存在于工作空间中。
这个位置在哪里,以便我可以删除它的内容?
(它不是管理器/项目/派生数据,因为它已被删除。)