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

Swift Compilation marked as others type #201

Open
Bobbyphtr opened this issue Jan 18, 2024 · 1 comment
Open

Swift Compilation marked as others type #201

Bobbyphtr opened this issue Jan 18, 2024 · 1 comment

Comments

@Bobbyphtr
Copy link
Contributor

Hi, to be honest, I'm not sure if this is a known bug or not. I figure that when XCLogParser tries to parse the swift file, it seems to compare it with the wrong prefix.

Basically CompileSwift does not exist anymore. It was replaced with SwiftCompile.

Screenshot 2024-01-18 at 15 27 48

  • Captured on Xcode 15.0.1

To reproduce:

  1. Create a project with Swift File inside it
  2. Build it
  3. Take a look on Report Navigator
  4. Export it

Try to use xclogparser, and compare it with XCLogParser results. When compiling to swift, it will categorize it as other rather than swiftCompilation.

This is json result
Screenshot 2024-01-18 at 15 37 13

I also found that CompileSwiftSources prefix does not exist anymore. It was replaced like this hunk. But please do correct me if I mistook the meaning of the swiftAggregatedCompilation.

Screenshot 2024-01-18 at 15 42 31

This is the file where XCLogParser tries to parse the steps by looking at the command prefix.
https://github.com/MobileNativeFoundation/XCLogParser/blob/e536e3009d391513a791e08b991d6fe413be0f9c/Sources/XCLogParser/parser/BuildStep.swift#L123C22-L123C41

@Bobbyphtr
Copy link
Contributor Author

After reading this issue it looks like the solution implemented create another issue:
#196

I think we could work it out by specifying the depth of the substep or giving SwiftCompile a specific handler to parse the code.

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