title: Signing sub-framework embedded in root-framework not working (Xcode 11.2.1)
body: <p>I have a small proof-of-concept app, where I am trying to embed (and sign) a framework (Alamofire) inside of my framework (AequumPOCFramework.framework), however, when I try to deploy to my device, it keeps giving me the error </p>
  
  <blockquote>
    <p>....not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.</p>
  </blockquote>
  
  <p>If I just try to deploy my own framework, without having Alamofire embedded in it, everything works fine.</p>
  
  <p>The complete error at deploy to my iphone is:</p>
  
  <blockquote>
    <p>dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
      Referenced from: /private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/AequumPOCFramework
      Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/Frameworks/Alamofire.framework/Alamofire: code signature in (/private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/Frameworks/Alamofire.framework/Alamofire) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/F7IZk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/F7IZk.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/N5zDJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/N5zDJ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/s6hpg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s6hpg.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LvAQg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LvAQg.png" alt="enter image description here"></a></p>