Can I specify a platform target when running swift test from the CLI?
问题 My Package.swift looks something like let package = Package( name: "MyPackage", platforms: [ .iOS(.v13) ], products: [ .library( name: "MyPackage", targets: ["MyPackage"]) ], dependencies: [ .package(url: "https://github.com/SnapKit/SnapKit.git", from: "5.0.0"), ], targets: [ .target( name: "MyPackage", dependencies: [ "SnapKit", ]), .testTarget( name: "MyPackageTests", dependencies: ["MyPackage"]) ] ) When I run swift test I get error: the library 'MyPackage' requires macos 10.10, but