简体   繁体   中英

Bridging Header Issues

I'm trying to add a Swift file to my app and get a "Failed to import bridging header" error, among others.

Bridging-Header code:

//
//  Use this file to import your target's public headers that you would like to expose to Swift.
//

#import "Menu.h"

在此处输入图片说明

在此处输入图片说明

In build settings, try setting "Embedded Content contains Swift Code" to Yes.

Also, it looks like its failing to recognize objects from UIKit, so try adding "import UIKit" atop one of your Swift files.

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