Steps
- Added
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.4.0")), to Package.swift
- Ran
swift package --allow-writing-to-package-directory benchmark init MyNewBenchmarkTarget
- It creates "MyNewBenchmarkTarget.swift" file with
let benchmarks = { ... }
- Compile the target MyNewBenchmarkTarget
Fix?
Replace let benchmarks = { ... } with func benchmarks() { ... }