spotify / XCMetrics

XCMetrics is the easiest way to collect Xcode build metrics and improve developer productivity.
https://xcmetrics.io
Other
1.1k stars 77 forks source link

XCMetrics: Fix compilation for Xcode 13 beta 4 and above. #63

Closed byohay closed 2 years ago

byohay commented 2 years ago

Swift Package Manager had a function called await that fails due to the introduction of async/await in Swift. XCMetrics uses functionality that now exists in Swift Tools Core Support, so this commit removes SPM from the package dependencies and adds the aforementioned package instead. In addition this commit fixes some API changes with regards to TemporaryFile and AbsolutePath.

Inspired by the fix in Xcparse.

byohay commented 2 years ago

As a side note, it seems that the imports of TSCUtility are redundant, everything compiles successfully without it, if you'd like I can remove them.