1

I would like to create a lib, but I don't want my code to be open. I took a look at a few package manager tutorials and looks like there is no way to write a lib using this approach and hide the code, for example, there is some code that I don't have the rights to share with everyone.

So, the question is there a way to create a lib with help of Swift Package Manager https://swift.org/package-manager/ , but with a closed code source?

Cristik
  • 28,596
  • 24
  • 84
  • 120
Aleksey Timoshchenko
  • 3,987
  • 2
  • 40
  • 80

1 Answers1

1

The page you referenced is pretty clear:

A package consists of Swift source files and a manifest file

This is backed up by the very first sentence in the Swift Package Manager documentation in the projects GitHub repository:

https://github.com/apple/swift-package-manager/tree/main/Documentation

The Swift Package Manager is a tool for managing distribution of source code, aimed at making it easy to share your code and reuse others’ code.

Both mention the Package Manager as a tool for distributing Source Code

Scott Thompson
  • 20,714
  • 4
  • 30
  • 32