Skip to content

Commit

Permalink
Added Xcode 16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AllDmeat committed Sep 18, 2024
1 parent 3fda06d commit ef8a992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/DBXCResultParser/Models/DTO/DTO+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
extension ActionsInvocationRecordDTO {
init(from xcresultPath: URL) throws {
let filePath = try Constants.actionsInvocationRecord
let command = "xcrun xcresulttool get --path '\(xcresultPath.relativePath)' --format json > '\(filePath.relativePath)'"
let command = "xcrun xcresulttool get --legacy --path '\(xcresultPath.relativePath)' --format json > '\(filePath.relativePath)'"
try DBShell.execute(command)
let data = try Data(contentsOf: filePath)
try FileManager.default.removeItem(atPath: filePath.relativePath)
Expand All @@ -22,7 +22,7 @@ extension ActionTestPlanRunSummariesDTO {
init(from xcresultPath: URL, refId: String? = nil) throws {
let refId = try (refId ?? ActionsInvocationRecordDTO(from: xcresultPath).testsRefId)
let filePath = try Constants.actionTestPlanRunSummaries
let command = "xcrun xcresulttool get --path '\(xcresultPath.relativePath)' --format json --id '\(refId)' > '\(filePath.relativePath)'"
let command = "xcrun xcresulttool get --legacy --path '\(xcresultPath.relativePath)' --format json --id '\(refId)' > '\(filePath.relativePath)'"
try DBShell.execute(command)
let data = try Data(contentsOf: filePath)
try FileManager.default.removeItem(atPath: filePath.relativePath)
Expand All @@ -34,7 +34,7 @@ extension ActionTestSummaryDTO {
init(from xcresultPath: URL, refId: String? = nil) throws {
let refId = try (refId ?? ActionsInvocationRecordDTO(from: xcresultPath).testsRefId)
let filePath = try Constants.actionTestSummary
let command = "xcrun xcresulttool get --path '\(xcresultPath.relativePath)' --format json --id '\(refId)' > '\(filePath.relativePath)'"
let command = "xcrun xcresulttool get --legacy --path '\(xcresultPath.relativePath)' --format json --id '\(refId)' > '\(filePath.relativePath)'"
try DBShell.execute(command)
let data = try Data(contentsOf: filePath)
try FileManager.default.removeItem(atPath: filePath.relativePath)
Expand Down

0 comments on commit ef8a992

Please sign in to comment.