Swift-桥接头文件编译器错误 [英] Swift - bridging header compiler error

查看:123
本文介绍了Swift-桥接头文件编译器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已添加到项目桥接头文件中,因此可以快速使用opencv。
我决定不需要opencv,所以我删除了桥接头文件,这样做后,由于这个错误,我无法运行我的项目:

I added to my project bridging-header file so I can use opencv in swift. I decided that I don't need opencv so I deleted the bridging header file , after I did it I couldn't run my project because of this error:

:0:错误:打开输入文件'/Users/user1/Desktop/project_name/project_name/project_name-Bridging-Header.h'时出错(无此类文件或目录)

:0: error: error opening input file '/Users/user1/Desktop/project_name/project_name/project_name-Bridging-Header.h' (No such file or directory)

此错误出现在编译Swift源文件>预编译桥接头文件部分中。
我尝试清理衍生数据,并尝试删除 Swift Compiler-General> Objective c桥接头文件中的路径。

this error appeared in the Compile Swift source files > Precompile bridging header section. I tried cleaning my derived data and I tried deleting the path in the Swift Compiler - General > Objective c bridging header.

推荐答案


您必须从 Buide设置> Swift Compiler-General > 中删除桥接标头路径>目标c桥接头文件


请在项目中搜索头文件名,如果发现任何内容。然后删除

Please search your header file name in your project and if you find anything. then delete


这篇关于Swift-桥接头文件编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆