xcresulttool - view Xcode result bundle data in a
human-readable or machine-parseable format.
xcresulttool get --path Example.xcresult
[--format json | raw] [--id ID]
xcresulttool export --type [file | directory] --path
Example.xcresult --output-path ./Out --id
ID
xcresulttool formatDescription [get] [--format
json | text | markdown | typeHierarchy]
[--hash] [--include-event-stream-types]
xcresulttool formatDescription diff [--format
text | markdown] version1.json version2.json
xcresulttool merge Input1.xcresult
Input2.xcresult [...] --output-path Merged.xcresult
xcresulttool metadata get --path
Example.xcresult
xcresulttool metadata addExternalLocation --path
Example.xcresult --identifier identifier --link
link [--description description]
xcresulttool version
xcresulttool graph --path Example.xcresult
xcresulttool is a tool for reading result bundles.
To produce a result bundle, run xcodebuild with the flag
-resultBundlePath PATH
where PATH is the desired path ending with
.xcresult.
- get
- Print the contents of an object given its ID, result bundle path and
output format (json for structured objects or raw for
attachments).
- export
- Export a file or directory represented by the given ID from a result
bundle. Exports to the given path.
- formatDescription
get
- Print a description of the types making up the result bundle structure.
The root object of each result bundle is
ActionsInvocationRecord.
- formatDescription
diff
- Compute a list of changes between the two provided format
descriptions.
- merge
- Merge result bundles.
- metadata
get
- Print the metadata of the result bundle.
- metadata
addExternalLocation
- Record an external location associated with the result bundle.
- version
- Print the version of the included XCResultKit package.
- graph
- Print the object graph of the given result bundle.
- --path
- Path to the result bundle.
- --output-path
- Output path for the exported file or directory.
- --format
format_name
- Controls output format.
- --id ID
- Provides the desired object's ID (hash).
- --hash
- Used by formatDescription get to print only the hash of the format
(can be compared with older values to detect changes to the format).
- --include-event-stream-types
- Used by formatDescription get to also include event stream types in
addition to the core result bundle types.
- --type
- Used by export to identify whether to export the given data as a
file or directory.