How do I remove a bridge header without getting errors?

自闭症网瘾萝莉.ら 提交于 2019-12-21 03:24:11

问题


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


回答1:


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




回答2:


Go to targets file->Build Settings->Swift Compiler - General, delete the contents in the same line as Objective-C Bridging Header



来源:https://stackoverflow.com/questions/32274684/how-do-i-remove-a-bridge-header-without-getting-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!