cc_libraries unable to depend on objc_import #10740
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
type: support / not a bug (process)
Hi awesome Bazel team,
Is there any way we could allow objc_imports to be direct deps of cc_libraries? It'd be really handy when working with C or C++ libraries on Apple platforms.
For context, I'm trying to use a .a archive for iOS that has a C interface. It needs to be imported with objc_import, because (as you'd expect) it uses sdk_frameworks as dependencies.
Right now this fails with the error message
This isn't ideal because it's pretty reasonable to have C/C++ interfaces (conditionally) used from C++ code on Apple platforms. One can (and I will) temporarily work around by doing multiple layers of rule wrappers, but that's fairly ugly. (The simple workaround is blocked by #10738).
Thanks,
Chris
(ex-Googler)
The text was updated successfully, but these errors were encountered: