Stale path in xcode build command

I have tried everything so any suggestion would help. I have a project that I received from someone else. I get the following error building on the Bridging-Header.h file

:0: error: error opening input file '/Users/wegile/Documents/Richa/Projects/Rise Prime Git/riseprime_iphone_user/RisePrime/RisePrime-Bridging-Header.h' (No such file or directory) :0: error: cannot open file '/Users/markp/Library/Developer/Xcode/DerivedData/RisePrime-dzwiphmacvawjrfzxgbuvupudlar/Build/Intermediates.noindex/PrecompiledHeaders/RisePrime-Bridging-Header-3lvp3nwfcqika.dia' for diagnostics emission (No such file or directory) /Users/markp/Library/Developer/Xcode/DerivedData/RisePrime-dzwiphmacvawjrfzxgbuvupudlar/Build/Intermediates.noindex/PrecompiledHeaders/RisePrime-Bridging-Header-3lvp3nwfcqika.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'RisePrime' from project 'RisePrime') Command PrecompileSwiftBridgingHeader failed with a nonzero exit code import-objc-header

The build command is using the path of the original developer.

/Users/wegile/Documents/Richa/Projects/Rise\ Prime\ Git/riseprime_iphone_user/RisePrime/RisePrime-Bridging-Header.h

I have tried everything.

  1. Set the path for the Bridging-Header in swift compiler - General -> Objective C Bridging header. See attached
  2. Clean build Command-Shift-K
  3. Removed DerivedData

It seems that this path has come with the configuration files but I don't know how to update to the correct path

Solution found. The path to the file was in the project swift compiler configuration.l

Stale path in xcode build command
 
 
Q