Baffled by minimum platform requirement

error: the product 'CommandLineKit' requires minimum platform version 10.12 for macos platform

i'm trying to implement CommandLineKit into a test project but cannot get through this error

Package.swift contains

platforms: [ .macOS(.v10_12) ],

my system is 10.15 (19A583)

$ swift --version

Apple Swift version 5.1.3 (swift-5.1.3-RELEASE)

Target: x86_64-apple-darwin19.0.0

am i missing something?

You will have to specify platforms: [ .macOS(.v10_12) ], for your package as well.

Oh, or does

Package.swift contains

mean your package manifest, and not CommandLineKit's? I might have misinterpreted this.

1 Like