Skip to content

jjrscott/XcodeBuildResultStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some time ago, Apple added JSON build output to xcodebuild in the form of the -resultStreamPath parameter. Unfortunately, one can't just -resultStreamPath - to replace the STDOUT with a nice stream of JSON fragments, so I've created this little wrapper to capture the file stream and show a summary. Additionally, I have submitted FB9004441 to request that xcodebuild support -resultStreamPath - directly.

Run ./xcodebuild.py -scheme HelloWorld to get the following output:

System rm -rf build
System mkdir -p build
System touch build/ResultStream.json
System touch build/StandardOut.txt
System touch build/StandardError.txt
System xcodebuild -scheme HelloWorld -resultBundlePath build/Result.xcresult -resultStreamPath build/ResultStream.json -derivedDataPath build -resultBundleVersion 3
Building project HelloWorld with scheme HelloWorld
CreateBuildDirectory .../XcodeJsonBuild/build/Build/Products
CreateBuildDirectory .../XcodeJsonBuild/build/Build/Intermediates.noindex
Write .../HelloWorld.build/Debug/HelloWorld.build/DerivedSources/Entitlements.plist
Process product packaging
Write .../HelloWorld.build/Debug/HelloWorld.build/all-product-headers.yaml
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld-project-headers.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld-all-non-framework-target-headers.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld-generated-files.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld-own-target-headers.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/HelloWorld-all-target-headers.hmap
Write .../HelloWorld.build/Debug/HelloWorld.build/Script-0694AC5625D97995007E9D22.sh
Script Important setup
Write .../HelloWorld.build/Debug/HelloWorld.build/Objects-normal/x86_64/HelloWorld.LinkFileList
Compile .../XcodeJsonBuild/HelloWorld/main.m
Link .../XcodeJsonBuild/build/Build/Products/Debug/HelloWorld
Sign .../XcodeJsonBuild/build/Build/Products/Debug/HelloWorld
Register execution policy exception for .../XcodeJsonBuild/build/Build/Products/Debug/HelloWorld

About

Example usage of xcodebuild -resultStreamPath

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published