Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed create json report Xcode 15.3 #203

Closed
Tayphoon opened this issue Mar 7, 2024 · 5 comments · Fixed by #204
Closed

Failed create json report Xcode 15.3 #203

Tayphoon opened this issue Mar 7, 2024 · 5 comments · Fixed by #204

Comments

@Tayphoon
Copy link

Tayphoon commented Mar 7, 2024

Xclog parser failure create json report with error:

"com.apple.dt.ActivityLogSectionAttachment.TaskMetrics"], [type: int, value: 1], [type: int, value: 0]]
Error: The line *{"wcStartTime":73149 doesn't seem like a valid SLF line

Report is huge and i can not send real report, but i think it could be reproduced in sample project. I think something changed in activity log format.

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.3
XCLogParser installation: 0.2.38 (Homebrew)

@hoangatuan
Copy link

I'm facing similar issue. Here is the xcactivitylog file and LogStoreManifest.plist
build_logs.zip

@hoangatuan
Copy link

Xcode 15.3 uses logFormatVersion version 11, and it breaks the logic parsing of XCLogParser

@rabc
Copy link
Contributor

rabc commented Mar 15, 2024

The issue is that there is a new type IDEActivityLogSectionAttachment and one of the properties is a JSON with a new token *. This JSON is the same BuildOperationTaskMetrics object from here.

I have a working version with a fix, but I have no idea how those metrics could fit in the BuildStep. Anyone has idea of what is the meaning of each property in BuildOperationTaskMetrics?

@hbanzon
Copy link

hbanzon commented Mar 19, 2024

Hi @rabc would you happen to have your working version in a branch so that I can see if it fixes my issue too? I am seeing similar issues when updating to Xcode 15.3.

@rabc
Copy link
Contributor

rabc commented Mar 22, 2024

@hbanzon PR created. Although I am not sure if people are still looking at this repo, since there is a PR opened since January 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants