title: Cocoa Touch Framework with CocoaPods dependencies
body: <p>I'm trying to create a <strong>Cocoa Touch Framework</strong>.</p>
  
  <ul>
  <li>I created a Cocoa Touch Framework</li>
  <li>I ran <code>pod init</code></li>
  <li>I added our own CocoaPod to this, which has some dependencies itself as well.</li>
  <li>I ran <code>pod install</code>.</li>
  </ul>
  
  <p>Now when I try to build the framework (I open the <code>.xcodeproj</code>) I get the following warnings for each dependency.</p>
  
  <blockquote>
    <p>ld: warning: directory not found for option '-F/Users/jeroen/Library/Developer/Xcode/DerivedData/OurFramework-culynvrparvtfjbjlitmammotpkf/Build/Products/Debug-iphoneos/Alamofire'</p>
  </blockquote>
  
  <p>I get the following errors:  </p>
  
  <blockquote>
    <p>ld: framework not found Alamofire<br>
    error: Resource "/Users/jeroen/Library/Developer/Xcode/DerivedData/OurFramework-culynvrparvtfjbjlitmammotpkf/Build/Products/Debug-iphoneos/FirebaseFirestore/gRPCCertificates-Firestore.bundle" not found. Run 'pod install' to update the copy resources script.</p>
  </blockquote>
  
  <p>I expect that this is because the CocoaPod files are not copied to the right place. Is that correct?
  What could I do to make this work anyway?</p>
  
  <p>The reason I want to do this is the following:
  I have a CocoaPods project which is a regular Xcode project with only Swift classes and some view controllers. We want to make this available as closed source. So I'm hoping that including this pod in a Cocoa Touch Framework would still make all public functions of its pods available to the user.
  If there are other suggestions, they are welcome!</p>
  
  <p>Thanks in advance.</p>