Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Aug 2, 2024
1 parent da57d02 commit eda2dd4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Sources/BuildTool/BuildTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ enum Platform: String {
// TODO: why is xcodebuild giving locally with iOS "--- xcodebuild: WARNING: Using the first of multiple matching destinations:"
var destinationPredicate: DestinationPredicate? {
switch self {
case .macOS: nil
case .iOS: .init(runtime: "iOS-17-5", deviceType: "iPhone-15")
case .tvOS: .init(runtime: "tvOS-17-5", deviceType: "Apple TV")
case .macOS:
nil
case .iOS:
.init(runtime: "iOS-17-5", deviceType: "iPhone-15")
case .tvOS:
.init(runtime: "tvOS-17-5", deviceType: "Apple TV")
}
}
}
Expand All @@ -41,15 +44,13 @@ enum Error: Swift.Error {
case terminatedWithExitCode(Int32)
}

// TODO Is there a better way to make sure that this script has access to macOS APIs that are more recent than the package’s deployment target?
// TODO: Is there a better way to make sure that this script has access to macOS APIs that are more recent than the package’s deployment target?
@available(macOS 14, *)
@main
struct BuildTool: ParsableCommand {
@Option
var platform: Platform
@Option var platform: Platform

@Option
var swiftVersion: Int
@Option var swiftVersion: Int

mutating func run() throws {
let deviceUDID: String? = if let destinationPredicate = platform.destinationPredicate {
Expand Down

0 comments on commit eda2dd4

Please sign in to comment.