XCLogParser icon indicating copy to clipboard operation
XCLogParser copied to clipboard

Populating `documentURL` for other `BuildStepType`s

Open mobileben opened this issue 4 years ago • 2 comments

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 avatar Feb 26 '20 06:02 mobileben

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?

mobileben avatar Feb 26 '20 19:02 mobileben

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

PatrikBillgren avatar Nov 28 '22 10:11 PatrikBillgren