MobileNativeFoundation / XCLogParser

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

Skip parsing of section attachments for logs with version less than 11 #213

Open HeEAaD opened 1 month ago

HeEAaD commented 1 month ago

Fixes #211 Fixes #209

This resolves the regression introduced by #204 that parsing of older logs (pre Xcode 15.3) raises the error Unexpected token parsing array of IDEActivityLogSectionAttachment.

Parse the IDEActivityLogSectionAttachments list only for activity logs with version 11 or above because this list is missing in version 10 logs.

Thanks @yohunl for the inspiration for the fix. https://github.com/MobileNativeFoundation/XCLogParser/issues/209#issuecomment-2055828404