Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others


0 votes
in Technique[技术] by (71.8m points)

ios - How do you archive Swift Package Dependencies to include in your XCFramework for binary distribution as a Swift Package?

Goal is to host a git repo for a Swift Package to distribute proprietary code as a binary in a XCFramework. The source code has dependencies on other Swift Packages. Listing the dependencies in the .package config is not enough. Simply asking consumers to import dependencies is not an option, as they may be making use of the same packages at different levels. The main problem I am trying to solve is how to resolve these dependencies when my Swift Package is imported into a project.

  1. Each dependency package should be archived and wrapped into the XCFramework as well, right?
  2. How would I do that?

The packages I am using are also available in a CocoaPod as well.

  1. Would it be easier to import them as pods for the purpose of archiving?

I have gone thru the following resources and SO posts, but can not find answer to this specific purpose.

Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share