Skip to content

Commit

Permalink
fix another way
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Aug 2, 2024
1 parent bcdb40a commit ad78f26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/BuildTool/BuildTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ struct SimctlOutput: Codable {

struct Device: Codable {
var udid: String
// Key seems to be absent in the case where you have something like "availabilityError": "device type profile not found"
var deviceTypeIdentifier: String?
var deviceTypeIdentifier: String
}
}

Expand Down Expand Up @@ -121,7 +120,7 @@ struct BuildTool: ParsableCommand {
func fetchSimctlOutput() throws -> SimctlOutput {
let data = try runAndReturnStdout(
executableName: "xcrun",
arguments: ["simctl", "list", "--json"]
arguments: ["simctl", "list", "--json", "devices", "available"]
)

print("got simctl output: \(String(data: data, encoding: .utf8)!)")
Expand Down

0 comments on commit ad78f26

Please sign in to comment.