问题描述
我前几天在我的应用程序中添加了一个桥头,因为我试图将Objective-C文件添加到我的Swift项目中。我无法使连接工作(我也不知道如何实现Objective-C文件),所以我决定重新开始。我删除了Objective-C文件和Bridge-Header文件,现在我收到一条错误消息:
< unknown>:0:错误:桥接标题'/ Users / CalebKleveter / Documents / Development / iOS / personal / swift / Projects / Dicey / Dicey / Dicey-Bridging-Header.h'不存在
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
推荐答案
转到项目的构建设置,找到 Objective-C Bridging Header 行并删除其内容。
Go to Build Settings of your project, find Objective-C Bridging Header row and remove its contents.
这篇关于如何在不出错的情况下删除桥接头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!