title: XCode can't find library which is in embedded framework
body: <p>I'm getting the following error from XCode over and over:</p>
  
  <pre><code>ld: library not found for -lMyLib for architecture arm64
  </code></pre>
  
  <p>The problem is that that lib is actually a subtarget of an embedded framework to the main project.</p>
  
  <p>So my project had Embedded(+ Linked) framework and that framework has sub-target (generated with SPM) which is MyLib. </p>