line / rules_apple_line

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

Show dependent submodule fails to import into Mixed Framework. #14

Closed asa closed 4 years ago

asa commented 4 years ago

Building with bazel build -c opt //examples/ios/Mixed:MixedFramework and importing the resulting Mixed.framework into a vanilla ios project results in a Missing required module 'submodule/ error.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

thii commented 4 years ago

This is currently impossible due to the generated module map can't be customized. Though there's a workaround that you can try: adding @_exported import submodule to a Swift file in the Mixed target.

asa commented 4 years ago

I couldn't get that to work.

asa commented 4 years ago

I missunderstood the static-ness of the mixed_static_framework to mean that its deps would be entirely contained within the resulting framework. I am trying to split up the project into many submodules and yet deliver one single framework to thirdparty developers to include into their projects. Is this possible with this rule or should I be looking elsewhere?

thii commented 4 years ago

I think it's possible. Let me fix your example.