ios - Swift - 桥接 header 编译器错误

标签 ios swift header-files bridging-header

我添加到我的项目桥接头文件中,这样我就可以在 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/

相关文章:

c - 为什么在已经定义函数的源代码中添加头文件?

头文件中的 C++ 数组

iphone - 在 iOS 上安装 JIRA Mobile Connect SDK

ios - 在 Swift 1.2 中使用 assetForURL

objective-c - 滚动时增加 UINavigationBar 标题字体大小

visual-c++ - 错误 C2143 VC++12

ios - 与NSInteger的关联引用

iphone - 使用 Interface Builder 在屏幕外创建 UIButton

ios - 如何在旋转时定义 CollectionView 的大小

ios - SKPhysicsBody 看起来很小