title: XCFramework with Pods Dependencies
body: <p>Our goal is to create a framework that hides our internal code and provide SDK to our customers.
  We have thought of creating XCFramework which fulfills our requirement. Umbrella framework is also suggested over the internet but mostly suggested to avoid that approach. Our Framework is dependent on some third-party libraries which we are using via Pods.</p>
  <p><strong>Issue: XCFramework does not compile pods framework. We got an error like &quot;Xyz(Pod) module not found&quot;. Even if we add pods from the client-side it does not work.</strong></p>
  <p>Code to create XCFramework is as bellow</p>
  <p><strong>1) Create an archive for iOS platform</strong></p>
  <pre><code>xcodebuild archive -workspace ABC.xcworkspace \
    -scheme ABC \
    -sdk iphoneos \
    -archivePath &quot;./archives/ios_devices.xcarchive&quot; \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
    SKIP_INSTALL=NO
  </code></pre>
  <p><strong>2) Create an archive for iOS-Simulator platform</strong></p>
  <pre><code>  xcodebuild archive  -workspace ABC.xcworkspace \
    -scheme ABC \
    -sdk iphonesimulator \
    -archivePath &quot;./archives/ios_simulators.xcarchive&quot; \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
    SKIP_INSTALL=NO
  </code></pre>
  <p><strong>3) Create an XCFramework from Archives</strong></p>
  <pre><code>xcodebuild -create-xcframework \
  -framework ./archives/ios_devices.xcarchive/Products/Library/Frameworks/ABC.framework \
  -framework ./archives/ios_simulators.xcarchive/Products/Library/Frameworks/ABC.framework \
  -output build/ABC.xcframework
  </code></pre>
  <p>We got ABC XCFramework successfully but dependencies are not included in XCFramework. Any solution for this? or Is there any way where we can set framework search path to client-side? or Any alternate approach?</p>