rules_apple_line icon indicating copy to clipboard operation
rules_apple_line copied to clipboard

Bridging Header Support

Open michaeleisel opened this issue 5 years ago • 1 comments

When I try to add a bridging header with swift_copts = ["-import-objc-header", "path/to/Bridging-Header.h"], it fails to build, telling me that frameworks don't support bridging headers. Ideally, this wouldn't happen, and also there'd be a bridging_header attr or something

michaeleisel avatar Nov 12 '20 15:11 michaeleisel

It's an error from the Swift compiler, right? As the error says, bridging headers aren't allowed in frameworks, only in applications. What you want is an umbrella header instead. Would adding that header (and all the headers that it imports) to hdrs work?

thii avatar Nov 12 '20 21:11 thii