我添加到我的项目桥接头文件中,这样我就可以在 swift 中使用 opencv。 我决定我不需要 opencv 所以我删除了桥接头文件,在我这样做之后我无法运行我的项目因为这个错误:
:0: 错误:打开输入文件“/Users/user1/Desktop/project_name/project_name/project_name-Bridging-Header.h”时出错(没有这样的文件或目录)
此错误出现在编译 Swift 源文件 > 预编译桥接 header 部分。 我尝试清理派生数据,并尝试删除 Swift Compiler - General > Objective c bridging header 中的路径。
最佳答案
You have to delete bridging header path from the Buide setting>Swift Compiler - General > Objective c bridging header
Please search your header file name in your project and if you find anything. then delete
关于ios - Swift - 桥接 header 编译器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50080712/