// swift-tools-version:4.2
import PackageDescription

let package = Package(
    name: "KeychainSwift",
    products: [
        .library(name: "KeychainSwift", targets: ["KeychainSwift"]),
    ],
    dependencies: [
    ],
    targets: [
        .target(name: "KeychainSwift", dependencies: [], path: "Sources"),
        .testTarget(name: "KeychainSwiftTests", dependencies: ["KeychainSwift"])
    ]
)

// swift-tools-version:4.2
import PackageDescription

let package = Package(
    name: "KeychainSwift",
    products: [
        .library(name: "KeychainSwift", targets: ["KeychainSwift"]),
    ],
    dependencies: [
    ],
    targets: [
        .target(name: "KeychainSwift", dependencies: [], path: "Sources"),
        .testTarget(
            name: "KeychainSwiftTests", 
            dependencies: ["KeychainSwift"],
            exclude: ["ClearTests.swift"]
        )
    ]
)

Exclude ClearTests from SPM test target
Exclude ClearTests from SPM test target

The ClearTests attempt to clear the entire keychain of the OS that `swift test` is running on. At best, keychain permissions prevents this from working, and at worst, important keychain items can be deleted.
