過去に、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 を探します。
コンテンツを削除できるようにするには、この場所はどこですか?
(すでに削除されているため、オーガナイザー/プロジェクト/派生データではありません。)