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

Failure to compile with Xcode 14 #85

Closed joeboyscout04 closed 1 year ago

joeboyscout04 commented 1 year ago

Looks like with the Xcode 14 and Swift 5.6 stack, XCMetrics fails to compile.

The error I'm receiving is here:

[1308/1314] Compiling Vapor Application.swift
/private/var/folders/5v/z721gx9s29d54dfpy2znzmd80000gn/T/mint/github.com_spotify_XCMetrics/.build/checkouts/vapor/Sources/Vapor/HTTP/Headers/HTTPHeaders+Directive.swift:230:14: error: ambiguous use of 'split(separator:maxSplits:omittingEmptySubsequences:)'
        self.lazy.split(separator: "\\").reduce(into: "") { (result, part) in
             ^
Swift.Sequence:2:40: note: found this candidate
    @inlinable public __consuming func split(separator: Self.Element, maxSplits: Int = Int.max, omittingEmptySubsequences: Bool = true) -> [ArraySlice<Self.Element>]
                                       ^
Swift.Collection:2:40: note: found this candidate
    @inlinable public __consuming func split(separator: Self.Element, maxSplits: Int = Int.max, omittingEmptySubsequences: Bool = true) -> [Self.SubSequence]

It looks like this is an error in the Vapor library which has been fixed a few versions ago. I think if we bump the version of that dependency it would probably fix the issue. Thanks!