Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Sep 28, 2024
1 parent 3d8cb1f commit 935d39c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Configuration
import Foundation
import Shared

Expand All @@ -10,9 +9,9 @@ final class ExternalOverrideRetainer: SourceGraphMutator {
private let graph: SourceGraph
private let isSwift6FixEnabled: Bool

required init(graph: SourceGraph, configuration _: Configuration, swiftVersion: SwiftVersion) {
required init(graph: SourceGraph, configuration _: Configuration) {
self.graph = graph
isSwift6FixEnabled = swiftVersion.version.isVersion(greaterThanOrEqualTo: "6.0")
isSwift6FixEnabled = SwiftVersion.current.version.isVersion(greaterThanOrEqualTo: "6.0")
}

func mutate() {
Expand Down
3 changes: 2 additions & 1 deletion Sources/XcodeSupport/XcodeTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ final class XcodeTarget {
}

var packageDependencyNames: Set<String> {
target.packageProductDependencies.mapSet { $0.productName }
guard let packageProductDependencies = target.packageProductDependencies else { return [] }
return packageProductDependencies.mapSet { $0.productName }
}

// MARK: - Private
Expand Down

0 comments on commit 935d39c

Please sign in to comment.