XCMetrics
XCMetrics copied to clipboard
Update dependency XCLogParser to v0.2.39
With Xcode 15.3 the sent metrics could no longer be processed:
xcmetrics-1 | [ ERROR ] [ProcessMetricsJob] error processing log from file:///tmp/0B464C1E-EE26-45B8-91B2-E10429CEA0E1/5B1E1C7B-62C2-4B1C-9C37-D82CC7359047.xcactivitylog: The line *{"utime":9,"wcStartT doesn't seem like a valid SLF line [job_id: B7B7E2AF-E4DA-4058-B137-AC4A2B6038C6]
xcmetrics-1 | [ ERROR ] Job failed with error: The line *{"utime":9,"wcStartT doesn't seem like a valid SLF line [job_id: B7B7E2AF-E4DA-4058-B137-AC4A2B6038C6, job_name: ProcessMetricsJob, queue: default]
To solve this problem, the version of XCLogParser
needs to be updated to v0.2.39
.
I've created a docker image locally to test the change.
Please consider rebuilding the official image spotify/xcmetrics
with this change to solve the issue #115 as well.
XCLogParser 0.2.39 has a bug, logs from xcode versions lower than 15.3 are not processed https://github.com/MobileNativeFoundation/XCLogParser/issues/209 https://github.com/MobileNativeFoundation/XCLogParser/issues/211
I am using Xcode 14.1, downgrading to 0.2.38 helped.