xcresulttool(1) General Commands Manual xcresulttool(1)

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.

Print the contents of an object given its ID, result bundle path and output format (json for structured objects or raw for attachments).
Export a file or directory represented by the given ID from a result bundle. Exports to the given path.
Print a description of the types making up the result bundle structure. The root object of each result bundle is ActionsInvocationRecord.
Compute a list of changes between the two provided format descriptions.
Merge result bundles.
Print the metadata of the result bundle.
Record an external location associated with the result bundle.
Print the version of the included XCResultKit package.
Print the object graph of the given result bundle.

Path to the result bundle.
Output path for the exported file or directory.
Controls output format.
Provides the desired object's ID (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).
Used by formatDescription get to also include event stream types in addition to the core result bundle types.
Used by export to identify whether to export the given data as a file or directory.
2019 Apple Inc.