Skip to content

Commit 94d1dcb

Browse files
committed
Fix Swift Package Manager support
It looks like SPM in Swift 4 doesn't auto-detect targets anymore.
1 parent 577b7e2 commit 94d1dcb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Package.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,18 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "PMJSON"
6+
name: "PMJSON",
7+
products: [
8+
.library(
9+
name: "PMJSON",
10+
targets: ["PMJSON"]),
11+
],
12+
targets: [
13+
.target(
14+
name: "PMJSON",
15+
path: "Sources"),
16+
.testTarget(
17+
name: "PMJSONTests",
18+
dependencies: ["PMJSON"]),
19+
]
720
)

0 commit comments

Comments
 (0)