diff --git a/Package.swift b/Package.swift index f81b361..639bf3a 100644 --- a/Package.swift +++ b/Package.swift @@ -3,21 +3,27 @@ import PackageDescription let package = Package( - name: "SwiftCheck", - products: [ - .library( - name: "SwiftCheck", - targets: ["SwiftCheck"]), - ], - dependencies: [ - .package(url: "https://github.com/llvm-swift/FileCheck.git", from: "0.1.0") - ], - targets: [ - .target( - name: "SwiftCheck"), - .testTarget( - name: "SwiftCheckTests", - dependencies: ["SwiftCheck", "FileCheck"]), - ] + name: "SwiftCheck", + products: [ + .library( + name: "SwiftCheck", + targets: ["SwiftCheck"]), + ], + dependencies: [ + .package(url: "https://github.com/llvm-swift/FileCheck.git", from: "0.1.0"), + ], + targets: [ + .target( + name: "SwiftCheck"), + .testTarget( + name: "SwiftCheckTests", + dependencies: ["SwiftCheck", "FileCheck", ], + linkerSettings: [ + .unsafeFlags(["-Xlinker", "-rpath", + "-Xlinker", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib"], + .when(platforms: [.macOS]) + ), + ]), + ] )