Skip to content

Commit 935d39c

Browse files
committed
Fix build
1 parent 3d8cb1f commit 935d39c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/PeripheryKit/SourceGraph/Mutators/ExternalOverrideRetainer.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Configuration
21
import Foundation
32
import Shared
43

@@ -10,9 +9,9 @@ final class ExternalOverrideRetainer: SourceGraphMutator {
109
private let graph: SourceGraph
1110
private let isSwift6FixEnabled: Bool
1211

13-
required init(graph: SourceGraph, configuration _: Configuration, swiftVersion: SwiftVersion) {
12+
required init(graph: SourceGraph, configuration _: Configuration) {
1413
self.graph = graph
15-
isSwift6FixEnabled = swiftVersion.version.isVersion(greaterThanOrEqualTo: "6.0")
14+
isSwift6FixEnabled = SwiftVersion.current.version.isVersion(greaterThanOrEqualTo: "6.0")
1615
}
1716

1817
func mutate() {

Sources/XcodeSupport/XcodeTarget.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ final class XcodeTarget {
3838
}
3939

4040
var packageDependencyNames: Set<String> {
41-
target.packageProductDependencies.mapSet { $0.productName }
41+
guard let packageProductDependencies = target.packageProductDependencies else { return [] }
42+
return packageProductDependencies.mapSet { $0.productName }
4243
}
4344

4445
// MARK: - Private

0 commit comments

Comments
 (0)