在过去,我经常遇到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,即使它不再存在于工作区内。
这个位置在哪里可以删除其内容?
(它不是主办单位/项目/衍生数据,因为它已被删除。)
答案 0 :(得分:0)
除了派生数据外,还有一些在
的/ var /文件夹/%RANDOM%/%RANDOM%/%RANDOM%/ com.apple.DeveloperTools 的/ var /文件夹/%RANDOM%/%RANDOM%/%RANDOM%/ com.apple.dt.Xcode