Build Information
Failed to build MapboxDirections, reference v2.14.0 (651232
), with Swift 6.0 for Linux on 5 Nov 2024 05:43:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
89 | The actual toll price in `currencyCode` currency.
/host/spi-builder-workspace/Sources/MapboxDirections/DrivingSide.swift:17:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DrivingSide' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A `DrivingSide` indicates which side of the road cars and traffic flow.
5 | */
6 | public enum DrivingSide: String, Codable {
| `- note: consider making enum 'DrivingSide' conform to the 'Sendable' protocol
7 | /**
8 | Indicates driving occurs on the `left` side.
:
15 | case right
16 |
17 | static let `default` = DrivingSide.right
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DrivingSide' 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
18 | }
19 |
[148/160] Compiling MapboxDirections Waypoint.swift
/host/spi-builder-workspace/Sources/MapboxDirections/TollCollection.swift:18:16: warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
8 | public var foreignMembers: JSONObject = [:]
9 |
10 | public enum CollectionType: String, Codable {
| `- note: consider making enum 'CollectionType' conform to the 'Sendable' protocol
11 | case booth = "toll_booth"
12 | case gantry = "toll_gantry"
:
16 | The type of the toll collection point.
17 | */
18 | public let type: CollectionType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'TollCollection' has non-sendable type 'TollCollection.CollectionType'; this is an error in the Swift 6 language mode
19 |
20 | /**
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:17:23: warning: static property 'electronicTollCollection' is not concurrency-safe because non-'Sendable' type 'TollPaymentMethod' may have shared mutable state; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
15 | Payment is done by electronic toll collection.
16 | */
17 | public static let electronicTollCollection = TollPaymentMethod(identifier: "etc")
| |- warning: static property 'electronicTollCollection' is not concurrency-safe because non-'Sendable' type 'TollPaymentMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'electronicTollCollection' 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
18 | /**
19 | Payment is done by cash.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:21:23: warning: static property 'cash' is not concurrency-safe because non-'Sendable' type 'TollPaymentMethod' may have shared mutable state; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
19 | Payment is done by cash.
20 | */
21 | public static let cash = TollPaymentMethod(identifier: "cash")
| |- warning: static property 'cash' is not concurrency-safe because non-'Sendable' type 'TollPaymentMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cash' 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
22 | }
23 |
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:39:23: warning: static property 'small' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
37 | In Japan, this is a [standard vehicle size](https://en.wikipedia.org/wiki/Expressways_of_Japan#Tolls).
38 | */
39 | public static let small = TollCategory(name: "small")
| |- warning: static property 'small' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'small' 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
40 | /**
41 | A standard sized vehicle.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:45:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
43 | In Japan, this is a [standard vehicle size](https://en.wikipedia.org/wiki/Expressways_of_Japan#Tolls).
44 | */
45 | public static let standard = TollCategory(name: "standard")
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /**
47 | A middle sized vehicle.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:51:23: warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
49 | In Japan, this is a [standard vehicle size](https://en.wikipedia.org/wiki/Expressways_of_Japan#Tolls).
50 | */
51 | public static let middle = TollCategory(name: "middle")
| |- warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'middle' 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
52 | /**
53 | A large sized vehicle.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:57:23: warning: static property 'large' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
55 | In Japan, this is a [standard vehicle size](https://en.wikipedia.org/wiki/Expressways_of_Japan#Tolls).
56 | */
57 | public static let large = TollCategory(name: "large")
| |- warning: static property 'large' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'large' 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
58 | /**
59 | A jumbo sized vehicle.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:63:23: warning: static property 'jumbo' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
61 | In Japan, this is a [standard vehicle size](https://en.wikipedia.org/wiki/Expressways_of_Japan#Tolls).
62 | */
63 | public static let jumbo = TollCategory(name: "jumbo")
| |- warning: static property 'jumbo' is not concurrency-safe because non-'Sendable' type 'TollCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jumbo' 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
64 | }
65 |
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:83:16: warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
6 | Information about toll payment method.
7 | */
8 | public struct TollPaymentMethod: Hashable, Equatable {
| `- note: consider making struct 'TollPaymentMethod' conform to the 'Sendable' protocol
9 | /**
10 | Method identifier.
:
81 | Information about toll payment.
82 | */
83 | public let paymentMethod: TollPaymentMethod
| `- warning: stored property 'paymentMethod' of 'Sendable'-conforming struct 'TollPrice' has non-sendable type 'TollPaymentMethod'; this is an error in the Swift 6 language mode
84 | /**
85 | Toll category information.
/host/spi-builder-workspace/Sources/MapboxDirections/TollPrice.swift:87:16: warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-sendable type 'TollCategory'; this is an error in the Swift 6 language mode
26 | Categories by which toll fees are divided.
27 | */
28 | public struct TollCategory: Hashable, Equatable {
| `- note: consider making struct 'TollCategory' conform to the 'Sendable' protocol
29 | /**
30 | Category name.
:
85 | Toll category information.
86 | */
87 | public let category: TollCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'TollPrice' has non-sendable type 'TollCategory'; this is an error in the Swift 6 language mode
88 | /**
89 | The actual toll price in `currencyCode` currency.
/host/spi-builder-workspace/Sources/MapboxDirections/DrivingSide.swift:17:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DrivingSide' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A `DrivingSide` indicates which side of the road cars and traffic flow.
5 | */
6 | public enum DrivingSide: String, Codable {
| `- note: consider making enum 'DrivingSide' conform to the 'Sendable' protocol
7 | /**
8 | Indicates driving occurs on the `left` side.
:
15 | case right
16 |
17 | static let `default` = DrivingSide.right
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DrivingSide' 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
18 | }
19 |
[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