MobileNativeFoundation / XCLogParser

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

Populating `documentURL` for other `BuildStepType`s #65

Open mobileben opened 4 years ago

mobileben commented 4 years ago

I realize this is something that Apple is doing with their xcactivitylog. It appears with CompileC and CompileSwift that the documentURL will contain the file name of the file that is being compiled. This is populated by the DVTDocumentLocation.

It seems it would also be useful to have this information available to other compile types such as CompileStoryboard and CompileXIB. It does look like we should be able to derive this from the title.

mobileben commented 4 years ago

I took a look more at the code. This isn't as straight forward as I initially thought it would be because of the way BuildStep objects are initialized.

A possibility would be to hijack one of the addCompilationTimes variants to accomplish this.

Would that be considered too messy and potentially error prone?

PatrikBillgren commented 1 year ago

Hi @mobileben! Is this issue still valid? In that case, do you have a POC PR to demonstrate?