XCLogParser: Invalid xcactivitylog file
Hi, When I use Xcode to build, It will generate xcactivitylog. But When I use xcodebuild cli, For example
xcodebuild -workspace xx.xcworkspace -scheme xx -sdk iphoneos -showBuildTimingSummary -resultBundlePath ./a/a -derivedDataPath ./a clean build
it will generate two xcactivitylog, One is a clean job log, and one is a build job log. But the build job log is not a valid gzip. I have to wait one day, but nothing changes.
So, Is it possible to crash in generate xcactivitylog?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (3 by maintainers)
As written above, this seems to be because Xcode closes the file handler or similar way too early without letting the file writer flush the contents of the file completely to disk. This should be a bug report to Xcode, and you can workaround it as described above by adding a sleep or running another action (such as a
cleanaction) after your build.