Add NumKong to Package.swift:
dependencies: [
.package(url: "https://github.com/ashvardanian/NumKong.git", from: "7.0")
]Then add the product to your target:
.target(
name: "MyApp",
dependencies: [
.product(name: "NumKong", package: "NumKong")
]
)The NumKong product carries the C layer too, which a target imports as NumKongC.
SwiftPM downloads it prebuilt from the GitHub release: an XCFramework on Apple platforms, and an artifact bundle for Linux, Windows, Android and WASI.
The WASI variant carries the strict v128 SIMD capability, which every engine with SIMD128 validates.
Xcode package integration uses the same URL.