MobileNativeFoundation / XCLogParser

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

`--project` value finds incorrect project #64

Closed mobileben closed 4 years ago

mobileben commented 4 years ago

We have a few projects that have the same prefix. For example our main project is Foo. But we also have some other smaller modules that could be something like foo-bar or FooUtils.

When calling

xclogparser parse --project Foo --reporter json

Or when using as a library, setting logOption.projectName = "Foo", we find that we get the results of foo-bar in the event foo-bar was built after Foo.

This is caused by a couple of things. First is that in findDerivedDataForProject the directory name generation is based on whether or not the directories in derived data start with projectName. The second is that this testing is done with lowercase versions of both the projectName and the directory name in derived data.

I would expect an exact name match.

Optionally so as to not break behavior, perhaps a --strictNames flag or something similar could be used.