简体   繁体   中英

Bridging header file Swift

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:

在此处输入图片说明

What could be wrong?

The name of the bridging header should be of the format

<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

Also make sure the path of the bridging header is specified in Xcode Build Settings under Objective-C Bridging Header option.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM