Skip to content

Commit

Permalink
Rename enum
Browse files Browse the repository at this point in the history
  • Loading branch information
woin2ee committed Jun 9, 2024
1 parent 18c4dc4 commit 521ce8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/XcodeProj/Scheme/XCScheme+BuildAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extension XCScheme {
}
}

public enum Architecture {
public enum Architectures {
case matchRunDestination
case universal
case useTargetSettings
Expand Down Expand Up @@ -107,7 +107,7 @@ extension XCScheme {
public var parallelizeBuild: Bool
public var buildImplicitDependencies: Bool
public var runPostActionsOnFailure: Bool?
public var buildArchitectures: Architecture
public var buildArchitectures: Architectures

// MARK: - Init

Expand All @@ -117,7 +117,7 @@ extension XCScheme {
parallelizeBuild: Bool = false,
buildImplicitDependencies: Bool = false,
runPostActionsOnFailure: Bool? = nil,
buildArchitectures: Architecture = .matchRunDestination) {
buildArchitectures: Architectures = .matchRunDestination) {
self.buildActionEntries = buildActionEntries
self.parallelizeBuild = parallelizeBuild
self.buildImplicitDependencies = buildImplicitDependencies
Expand All @@ -133,7 +133,7 @@ extension XCScheme {
buildActionEntries = try element["BuildActionEntries"]["BuildActionEntry"]
.all?
.map(Entry.init) ?? []
buildArchitectures = element.attributes["buildArchitectures"].map { Architecture($0) } ?? .useTargetSettings
buildArchitectures = element.attributes["buildArchitectures"].map { Architectures($0) } ?? .useTargetSettings
try super.init(element: element)
}

Expand Down

0 comments on commit 521ce8a

Please sign in to comment.