iosobjective-cxcodepch

"input is not a PCH file" - Xcode


I'm working on a client code using PCH a file and I have this errors.

error: input is not a PCH file: '/Users/XXX/Library/Developer/Xcode/DerivedData/Stockfish-gmtlyxbgbyyplbgwrhzsazbjjtxp/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/2449868381699930613/Stockfish_Prefix.pch.gch' fatal error: file '/Users/XXX/Library/Developer/Xcode/DerivedData/Stockfish-gmtlyxbgbyyplbgwrhzsazbjjtxp/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/2449868381699930613/Stockfish_Prefix.pch.gcinput is not a PCH file:

I tried removing derived data, clean et rebuild but i still have this error. It was working a few months ago.

Any idea what's wrong?

EDIT: build settings


Solution

  • Solution find by AshokPolu:

    Open the Xcode project, Try to do the following steps, XCode->File->Workspace Settings->Build System, select the option "Legacy Build System".