Skip to content

Building Voodoo

Derek Clarkson edited this page Oct 8, 2023 · 2 revisions

Build Voodoo is quite simple. The build and all of Voodoos dependencies are handled via the Swift Package Manager (SPM) which makes it a relatively simple process.

Xcode

If you are using Voodoo as a server in XCtests, just add it as a package dependency to you test targert.

Command line

You probably already have them but if not, in order to build Voodoo you will need a Swift development environment and the Git version control system. The Swift development environment comes with Xcode for Macs and via a variety of install methods for other platforms on the Swift.org page.

Next you will need to check out the Voodoo source from this repository:

$ git clone https://github.com/drekka/Voodoo

The build itself could not be simpler:

$ swift build --configuration release

This will download all of Voodoo's dependencies and then built Voodoo itself. The --configuration argument is not required, it's just telling Swift to do a release build of Voodoo rather than a developer's debug build.

When it's finished (it will take a few minutes) the voodoo command line program will be created in the .build/release directory. As it's fully self contained you can move it to wherever you like. /usr/bin for example.

Clone this wiki locally