The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build MapboxDirections, reference v2.14.0 (651232), with Swift 6.0 for Linux on 1 Dec 2024 05:22:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

 4 |  A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
 5 |  */
 6 | public enum CongestionLevel: String, Codable, CaseIterable {
   |             `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 7 |     /**
 8 |      There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 71 |          The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
 72 |          */
 73 |         public var trafficTendencies: [TrafficTendency]?
    |                    `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 74 |     }
 75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 5 | ///
 6 | /// New values could be introduced in the future without an API version change.
 7 | public enum TrafficTendency: Int, Codable, CaseIterable {
   |             `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 8 |     /// Congestion tendency is unknown.
 9 |     case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
27 |      - note: This profile is not supported by `Isochrones` API.
28 |     */
29 |     public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
   |                       |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 39 |      The credentials used to make the request.
 40 |      */
 41 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 42 |
 43 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
117 |              Will update route annotations.
118 |              */
119 |             static public let annotations = PropertiesToMerge(rawValue: 1)
    |                               |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |             /**
121 |              Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
121 |              Will update route `Incidents`.
122 |              */
123 |             static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
    |                               |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 |             /**
125 |              Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
125 |              Will update route `Closures`.
126 |              */
127 |             static public let closures = PropertiesToMerge(rawValue: 1 << 2)
    |                               |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |             /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
130 |              Includes `annotations`, `incidents` and `closures`.
131 |              */
132 |             static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
    |                               |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |         }
134 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 30 |      This property contains a maximum of two `Route`s.
 31 |      */
 32 |     public var routes: [Route]? {
    |                `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 33 |         didSet {
 34 |             updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
 7 |  Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
 8 |  */
 9 | open class Route: DirectionsResult {
   |            `- note: class 'Route' does not conform to the 'Sendable' protocol
10 |     private enum CodingKeys: String, CodingKey, CaseIterable {
11 |         case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 41 |      This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
 42 |      */
 43 |     public let waypoints: [Waypoint]?
    |                `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 44 |
 45 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
  7 |  A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
  8 |  */
  9 | public class Waypoint: Codable, ForeignMemberContainerClass {
    |              `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
 10 |     public var foreignMembers: JSONObject = [:]
 11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | public enum ResponseOptions {
    |             `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
  8 |     case route(RouteOptions)
  9 |     case match(MatchOptions)
    :
 46 |      The criteria for the directions response.
 47 |      */
 48 |     public let options: ResponseOptions
    |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
 49 |
 50 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 51 |      The credentials used to make the request.
 52 |      */
 53 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 54 |
 55 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 85 |      Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
 86 |      */
 87 |     public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
    |                             `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 88 | }
 89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 5 |  Exact `RoadClass` exclusion violation case.
 6 |  */
 7 | public struct RoadClassExclusionViolation {
   |               `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 8 |     /**
 9 |      `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 216 |     // Unrecognized maneuver types are interpreted as turns.
 217 |     // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
 218 |     static let `default` = ManeuverType.turn
     |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 219 | }
 220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 435 |
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
     |             `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
 438 |         let maneuverDirection: ManeuverDirection?
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 222 |  A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
 223 |  */
 224 | public enum ManeuverDirection: String, Codable {
     |             `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
 225 |     /**
 226 |      The maneuver requires a sharp turn to the right.
     :
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
 438 |         let maneuverDirection: ManeuverDirection?
     |             `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
 440 |         let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |  A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
 15 |  */
 16 | public enum RouteShapeFormat: String, Codable {
    |             `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
 17 |     /**
 18 |      The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
    :
 34 |     case polyline6
 35 |
 36 |     static let `default` = RouteShapeFormat.polyline
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
[145/160] Compiling MapboxDirections RouteRefreshSource.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
16 |     This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 |     */
18 |     public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
   |                       |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 43 |          This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
 44 |          */
 45 |         public var segmentCongestionLevels: [CongestionLevel]?
    |                    `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 46 |
 47 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 4 |  A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
 5 |  */
 6 | public enum CongestionLevel: String, Codable, CaseIterable {
   |             `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 7 |     /**
 8 |      There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 71 |          The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
 72 |          */
 73 |         public var trafficTendencies: [TrafficTendency]?
    |                    `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 74 |     }
 75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 5 | ///
 6 | /// New values could be introduced in the future without an API version change.
 7 | public enum TrafficTendency: Int, Codable, CaseIterable {
   |             `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 8 |     /// Congestion tendency is unknown.
 9 |     case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
27 |      - note: This profile is not supported by `Isochrones` API.
28 |     */
29 |     public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
   |                       |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 39 |      The credentials used to make the request.
 40 |      */
 41 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 42 |
 43 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
117 |              Will update route annotations.
118 |              */
119 |             static public let annotations = PropertiesToMerge(rawValue: 1)
    |                               |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |             /**
121 |              Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
121 |              Will update route `Incidents`.
122 |              */
123 |             static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
    |                               |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 |             /**
125 |              Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
125 |              Will update route `Closures`.
126 |              */
127 |             static public let closures = PropertiesToMerge(rawValue: 1 << 2)
    |                               |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |             /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
130 |              Includes `annotations`, `incidents` and `closures`.
131 |              */
132 |             static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
    |                               |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |         }
134 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 30 |      This property contains a maximum of two `Route`s.
 31 |      */
 32 |     public var routes: [Route]? {
    |                `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 33 |         didSet {
 34 |             updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
 7 |  Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
 8 |  */
 9 | open class Route: DirectionsResult {
   |            `- note: class 'Route' does not conform to the 'Sendable' protocol
10 |     private enum CodingKeys: String, CodingKey, CaseIterable {
11 |         case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 41 |      This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
 42 |      */
 43 |     public let waypoints: [Waypoint]?
    |                `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 44 |
 45 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
  7 |  A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
  8 |  */
  9 | public class Waypoint: Codable, ForeignMemberContainerClass {
    |              `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
 10 |     public var foreignMembers: JSONObject = [:]
 11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | public enum ResponseOptions {
    |             `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
  8 |     case route(RouteOptions)
  9 |     case match(MatchOptions)
    :
 46 |      The criteria for the directions response.
 47 |      */
 48 |     public let options: ResponseOptions
    |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
 49 |
 50 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 51 |      The credentials used to make the request.
 52 |      */
 53 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 54 |
 55 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 85 |      Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
 86 |      */
 87 |     public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
    |                             `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 88 | }
 89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 5 |  Exact `RoadClass` exclusion violation case.
 6 |  */
 7 | public struct RoadClassExclusionViolation {
   |               `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 8 |     /**
 9 |      `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 216 |     // Unrecognized maneuver types are interpreted as turns.
 217 |     // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
 218 |     static let `default` = ManeuverType.turn
     |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 219 | }
 220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 435 |
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
     |             `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
 438 |         let maneuverDirection: ManeuverDirection?
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 222 |  A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
 223 |  */
 224 | public enum ManeuverDirection: String, Codable {
     |             `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
 225 |     /**
 226 |      The maneuver requires a sharp turn to the right.
     :
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
 438 |         let maneuverDirection: ManeuverDirection?
     |             `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
 440 |         let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |  A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
 15 |  */
 16 | public enum RouteShapeFormat: String, Codable {
    |             `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
 17 |     /**
 18 |      The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
    :
 34 |     case polyline6
 35 |
 36 |     static let `default` = RouteShapeFormat.polyline
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
[146/160] Compiling MapboxDirections RouteResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
16 |     This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 |     */
18 |     public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
   |                       |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 43 |          This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
 44 |          */
 45 |         public var segmentCongestionLevels: [CongestionLevel]?
    |                    `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 46 |
 47 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 4 |  A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
 5 |  */
 6 | public enum CongestionLevel: String, Codable, CaseIterable {
   |             `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 7 |     /**
 8 |      There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 71 |          The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
 72 |          */
 73 |         public var trafficTendencies: [TrafficTendency]?
    |                    `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 74 |     }
 75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 5 | ///
 6 | /// New values could be introduced in the future without an API version change.
 7 | public enum TrafficTendency: Int, Codable, CaseIterable {
   |             `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 8 |     /// Congestion tendency is unknown.
 9 |     case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
27 |      - note: This profile is not supported by `Isochrones` API.
28 |     */
29 |     public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
   |                       |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 39 |      The credentials used to make the request.
 40 |      */
 41 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 42 |
 43 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
117 |              Will update route annotations.
118 |              */
119 |             static public let annotations = PropertiesToMerge(rawValue: 1)
    |                               |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |             /**
121 |              Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
121 |              Will update route `Incidents`.
122 |              */
123 |             static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
    |                               |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 |             /**
125 |              Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
125 |              Will update route `Closures`.
126 |              */
127 |             static public let closures = PropertiesToMerge(rawValue: 1 << 2)
    |                               |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |             /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
130 |              Includes `annotations`, `incidents` and `closures`.
131 |              */
132 |             static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
    |                               |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |         }
134 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 30 |      This property contains a maximum of two `Route`s.
 31 |      */
 32 |     public var routes: [Route]? {
    |                `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 33 |         didSet {
 34 |             updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
 7 |  Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
 8 |  */
 9 | open class Route: DirectionsResult {
   |            `- note: class 'Route' does not conform to the 'Sendable' protocol
10 |     private enum CodingKeys: String, CodingKey, CaseIterable {
11 |         case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 41 |      This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
 42 |      */
 43 |     public let waypoints: [Waypoint]?
    |                `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 44 |
 45 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
  7 |  A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
  8 |  */
  9 | public class Waypoint: Codable, ForeignMemberContainerClass {
    |              `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
 10 |     public var foreignMembers: JSONObject = [:]
 11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | public enum ResponseOptions {
    |             `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
  8 |     case route(RouteOptions)
  9 |     case match(MatchOptions)
    :
 46 |      The criteria for the directions response.
 47 |      */
 48 |     public let options: ResponseOptions
    |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
 49 |
 50 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 51 |      The credentials used to make the request.
 52 |      */
 53 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 54 |
 55 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 85 |      Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
 86 |      */
 87 |     public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
    |                             `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 88 | }
 89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 5 |  Exact `RoadClass` exclusion violation case.
 6 |  */
 7 | public struct RoadClassExclusionViolation {
   |               `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 8 |     /**
 9 |      `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 216 |     // Unrecognized maneuver types are interpreted as turns.
 217 |     // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
 218 |     static let `default` = ManeuverType.turn
     |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 219 | }
 220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 435 |
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
     |             `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
 438 |         let maneuverDirection: ManeuverDirection?
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 222 |  A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
 223 |  */
 224 | public enum ManeuverDirection: String, Codable {
     |             `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
 225 |     /**
 226 |      The maneuver requires a sharp turn to the right.
     :
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
 438 |         let maneuverDirection: ManeuverDirection?
     |             `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
 440 |         let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |  A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
 15 |  */
 16 | public enum RouteShapeFormat: String, Codable {
    |             `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
 17 |     /**
 18 |      The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
    :
 34 |     case polyline6
 35 |
 36 |     static let `default` = RouteShapeFormat.polyline
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
[147/160] Compiling MapboxDirections RouteStep.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
16 |     This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 |     */
18 |     public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
   |                       |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 43 |          This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
 44 |          */
 45 |         public var segmentCongestionLevels: [CongestionLevel]?
    |                    `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 46 |
 47 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 4 |  A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
 5 |  */
 6 | public enum CongestionLevel: String, Codable, CaseIterable {
   |             `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 7 |     /**
 8 |      There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 71 |          The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
 72 |          */
 73 |         public var trafficTendencies: [TrafficTendency]?
    |                    `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 74 |     }
 75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 5 | ///
 6 | /// New values could be introduced in the future without an API version change.
 7 | public enum TrafficTendency: Int, Codable, CaseIterable {
   |             `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 8 |     /// Congestion tendency is unknown.
 9 |     case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
27 |      - note: This profile is not supported by `Isochrones` API.
28 |     */
29 |     public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
   |                       |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 39 |      The credentials used to make the request.
 40 |      */
 41 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 42 |
 43 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
117 |              Will update route annotations.
118 |              */
119 |             static public let annotations = PropertiesToMerge(rawValue: 1)
    |                               |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |             /**
121 |              Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
121 |              Will update route `Incidents`.
122 |              */
123 |             static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
    |                               |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 |             /**
125 |              Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
125 |              Will update route `Closures`.
126 |              */
127 |             static public let closures = PropertiesToMerge(rawValue: 1 << 2)
    |                               |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |             /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
130 |              Includes `annotations`, `incidents` and `closures`.
131 |              */
132 |             static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
    |                               |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |         }
134 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 30 |      This property contains a maximum of two `Route`s.
 31 |      */
 32 |     public var routes: [Route]? {
    |                `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 33 |         didSet {
 34 |             updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
 7 |  Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
 8 |  */
 9 | open class Route: DirectionsResult {
   |            `- note: class 'Route' does not conform to the 'Sendable' protocol
10 |     private enum CodingKeys: String, CodingKey, CaseIterable {
11 |         case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 41 |      This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
 42 |      */
 43 |     public let waypoints: [Waypoint]?
    |                `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 44 |
 45 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
  7 |  A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
  8 |  */
  9 | public class Waypoint: Codable, ForeignMemberContainerClass {
    |              `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
 10 |     public var foreignMembers: JSONObject = [:]
 11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | public enum ResponseOptions {
    |             `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
  8 |     case route(RouteOptions)
  9 |     case match(MatchOptions)
    :
 46 |      The criteria for the directions response.
 47 |      */
 48 |     public let options: ResponseOptions
    |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
 49 |
 50 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 51 |      The credentials used to make the request.
 52 |      */
 53 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 54 |
 55 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 85 |      Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
 86 |      */
 87 |     public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
    |                             `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 88 | }
 89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 5 |  Exact `RoadClass` exclusion violation case.
 6 |  */
 7 | public struct RoadClassExclusionViolation {
   |               `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 8 |     /**
 9 |      `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 216 |     // Unrecognized maneuver types are interpreted as turns.
 217 |     // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
 218 |     static let `default` = ManeuverType.turn
     |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 219 | }
 220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 435 |
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
     |             `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
 438 |         let maneuverDirection: ManeuverDirection?
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 222 |  A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
 223 |  */
 224 | public enum ManeuverDirection: String, Codable {
     |             `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
 225 |     /**
 226 |      The maneuver requires a sharp turn to the right.
     :
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
 438 |         let maneuverDirection: ManeuverDirection?
     |             `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
 440 |         let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |  A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
 15 |  */
 16 | public enum RouteShapeFormat: String, Codable {
    |             `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
 17 |     /**
 18 |      The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
    :
 34 |     case polyline6
 35 |
 36 |     static let `default` = RouteShapeFormat.polyline
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
[148/160] Compiling MapboxDirections SilentWaypoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
16 |     This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 |     */
18 |     public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
   |                       |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 43 |          This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
 44 |          */
 45 |         public var segmentCongestionLevels: [CongestionLevel]?
    |                    `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
 46 |
 47 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 4 |  A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
 5 |  */
 6 | public enum CongestionLevel: String, Codable, CaseIterable {
   |             `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
 7 |     /**
 8 |      There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 71 |          The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
 72 |          */
 73 |         public var trafficTendencies: [TrafficTendency]?
    |                    `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
 74 |     }
 75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 5 | ///
 6 | /// New values could be introduced in the future without an API version change.
 7 | public enum TrafficTendency: Int, Codable, CaseIterable {
   |             `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
 8 |     /// Congestion tendency is unknown.
 9 |     case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |  Options determining the primary mode of transportation.
 5 |  */
 6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
   |               `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
 7 |     public init(rawValue: String) {
 8 |         self.rawValue = rawValue
   :
27 |      - note: This profile is not supported by `Isochrones` API.
28 |     */
29 |     public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
   |                       |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 39 |      The credentials used to make the request.
 40 |      */
 41 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 42 |
 43 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
117 |              Will update route annotations.
118 |              */
119 |             static public let annotations = PropertiesToMerge(rawValue: 1)
    |                               |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |             /**
121 |              Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
121 |              Will update route `Incidents`.
122 |              */
123 |             static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
    |                               |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 |             /**
125 |              Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
125 |              Will update route `Closures`.
126 |              */
127 |             static public let closures = PropertiesToMerge(rawValue: 1 << 2)
    |                               |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |             /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 |          Configuration for type of information to be merged during refreshing.
110 |          */
111 |         public struct PropertiesToMerge: OptionSet {
    |                       `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 |             public var rawValue: Int
113 |             public init(rawValue: Int) {
    :
130 |              Includes `annotations`, `incidents` and `closures`.
131 |              */
132 |             static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
    |                               |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |         }
134 |         /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 30 |      This property contains a maximum of two `Route`s.
 31 |      */
 32 |     public var routes: [Route]? {
    |                `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
 33 |         didSet {
 34 |             updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
 7 |  Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
 8 |  */
 9 | open class Route: DirectionsResult {
   |            `- note: class 'Route' does not conform to the 'Sendable' protocol
10 |     private enum CodingKeys: String, CodingKey, CaseIterable {
11 |         case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 41 |      This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
 42 |      */
 43 |     public let waypoints: [Waypoint]?
    |                `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
 44 |
 45 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
  7 |  A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
  8 |  */
  9 | public class Waypoint: Codable, ForeignMemberContainerClass {
    |              `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
 10 |     public var foreignMembers: JSONObject = [:]
 11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
  5 | #endif
  6 |
  7 | public enum ResponseOptions {
    |             `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
  8 |     case route(RouteOptions)
  9 |     case match(MatchOptions)
    :
 46 |      The criteria for the directions response.
 47 |      */
 48 |     public let options: ResponseOptions
    |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
 49 |
 50 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 51 |      The credentials used to make the request.
 52 |      */
 53 |     public let credentials: Credentials
    |                `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
 54 |
 55 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 85 |      Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
 86 |      */
 87 |     public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
    |                             `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
 88 | }
 89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 5 |  Exact `RoadClass` exclusion violation case.
 6 |  */
 7 | public struct RoadClassExclusionViolation {
   |               `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
 8 |     /**
 9 |      `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 216 |     // Unrecognized maneuver types are interpreted as turns.
 217 |     // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
 218 |     static let `default` = ManeuverType.turn
     |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 219 | }
 220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
  90 |  To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
  91 |  */
  92 | public enum ManeuverType: String, Codable {
     |             `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
  93 |     /**
  94 |      The step requires the user to depart from a waypoint.
     :
 435 |
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
     |             `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
 438 |         let maneuverDirection: ManeuverDirection?
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 222 |  A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
 223 |  */
 224 | public enum ManeuverDirection: String, Codable {
     |             `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
 225 |     /**
 226 |      The maneuver requires a sharp turn to the right.
     :
 436 |         let instructions: String
 437 |         let maneuverType: ManeuverType
 438 |         let maneuverDirection: ManeuverDirection?
     |             `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
 439 |         let maneuverLocation: Turf.LocationCoordinate2D
 440 |         let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |  A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
 15 |  */
 16 | public enum RouteShapeFormat: String, Codable {
    |             `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
 17 |     /**
 18 |      The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
    :
 34 |     case polyline6
 35 |
 36 |     static let `default` = RouteShapeFormat.polyline
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
[149/160] Compiling MapboxDirections MatchOptions.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[150/160] Compiling MapboxDirections Tracepoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[151/160] Compiling MapboxDirections MapboxStreetsRoadClass.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[152/160] Compiling MapboxDirections Matrix.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[153/160] Compiling MapboxDirections MatrixError.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[154/160] Compiling MapboxDirections MatrixOptions.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[155/160] Compiling MapboxDirections MatrixResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
[156/160] Compiling MapboxDirections OfflineDirections.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 43 |      To use this object, a Mapbox [access token](https://docs.mapbox.com/help/glossary/access-token/) should be specified in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 44 |      */
 45 |     public static let shared = Matrix()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Matrix' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |
 47 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:21: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:79:39: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             if let urlError = possibleError as? URLError {
 78 |                 DispatchQueue.main.async {
 79 |                     completionHandler(session, .failure(.network(urlError)))
    |                                       `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 }
 81 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:98:13: warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |  Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
  9 |  */
 10 | open class Matrix {
    |            `- note: class 'Matrix' does not conform to the 'Sendable' protocol
 11 |     /**
 12 |      A tuple type representing the matrix session that was generated from the request.
    :
 96 |             }
 97 |
 98 |             self.processingQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Matrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 do {
100 |                     let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:29: warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                             |- warning: capture of 'completionHandler' with non-sendable type 'Matrix.MatrixCompletionHandler' (aka '((options: MatrixOptions, credentials: Credentials), Result<MatrixResponse, MatrixError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/MatrixOptions.swift:7:14: note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  5 |  Options for calculating matrices from the Mapbox Matrix service.
  6 |  */
  7 | public class MatrixOptions: Codable {
    |              `- note: class 'MatrixOptions' does not conform to the 'Sendable' protocol
  8 |     // MARK: Creating a Matrix Options Object
  9 |
/host/spi-builder-workspace/Sources/MapboxDirections/Matrix.swift:106:47: warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 |
105 |                         DispatchQueue.main.async {
106 |                             completionHandler(session, .failure(apiError))
    |                                               `- warning: capture of 'session' with non-sendable type '(options: MatrixOptions, credentials: Credentials)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 |                         }
108 |                         return
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
 8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
 9 |
10 | public struct Credentials: Equatable {
   |               `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 |     /**
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:70:21: warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |             if let error = error {
 69 |                 DispatchQueue.main.async {
 70 |                     completionHandler(nil, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'OfflineVersionsHandler' (aka '(Optional<Array<String>>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                 }
 72 |                 return
/host/spi-builder-workspace/Sources/MapboxDirections/OfflineDirections.swift:113:17: warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |         let url = tilesURL(for: coordinateBounds, version: version)
112 |         let task: URLSessionDownloadTask = URLSession.shared.downloadTask(with: url) {
113 |                 completionHandler($0, $1, $2)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'OfflineDownloaderCompletionHandler' (aka '(Optional<URL>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |             }
115 |         task.resume()
BUILD FAILURE 6.0 linux