Xcode - File not found but build successful

后端 未结 6 657
野的像风
野的像风 2021-02-01 08:31

In my project, I\'ve include a full \"shared\" folder by link (not copy) that is outside my project folder.

In the .pch file, I have #import \"MyStandardHeader.h

6条回答
  •  悲哀的现实
    2021-02-01 09:07

    I've seen this too: files that clearly exist get wonky. Oddly, sometimes it fixes itself. It may be an Xcode bug, since the build always succeeds. I've had success with touching the file. sometimes a clean helps. and sometimes quitting xcode helps.... Voodoo really.

    You could try to remove the index by deleting everything in ~/Library/Developer/Xcode/DerivedData

    That directory is a combined version of the old Build and Intermediates directories from Xcode 1,2 and 3. Basically it's all the temporary and generated files from your project: object files, indexes, etc.

提交回复
热议问题