Build Information
Failed to build MapboxDirections, reference main (0ca3c9
), with Swift 6.0 for Linux on 5 Nov 2024 05:42:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
10 | public var rawValue: Int
11 |
:
18 |
19 | /// Indicates a turn to the right.
20 | public static let right = LaneIndication(rawValue: 1 << 2)
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// Indicates a turn to the right.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:23:23: warning: static property 'slightRight' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
21 |
22 | /// Indicates a turn to the right.
23 | public static let slightRight = LaneIndication(rawValue: 1 << 3)
| |- warning: static property 'slightRight' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'slightRight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Indicates no turn.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:26:23: warning: static property 'straightAhead' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
24 |
25 | /// Indicates no turn.
26 | public static let straightAhead = LaneIndication(rawValue: 1 << 4)
| |- warning: static property 'straightAhead' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'straightAhead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Indicates a slight turn to the left.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:29:23: warning: static property 'slightLeft' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
27 |
28 | /// Indicates a slight turn to the left.
29 | public static let slightLeft = LaneIndication(rawValue: 1 << 5)
| |- warning: static property 'slightLeft' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'slightLeft' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Indicates a turn to the left.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:32:23: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
30 |
31 | /// Indicates a turn to the left.
32 | public static let left = LaneIndication(rawValue: 1 << 6)
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// Indicates a sharp turn to the left.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:35:23: warning: static property 'sharpLeft' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
33 |
34 | /// Indicates a sharp turn to the left.
35 | public static let sharpLeft = LaneIndication(rawValue: 1 << 7)
| |- warning: static property 'sharpLeft' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharpLeft' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Indicates a U-turn.
/host/spi-builder-workspace/Sources/MapboxDirections/LaneIndication.swift:38:23: warning: static property 'uTurn' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A Lane object has zero or more indications that usually correspond to arrows on signs or pavement markings. If no options are specified, it may be the case that no maneuvers are indicated on signage or pavement markings for the lane.
8 | */
9 | public struct LaneIndication: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'LaneIndication' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
36 |
37 | /// Indicates a U-turn.
38 | public static let uTurn = LaneIndication(rawValue: 1 << 8)
| |- warning: static property 'uTurn' is not concurrency-safe because non-'Sendable' type 'LaneIndication' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uTurn' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MapMatchingResponse.swift:21:16: warning: stored property 'matches' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type '[Match]?'; this is an error in the Swift 6 language mode
19 | An array of `Match` objects.
20 | */
21 | public var matches : [Match]?
| `- warning: stored property 'matches' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type '[Match]?'; this is an error in the Swift 6 language mode
22 |
23 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/Match.swift:45:12: note: class 'Match' does not conform to the 'Sendable' protocol
43 | Typically, you do not create instances of this class directly. Instead, you receive match objects when you pass a `MatchOptions` object into the `Directions.calculate(_:completionHandler:)` method.
44 | */
45 | open class Match: DirectionsResult {
| `- note: class 'Match' does not conform to the 'Sendable' protocol
46 | private enum CodingKeys: String, CodingKey, CaseIterable {
47 | case confidence
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MapMatchingResponse.swift:27:16: warning: stored property 'tracepoints' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type '[Tracepoint?]?'; this is an error in the Swift 6 language mode
25 | This property will be `nil` if a trace point is omitted by the Map Matching API because it is an outlier.
26 | */
27 | public var tracepoints: [Tracepoint?]?
| `- warning: stored property 'tracepoints' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type '[Tracepoint?]?'; this is an error in the Swift 6 language mode
28 |
29 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/Tracepoint.swift:7:14: note: class 'Tracepoint' does not conform to the 'Sendable' protocol
5 | A `Tracepoint` represents a location matched to the road network.
6 | */
7 | public class Tracepoint: Waypoint {
| `- note: class 'Tracepoint' does not conform to the 'Sendable' protocol
8 | /**
9 | Number of probable alternative matchings for this tracepoint. A value of zero indicates that this point was matched unambiguously.
/host/spi-builder-workspace/Sources/MapboxDirections/MapMatching/MapMatchingResponse.swift:32:16: warning: stored property 'options' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type 'MatchOptions'; this is an error in the Swift 6 language mode
30 | The criteria for the map matching response.
31 | */
32 | public let options: MatchOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type 'MatchOptions'; this is an error in the Swift 6 language mode
33 |
34 | /**
/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/MapMatching/MapMatchingResponse.swift:37:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
35 | The credentials used to make the request.
36 | */
37 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'MapMatchingResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
38 |
39 | /**
/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 | /**
[149/160] Compiling MapboxDirections RouteLeg.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[150/160] Compiling MapboxDirections RouteLegAttributes.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[151/160] Compiling MapboxDirections RouteOptions.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[152/160] Compiling MapboxDirections RouteRefreshResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[153/160] Compiling MapboxDirections RouteRefreshSource.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[154/160] Compiling MapboxDirections RouteResponse.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[155/160] Compiling MapboxDirections RouteStep.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[156/160] Compiling MapboxDirections SilentWaypoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:18:23: warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
16 | This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
17 | */
18 | public static let automobile: ProfileIdentifier = .init(rawValue: "mapbox/driving")
| |- warning: static property 'automobile' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:45:20: warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
43 | This property is set if the `RouteOptions.attributeOptions` property contains `AttributeOptions.congestionLevel`.
44 | */
45 | public var segmentCongestionLevels: [CongestionLevel]?
| `- warning: stored property 'segmentCongestionLevels' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[CongestionLevel]?'; this is an error in the Swift 6 language mode
46 |
47 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Congestion.swift:6:13: note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
4 | A `CongestionLevel` indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
5 | */
6 | public enum CongestionLevel: String, Codable, CaseIterable {
| `- note: consider making enum 'CongestionLevel' conform to the 'Sendable' protocol
7 | /**
8 | There is not enough data to determine the level of congestion along the road segment.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteLegAttributes.swift:73:20: warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
71 | The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc).
72 | */
73 | public var trafficTendencies: [TrafficTendency]?
| `- warning: stored property 'trafficTendencies' of 'Sendable'-conforming struct 'Attributes' has non-sendable type '[TrafficTendency]?'; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/MapboxDirections/TrafficTendency.swift:7:13: note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
5 | ///
6 | /// New values could be introduced in the future without an API version change.
7 | public enum TrafficTendency: Int, Codable, CaseIterable {
| `- note: consider making enum 'TrafficTendency' conform to the 'Sendable' protocol
8 | /// Congestion tendency is unknown.
9 | case unknown = 0
/host/spi-builder-workspace/Sources/MapboxDirections/ProfileIdentifier.swift:29:23: warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
4 | Options determining the primary mode of transportation.
5 | */
6 | public struct ProfileIdentifier: Codable, Hashable, RawRepresentable {
| `- note: consider making struct 'ProfileIdentifier' conform to the 'Sendable' protocol
7 | public init(rawValue: String) {
8 | self.rawValue = rawValue
:
27 | - note: This profile is not supported by `Isochrones` API.
28 | */
29 | public static let automobileAvoidingTraffic: ProfileIdentifier = .init(rawValue: "mapbox/driving-traffic")
| |- warning: static property 'automobileAvoidingTraffic' is not concurrency-safe because non-'Sendable' type 'ProfileIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'automobileAvoidingTraffic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:41:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
39 | The credentials used to make the request.
40 | */
41 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteRefreshResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
42 |
43 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:119:31: warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
117 | Will update route annotations.
118 | */
119 | static public let annotations = PropertiesToMerge(rawValue: 1)
| |- warning: static property 'annotations' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'annotations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /**
121 | Will update route `Incidents`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:123:31: warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
121 | Will update route `Incidents`.
122 | */
123 | static public let incidents = PropertiesToMerge(rawValue: 1 << 1)
| |- warning: static property 'incidents' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'incidents' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /**
125 | Will update route `Closures`.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:127:31: warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
125 | Will update route `Closures`.
126 | */
127 | static public let closures = PropertiesToMerge(rawValue: 1 << 2)
| |- warning: static property 'closures' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'closures' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteRefreshResponse.swift:132:31: warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
109 | Configuration for type of information to be merged during refreshing.
110 | */
111 | public struct PropertiesToMerge: OptionSet {
| `- note: consider making struct 'PropertiesToMerge' conform to the 'Sendable' protocol
112 | public var rawValue: Int
113 | public init(rawValue: Int) {
:
130 | Includes `annotations`, `incidents` and `closures`.
131 | */
132 | static public let everything: PropertiesToMerge = [PropertiesToMerge.annotations, PropertiesToMerge.closures, PropertiesToMerge.incidents]
| |- warning: static property 'everything' is not concurrency-safe because non-'Sendable' type 'Route.RefreshParameters.PropertiesToMerge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'everything' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:32:16: warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
30 | This property contains a maximum of two `Route`s.
31 | */
32 | public var routes: [Route]? {
| `- warning: stored property 'routes' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Route]?'; this is an error in the Swift 6 language mode
33 | didSet {
34 | updateRoadClassExclusionViolations()
/host/spi-builder-workspace/Sources/MapboxDirections/Route.swift:9:12: note: class 'Route' does not conform to the 'Sendable' protocol
7 | Typically, you do not create instances of this class directly. Instead, you receive route objects when you request directions using the `Directions.calculate(_:completionHandler:)` or `Directions.calculateRoutes(matching:completionHandler:)` method. However, if you use the `Directions.url(forCalculating:)` method instead, you can use `JSONDecoder` to convert the HTTP response into a `RouteResponse` or `MapMatchingResponse` object and access the `RouteResponse.routes` or `MapMatchingResponse.routes` property.
8 | */
9 | open class Route: DirectionsResult {
| `- note: class 'Route' does not conform to the 'Sendable' protocol
10 | private enum CodingKeys: String, CodingKey, CaseIterable {
11 | case tollPrices = "toll_costs"
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:43:16: warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
41 | This property omits the waypoint corresponding to any waypoint in `RouteOptions.waypoints` that has `Waypoint.separatesLegs` set to `true`.
42 | */
43 | public let waypoints: [Waypoint]?
| `- warning: stored property 'waypoints' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[Waypoint]?'; this is an error in the Swift 6 language mode
44 |
45 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Waypoint.swift:9:14: note: class 'Waypoint' does not conform to the 'Sendable' protocol
7 | A `Waypoint` object indicates a location along a route. It may be the route’s origin or destination, or it may be another location that the route visits. A waypoint object indicates the location’s geographic location along with other optional information, such as a name or the user’s direction approaching the waypoint. You create a `RouteOptions` object using waypoint objects and also receive waypoint objects in the completion handler of the `Directions.calculate(_:completionHandler:)` method.
8 | */
9 | public class Waypoint: Codable, ForeignMemberContainerClass {
| `- note: class 'Waypoint' does not conform to the 'Sendable' protocol
10 | public var foreignMembers: JSONObject = [:]
11 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:48:16: warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
5 | #endif
6 |
7 | public enum ResponseOptions {
| `- note: consider making enum 'ResponseOptions' conform to the 'Sendable' protocol
8 | case route(RouteOptions)
9 | case match(MatchOptions)
:
46 | The criteria for the directions response.
47 | */
48 | public let options: ResponseOptions
| `- warning: stored property 'options' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'ResponseOptions'; this is an error in the Swift 6 language mode
49 |
50 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:53:16: warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
51 | The credentials used to make the request.
52 | */
53 | public let credentials: Credentials
| `- warning: stored property 'credentials' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type 'Credentials'; this is an error in the Swift 6 language mode
54 |
55 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/Credentials.swift:10:15: note: consider making struct 'Credentials' conform to the 'Sendable' protocol
8 | let defaultApiEndPointURLString = Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAPIBaseURL") as? String
9 |
10 | public struct Credentials: Equatable {
| `- note: consider making struct 'Credentials' conform to the 'Sendable' protocol
11 |
12 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/RouteResponse.swift:87:29: warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
85 | Violations are ordered by routes from the `routes` array, then by a leg, step, and intersection, where `RoadClasses` restrictions were ignored. `nil` and empty return arrays correspond to `nil` and empty `routes` array respectively.
86 | */
87 | public private(set) var roadClassExclusionViolations: [RoadClassExclusionViolation]?
| `- warning: stored property 'roadClassExclusionViolations' of 'Sendable'-conforming struct 'RouteResponse' has non-sendable type '[RoadClassExclusionViolation]?'; this is an error in the Swift 6 language mode
88 | }
89 |
/host/spi-builder-workspace/Sources/MapboxDirections/RoadClassExclusionViolation.swift:7:15: note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
5 | Exact `RoadClass` exclusion violation case.
6 | */
7 | public struct RoadClassExclusionViolation {
| `- note: consider making struct 'RoadClassExclusionViolation' conform to the 'Sendable' protocol
8 | /**
9 | `RoadClasses` that were violated at this point.
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:218:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
216 | // Unrecognized maneuver types are interpreted as turns.
217 | // http://project-osrm.org/docs/v5.5.1/api/#stepmaneuver-object
218 | static let `default` = ManeuverType.turn
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ManeuverType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | }
220 |
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:437:13: warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
90 | To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
91 | */
92 | public enum ManeuverType: String, Codable {
| `- note: consider making enum 'ManeuverType' conform to the 'Sendable' protocol
93 | /**
94 | The step requires the user to depart from a waypoint.
:
435 |
436 | let instructions: String
437 | let maneuverType: ManeuverType
| `- warning: stored property 'maneuverType' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverType'; this is an error in the Swift 6 language mode
438 | let maneuverDirection: ManeuverDirection?
439 | let maneuverLocation: Turf.LocationCoordinate2D
/host/spi-builder-workspace/Sources/MapboxDirections/RouteStep.swift:438:13: warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
222 | A `ManeuverDirection` clarifies a `ManeuverType` with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the `ManeuverType` documentation for details.
223 | */
224 | public enum ManeuverDirection: String, Codable {
| `- note: consider making enum 'ManeuverDirection' conform to the 'Sendable' protocol
225 | /**
226 | The maneuver requires a sharp turn to the right.
:
436 | let instructions: String
437 | let maneuverType: ManeuverType
438 | let maneuverDirection: ManeuverDirection?
| `- warning: stored property 'maneuverDirection' of 'Sendable'-conforming struct 'Maneuver' has non-sendable type 'ManeuverDirection?'; this is an error in the Swift 6 language mode
439 | let maneuverLocation: Turf.LocationCoordinate2D
440 | let initialHeading: Turf.LocationDirection?
/host/spi-builder-workspace/Sources/MapboxDirections/DirectionsOptions.swift:36:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
14 | A `RouteShapeFormat` indicates the format of a route or match shape in the raw HTTP response.
15 | */
16 | public enum RouteShapeFormat: String, Codable {
| `- note: consider making enum 'RouteShapeFormat' conform to the 'Sendable' protocol
17 | /**
18 | The route’s shape is delivered in [GeoJSON](http://geojson.org/) format.
:
34 | case polyline6
35 |
36 | static let `default` = RouteShapeFormat.polyline
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RouteShapeFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
BUILD FAILURE 6.0 linux