rules_apple_line
rules_apple_line copied to clipboard
Bridging Header Support
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
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?