Amir Jabbar
Amir Jabbar

Reputation: 11

clang: error: no such file or directory: .pch

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'

Upvotes: 1

Views: 3822

Answers (1)

Ramesh_T
Ramesh_T

Reputation: 1261

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

Upvotes: 6

Related Questions