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

parse xcode14.3 xcactivitylog error #209

Open
yohunl opened this issue Apr 12, 2024 · 2 comments
Open

parse xcode14.3 xcactivitylog error #209

yohunl opened this issue Apr 12, 2024 · 2 comments

Comments

@yohunl
Copy link

yohunl commented Apr 12, 2024

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
Copy link
Contributor

rabc commented Apr 12, 2024

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
Copy link
Author

yohunl commented Apr 15, 2024

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.

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

No branches or pull requests

2 participants