title: Missing required module in ios_dynamic_framework [Bazel]
body: <p>I am trying to use Bazel to create distributable framework and I have BUILD file like this:</p>
  <pre><code>ios_dynamic_framework(
      name = &quot;TheFramework&quot;,
      bundle_name = &quot;TheFramework&quot;,
      ...
      deps = [
          &quot;TheFrameworkLib&quot;,
      ]
  )
  swift_library(
      name = &quot;TheFrameworkLib&quot;,
      module_name: &quot;TheFramework&quot;
      srcs = [
          # publicly available  
      ],
      deps = [
          &quot;:InternalLib&quot;
      ],
  )
  swift_library(
      name = &quot;InternalLib&quot;,
      srcs = [
          # internal files  
      ],
  )
  </code></pre>
  <p>It builds successfully, and I can see by the size of the framework that <code>InternalLib</code> is also included in the binary. However, when I import this <code>TheFramework.framework</code> in the new iOS project (without Bazel), I am getting error: <code>Missing required module &quot;InternalLib&quot;</code>.  Any ideas how this can work? I guess I am missing some flags?</p>