Build Information
Failed to build MapboxDirections, reference v2.15.0 (91fea2), with Swift 6.3 for Linux on 25 Aug 2026 13:54:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
39 |
40 | private enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Sources/MapboxDirections/Amenity.swift:7:15: note: consider making struct 'Amenity' conform to the 'Sendable' protocol
5 | Provides information about amenity that is available at a given `RestStop`.
6 | */
7 | public struct Amenity: Codable, Equatable {
| `- note: consider making struct 'Amenity' conform to the 'Sendable' protocol
8 |
9 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains 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/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[129/172] Compiling MapboxDirections AdministrativeRegion.swift
[130/172] Compiling MapboxDirections Amenity.swift
[131/172] Compiling MapboxDirections AmenityType.swift
[132/172] Compiling MapboxDirections AttributeOptions.swift
[133/172] Compiling MapboxDirections BlockedLanes.swift
[134/172] Compiling MapboxDirections Congestion.swift
[135/172] Compiling MapboxDirections Credentials.swift
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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/Directions.swift:144:51: warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
142 | do {
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
| `- warning: type 'RouteOptions' does not conform to the 'Sendable' protocol
145 | .credentials: self.credentials]
146 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteOptions.swift:12:12: note: class 'RouteOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class RouteOptions: DirectionsOptions {
| `- note: class 'RouteOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Route Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:145:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
143 | let decoder = JSONDecoder()
144 | decoder.userInfo = [.options: options,
145 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
146 |
147 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/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/Directions.swift:232:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
230 | do {
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
233 | .credentials: self.credentials]
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:233:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
231 | let decoder = JSONDecoder()
232 | decoder.userInfo = [.options: options,
233 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
234 | guard let disposition = try? decoder.decode(ResponseDisposition.self, from: data) else {
235 | let apiError = DirectionsError(code: nil, message: nil, response: possibleResponse, underlyingError: possibleError)
/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/Directions.swift:317:51: warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
315 | do {
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
| `- warning: type 'MatchOptions' does not conform to the 'Sendable' protocol
318 | .credentials: self.credentials]
319 |
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MatchOptions.swift:12:12: note: class 'MatchOptions' does not conform to the 'Sendable' protocol
10 | Pass an instance of this class into the `Directions.calculate(_:completionHandler:)` method.
11 | */
12 | open class MatchOptions: DirectionsOptions {
| `- note: class 'MatchOptions' does not conform to the 'Sendable' protocol
13 | // MARK: Creating a Match Options Object
14 |
/host/spi-builder-workspace/Sources/MapboxDirections/Directions.swift:318:60: warning: type 'Credentials' does not conform to the 'Sendable' protocol
316 | let decoder = JSONDecoder()
317 | decoder.userInfo = [.options: options,
318 | .credentials: self.credentials]
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
319 |
320 |
/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/Directions.swift:443:44: warning: type 'Credentials' does not conform to the 'Sendable' protocol
441 | .routeIndex: routeIndex,
442 | .startLegIndex: startLegIndex,
443 | .credentials: self.credentials,
| `- warning: type 'Credentials' does not conform to the 'Sendable' protocol
444 | ]
445 |
/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 | /**
[153/173] Compiling MapboxDirections SpokenInstruction.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[154/173] Compiling MapboxDirections TollCollection.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[155/173] Compiling MapboxDirections TollPrice.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[156/173] Compiling MapboxDirections TrafficTendency.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[157/173] Compiling MapboxDirections VisualInstruction.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[158/173] Compiling MapboxDirections VisualInstructionBanner.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[159/173] Compiling MapboxDirections VisualInstructionComponent.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[160/173] Compiling MapboxDirections Waypoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-Sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-Sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
[160/173] Wrapping AST for ArgumentParser for debugging
[162/173] Compiling MapboxDirections RouteLeg.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[163/173] Compiling MapboxDirections RouteLegAttributes.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[164/173] Compiling MapboxDirections RouteOptions.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[165/173] Compiling MapboxDirections RouteRefreshResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[166/173] Compiling MapboxDirections RouteRefreshSource.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[167/173] Compiling MapboxDirections RouteResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[168/173] Compiling MapboxDirections RouteStep.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
[169/173] Compiling MapboxDirections SilentWaypoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' contains 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' contains 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' contains 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' contains 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/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/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' contains 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' contains 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' contains 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' contains 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' contains 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' contains 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: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' contains 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' contains non-Sendable type 'ManeuverDirection'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
BUILD FAILURE 6.3 linux