How do I remove a bridge header without getting errors?

Caleb Kleveter picture Caleb Kleveter · Aug 28, 2015 · Viewed 15.6k times · Source

I added a bridge header to my app the other day because I was trying to add Objective-C files to my Swift project. I was having trouble getting the connection to work(and I also did not know how to implement the Objective-C files), so I decided I wanted to start over again. I deleted the Objective-C files and the Bridge-Header file and now I am getting an error saying:
<unknown>:0: error: bridging header '/Users/CalebKleveter/Documents/Development/iOS/personal/swift/Projects/Dicey/Dicey/Dicey-Bridging-Header.h' does not exist

Xcode Bridge-Header error File tree for an Xcode project

Answer

egor.zhdan picture egor.zhdan · Aug 28, 2015

Go to Build Settings of your project, find Objective-C Bridging Header row and remove its contents.

enter image description here