桥接头文件Swift [英] Bridging header file Swift
问题描述
我想为我的新Swift项目手动创建一个Obj-C桥接头文件,以与AudioKit一起使用。我被困住了。一切似乎都是正确的(我什至检查了文件路径末尾的空格是否是问题所在,不是问题所在,我清除了项目)。作为证明,我包括一张屏幕截图:
I want to manually create a Obj-C bridging header file for my new Swift project for use with AudioKit. I am stuck. Everything seems to be correct (I even checked whether a space at the end of the file path was the problem and it isn't, and I cleared the project). As a proof I include a screenshot:
推荐答案
桥接头的名称应为
< target_name> -Bridging-Header.h
因此,如果您的目标名称是音频表。然后,桥接标题的名称应为
So if your target name is AudioMeter. Then the name of the bridging header should be
AudioMeter-Bridging-Header.h
还要确保在 Objective-C桥接头选项下的Xcode Build Settings 中指定了桥接头的路径。
Also make sure the path of the bridging header is specified in Xcode Build Settings under Objective-C Bridging Header option.
这篇关于桥接头文件Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!