"failed to emit precompiled header" error

I'm using the newest Xcode(v9.2) and getting this error


<unknown>:0: error: failed to emit precompiled header '/Users/me/Library/Developer/Xcode/DerivedData/Fresh2-eugsmsynpsltschevftirypojuqv/Build/Intermediates.noindex/PrecompiledHeaders/Bridge-swift_ZYI7U6U05XJ7-clang_53GTILGSD4G9.pch' for bridging header '/Users/me/Documents/xcode/Fresh2/Bridge.h'


I've tried reinstalling xcode and starting an entirely new project with the same code pasted but that didn't improve the issue. I have no idea what is causing this issue; I've tried the suggestions on this page

https://stackoverflow.com/questions/46293028/xcode-9-failed-to-emit-precompiled-header?noredirect=1&lq=1

but that didn't improve the situation.


I would really appreciate any support.

I also get the

"failed to emit precompiled header" error

after I pulled remote changes in git. Funny, but if I clone the remote repo to another directory, it compiles and runs

I have also met this problem. May I ask how the problem was solved?

Did you find the solution? I'm getting the same error on Xcode 15.0.1. Any help would be greatly appreciated.

Same issue with FlutterFlow Project code, and xcode 15.0.1. Has anyone found any solution?

"failed to emit precompiled header" error
 
 
Q