1) Build the Native Library
From the repo root, build the native Zig library the Swift package links against:libprimitives_ts_native under zig-out/native.
2) Add Local Swift Package
- In Xcode: File → Add Packages… → Add Local… → select the
swiftdirectory. - Choose the
Voltairelibrary product for your app target.
../zig-out/native.
3) macOS App Runtime Linking
For macOS apps, ensure the dynamic library is available at runtime:- Option A: Add a Run Script build phase to copy the
.dylibinto the app bundle’sFrameworksfolder.
- Option B: Add
../zig-out/nativeto your target’s Runpath Search Paths or DYLD path while developing.

