line / rules_apple_line

LINE's Apple rules for Bazel
Apache License 2.0
207 stars 18 forks source link

Bridging Header Support #28

Open michaeleisel opened 4 years ago

michaeleisel commented 4 years ago

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

thii commented 4 years ago

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?