Publish your public-facing Fern Swift SDK as a Swift package distributed via Git. After following the steps on this page, you’ll have a versioned package that developers can install using Swift Package Manager.
This page assumes that you have:
fern folder, a GitHub repository for your Swift SDK, and a Swift generator group in generators.yml. See Generating an SDK (Swift).generators.ymlAt this point, you’re ready to generate a release for your SDK.
Regenerate your SDK and publish it to your repository:
Local machine output will verify that the release is pushed to your repository and tagged with the version you specified.
Your Swift package is now available! Developers can add it to their projects by:
Unlike other languages that rely on centralized registries, Swift packages are available as soon as they’re tagged and pushed to a Git repository.
You can optionally submit your package to the community-maintained Swift Package Index for better discoverability.