Skip to content

Use Tuist with a Swift Package

Tuist supports using Package.swift as a DSL for your projects and it converts your package targets into a native Xcode project and targets.

We are going to use Tuist with the TootSDK Package repository, which contains a Swift Package. The first thing that we need to do is to clone the repository:

Terminal window
git clone https://github.com/TootSDK/TootSDK
cd TootSDK

Once in the repository’s directory, we need to install the Swift Package Manager dependencies:

Terminal window
tuist install

Under the hood tuist install uses the Swift Package Manager to resolve and pull the dependencies of the package. After the resolution completes, you can then generate the project:

Terminal window
tuist generate

Voilà! You have a native Xcode project that you can open and start working on.