XCLogParser icon indicating copy to clipboard operation
XCLogParser copied to clipboard

parse xcode14.3 xcactivitylog error

Open yohunl opened this issue 1 year ago • 2 comments

The latest version can parse the logs of Xcode 15.3 without any issues, but fails to parse the logs from the older Xcode 14.3. The error message is: "Error: Error parsing the log: Unexpected token parsing array of IDEActivityLogSectionAttachment: [type: classNameRef, className: 'IDEActivityLogSection']."

yohunl avatar Apr 12 '24 08:04 yohunl

There is nothing fancy in 0.2.39 apart the fix of Xcode 15.3 new token. I guess that you can keep using the previous version until you can migrate to new Xcode.

rabc avatar Apr 12 '24 12:04 rabc

There is nothing fancy in 0.2.39 apart the fix of Xcode 15.3 new token. I guess that you can keep using the previous version until you can migrate to new Xcode.

The issue was caused by the newly added method parseIDEActivityLogSectionAttachments. Although the older versions do not have this method, they somehow end up invoking it, which leads to confusion in the enumerator. I've attempted a fix as follows,

image

and after verification, it works now.

yohunl avatar Apr 15 '24 07:04 yohunl