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

Xcode 16 xcactivitylog is not a valid xcactivitylog file #219

Open
mollyIV opened this issue Nov 26, 2024 · 1 comment
Open

Xcode 16 xcactivitylog is not a valid xcactivitylog file #219

mollyIV opened this issue Nov 26, 2024 · 1 comment

Comments

@mollyIV
Copy link
Contributor

mollyIV commented Nov 26, 2024

When I run a parse command from Xcode project, I get "xcactivitylog is not a valid xcactivitylog file".

Steps to reproduce:

  • use attached POC project: ios_app_with_tests.zip
  • remove Xcode Derived Data
  • build the POC app xcodebuild build -scheme App -workspace App.xcworkspace -resultBundlePath /path/to/generate/report
  • open XCLogParser project in Xcode 16.0 (double-tap on Package.swift)
  • create a new CLI scheme and set parse --project App --reporter html in Run/Arguments section
  • run it
image

Actual result:

Error: ~/Xcode/DerivedData/App-bxetwoejuursezbpdfrueoraoqur/Logs/Build/DBC5DD58-60E9-451C-9173-D87738787128.xcactivitylog is not a valid xcactivitylog file
Program ended with exit code: 1

Expected result:

  • properly generated HTML report

According to my debugging, the code fails on reading the activity log:

There are indeed some UTF characters in the activity log.

What's interesting if I executed the same steps and use xclogparser tool installed locally instead of running it from Xcode, the report is generated properly.

System Info:

  • macOS 15.1.1
  • Xcode: 16.0
@mollyIV
Copy link
Contributor Author

mollyIV commented Nov 26, 2024

May be related to #217

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

1 participant