Ship static library as binary dependency in Package Manager

Hello everyone!
I develop a close-sourced library that used to be shipped with CocoaPods in two variants: static and dynamic. Now the time has come to adopt SPM and I wonder if I can ship it as a static library? I found some difficulties with it because there is no out-of-the-box solution.

  1. Static library needs other libraries it depends on to properly link
  2. Even though I can bypass the 1-st problem, Xcode embeds static library inside [App].app/Frameworks, that is pointless.

So does SPM even designed to ship static libraries as binary dependencies?

1 Like