1

i m trying to compile a project in xcode and facing below error

clang: error: no such file or directory: '/Users/mac/Library/Developer/Xcode/DerivedData/PartySlots-fvyybtfnscszlhagtcwimkjnmdjx/Build/Intermediates/PrecompiledHeaders/PartySlots-Prefix-fdmipifdnmujjacmntzgkdilgdnc/PartySlots-Prefix.pch'

Chitrank Dixit
  • 3,961
  • 4
  • 39
  • 59
Amir Jabbar
  • 11
  • 1
  • 2

1 Answers1

6

Did you move your folder/files after making the project? It's because Xcode can't find the prefix header for some reason. It can be easily fixed by relocating it.

Change the Precompile Prefix Header to Yes and Prefix Header to where the .pch file is located in your folder.

Refer the image.

enter image description here

Ramesh_T
  • 1,251
  • 8
  • 19
  • 1
    Xcode seems to be stricter about how these paths are defined. Older Xcode versions would accept something like this: /MyApp/SupportingFiles/My.pch where now it needs $(SRCROOT)/MyApp/SupportingFiles.pch – SteveCaine Feb 17 '17 at 19:03