We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14176d commit 4cf147aCopy full SHA for 4cf147a
Examples/Package.swift
@@ -40,3 +40,19 @@ let package = Package(
40
),
41
]
42
)
43
+
44
+// This is a fake target that depends on all targets in the package.
45
+// We need to define it manually because the `Examples-Package` target doesn't exist for `swift build`.
46
47
+package.targets.append(
48
+ .target(
49
+ name: "Examples-all",
50
+ dependencies: package.targets.compactMap {
51
+ if $0.type == .test {
52
+ return nil
53
+ } else {
54
+ return .byName(name: $0.name)
55
+ }
56
57
+ )
58
+)
Examples/Sources/Examples-all/empty.swift
@@ -0,0 +1,2 @@
1
2
0 commit comments