title: Compile swift framework with 3rd-party libraries
body: <p>Let's say I have a custom framework with lots of functionalities, written in Swift.
  This framework let's call it <em>'MyFramework'</em>, uses some 3rd party libraries, like Firebase, SDWebimage, PromiseKit etc. I integrated these with <strong>CocoaPods</strong>.
  Our goal is to compile our framework on my machine, then give the produced <strong>.framework</strong> file to the customer, who can integrate it into his project.</p>
  
  <p>It is very important to precompile the framework, because we don't want to allow the customers, to see/modify our code.</p>
  
  <p><br>This is working, but the problem is, that for example if our customer uses Firebase in his project too (installed with CocoaPods too), then he will get lots of warnings, like this:
  <br>
  <strong>Class XY is implemented in both MyProject and MyFramework. One of the two will be used. Which one is undefined.</strong></p>
  
  <p>Is it possible to somehow build my framework without the concrete implementations of these libraries, and get them from the customer's installed Pods?</p>
  
  <p>Another possible solution that I tried, is to put all dependencies into the framework and try to reference them from the customer's project. But then the compiler said, that can't reference these dependencies, which is funny because if I install all of them again to the project it will say that duplicated dependencies.</p>
  
  <p>What would be the best way to compile the framework, but also use these Pods in it?</p>