MobileNativeFoundation / XCLogParser

Tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format
Apache License 2.0
1.75k stars 125 forks source link

Huge html report size #202

Open Tayphoon opened 9 months ago

Tayphoon commented 9 months ago

We have an issue when run xcodebuild command with flag -resultBundlePath (xcodebuild does not generate xcactivitylog without flag). Xcode log each step, create folder for example. After we call xclogparser parse --project --reporter html xclogparser generate html file for each of this steps. As a result xclogparser create 19741 files in directory each has 15kb size. Result report folder has 1.3Gb. If we build project usign Xcode we get small size report.

Could you please tell which flags we can use to reduce xcactivitylog or ignore some steps by xclogparser htm report?

Steps to reproduce:

Build using xcodebuild: xcodebuild -workspace MyProject.xcworkspace -scheme MyScheme -configuration Debug -destination 'generic/platform=iOS' -resultBundlePath 'resultbundle.result' clean build Run parse: xclogparser parse --project MyProject --reporter html --rootOutput Builds/reports As a result xclogparser create 19741 files in report directory which has 1.3Gb size

Context:

MacOS: Sonoma 14.1.2 Device: MacbookPro M1 Xcode: 15.1 XCLogParser installation: 0.2.38 (Homebrew)

Tayphoon commented 9 months ago

As i can see in build time line Xcode logs a lot of small operations - make directory. Does xclogparcer has options to skip it and do not create step report file for it?

Tayphoon commented 8 months ago

This happened only when activity log was created by xcodebuild. When building via Xcode IDE report size 169 mb.