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

parse xcode14.3 xcactivitylog error #209

Open yohunl opened 7 months ago

yohunl commented 7 months ago

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']."

rabc commented 7 months ago

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.

yohunl commented 7 months ago

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.