Skip to content

Commit 8a61286

Browse files
[Infra] Add --legacy flag to xcresulttool (#14717)
Co-authored-by: Morgan Chen <morganchen12@gmail.com>
1 parent f954960 commit 8a61286

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/xcresult_logs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ def export_log(xcresult_path, log_id):
245245
Returns:
246246
The logged output, as a string.
247247
"""
248-
contents = xcresulttool_json('get', '--path', xcresult_path, '--id', log_id)
248+
# Note: --legacy is required for Xcode 16.
249+
contents = xcresulttool_json(
250+
'get', '--path', xcresult_path, '--id', log_id, '--legacy'
251+
)
249252

250253
result = []
251254
collect_log_output(contents, result)

0 commit comments

Comments
 (0)