Build Information
Successful build of SwiftLocation, reference 5.1.0 (f8ec8e
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 19:39:38 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
36 |
37 | /// Store
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:44:10: warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
42 | /// - `invalidPolygon`: invalid polygon passed.
43 | public enum LocationError: LocalizedError, Equatable {
44 | case discardedData(DataDiscardReason)
| `- warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
45 | case timeout
46 | case generic(Error)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:108:13: note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
106 | /// - `requestNotEnabled`: request is not enabled.
107 | /// - `generic`: generic error.
108 | public enum DataDiscardReason: CustomStringConvertible {
| `- note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
109 | case notMinAccuracy
110 | case notMinDistance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:122:20: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// enable or disable logger.
122 | static var isEnabled = true
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | /// Queue.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:125:28: warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Queue.
125 | private static var queue = DispatchQueue(label: "locator.logger", qos: .background)
| |- warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'queue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | /// Log a message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:35:12: warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Shortcut
35 | public let SwiftLocation = LocationManager.shared
| |- warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SwiftLocation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
35 | public let SwiftLocation = LocationManager.shared
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
:
56 |
57 | /// Shared instance.
58 | public static let shared = LocationManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// Credentials storage.
[5/56] Compiling SwiftLocation GeocoderRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/GeocoderServiceProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - GeocoderServiceProtocol
29 |
30 | public protocol GeocoderServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | /// Timeout interval for request. `nil` to ignore it.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:225:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
217 | /// - `geometricCenter`: returns only geometric centers of a location such as a polyline (for example, a street) or polygon (region).
218 | /// - `approximate`: returns only the addresses that are characterized as approximate.
219 | enum LocationTypes: String, Codable, CustomStringConvertible {
| `- note: consider making enum 'LocationTypes' conform to the 'Sendable' protocol
220 | case rooftop = "ROOFTOP"
221 | case rangeInterpolated = "RANGE_INTERPOLATED"
:
223 | case approximate = "APPROXIMATE"
224 |
225 | public static let all: [LocationTypes] = [.rooftop, .rangeInterpolated, .geometricCenter, approximate]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 |
227 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:243:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
236 | /// - `locality`: matches against locality and sublocality types.
237 | /// - `administrativeArea` matches all the administrative_area levels.
238 | enum FilterTypes: String, CustomStringConvertible {
| `- note: consider making enum 'FilterTypes' conform to the 'Sendable' protocol
239 | case route = "route"
240 | case locality = "locality"
241 | case administrativeArea = "administrative_area"
242 |
243 | public static let all: [FilterTypes] = [.route, .locality, .administrativeArea]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Here.swift:66:17: warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
64 | "APIKey": APIKey.trunc(length: 5),
65 | "timeout": timeout,
66 | "locale": locale ?? "",
| |- warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
| `- note: duplicate key declared here
67 | "limit": limit ?? "",
68 | "locale": locale ?? "",
| `- note: duplicate key declared here
69 | "limitToCountries": countryCodes ?? "",
70 | "proximityCoordinates": proximityCoordinates?.description ?? ""
[6/56] Compiling SwiftLocation GeocoderServiceProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/GeocoderServiceProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - GeocoderServiceProtocol
29 |
30 | public protocol GeocoderServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | /// Timeout interval for request. `nil` to ignore it.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:225:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
217 | /// - `geometricCenter`: returns only geometric centers of a location such as a polyline (for example, a street) or polygon (region).
218 | /// - `approximate`: returns only the addresses that are characterized as approximate.
219 | enum LocationTypes: String, Codable, CustomStringConvertible {
| `- note: consider making enum 'LocationTypes' conform to the 'Sendable' protocol
220 | case rooftop = "ROOFTOP"
221 | case rangeInterpolated = "RANGE_INTERPOLATED"
:
223 | case approximate = "APPROXIMATE"
224 |
225 | public static let all: [LocationTypes] = [.rooftop, .rangeInterpolated, .geometricCenter, approximate]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 |
227 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:243:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
236 | /// - `locality`: matches against locality and sublocality types.
237 | /// - `administrativeArea` matches all the administrative_area levels.
238 | enum FilterTypes: String, CustomStringConvertible {
| `- note: consider making enum 'FilterTypes' conform to the 'Sendable' protocol
239 | case route = "route"
240 | case locality = "locality"
241 | case administrativeArea = "administrative_area"
242 |
243 | public static let all: [FilterTypes] = [.route, .locality, .administrativeArea]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Here.swift:66:17: warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
64 | "APIKey": APIKey.trunc(length: 5),
65 | "timeout": timeout,
66 | "locale": locale ?? "",
| |- warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
| `- note: duplicate key declared here
67 | "limit": limit ?? "",
68 | "locale": locale ?? "",
| `- note: duplicate key declared here
69 | "limitToCountries": countryCodes ?? "",
70 | "proximityCoordinates": proximityCoordinates?.description ?? ""
[7/56] Compiling SwiftLocation Geocoder-Apple.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/GeocoderServiceProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - GeocoderServiceProtocol
29 |
30 | public protocol GeocoderServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | /// Timeout interval for request. `nil` to ignore it.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:225:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
217 | /// - `geometricCenter`: returns only geometric centers of a location such as a polyline (for example, a street) or polygon (region).
218 | /// - `approximate`: returns only the addresses that are characterized as approximate.
219 | enum LocationTypes: String, Codable, CustomStringConvertible {
| `- note: consider making enum 'LocationTypes' conform to the 'Sendable' protocol
220 | case rooftop = "ROOFTOP"
221 | case rangeInterpolated = "RANGE_INTERPOLATED"
:
223 | case approximate = "APPROXIMATE"
224 |
225 | public static let all: [LocationTypes] = [.rooftop, .rangeInterpolated, .geometricCenter, approximate]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 |
227 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:243:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
236 | /// - `locality`: matches against locality and sublocality types.
237 | /// - `administrativeArea` matches all the administrative_area levels.
238 | enum FilterTypes: String, CustomStringConvertible {
| `- note: consider making enum 'FilterTypes' conform to the 'Sendable' protocol
239 | case route = "route"
240 | case locality = "locality"
241 | case administrativeArea = "administrative_area"
242 |
243 | public static let all: [FilterTypes] = [.route, .locality, .administrativeArea]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Here.swift:66:17: warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
64 | "APIKey": APIKey.trunc(length: 5),
65 | "timeout": timeout,
66 | "locale": locale ?? "",
| |- warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
| `- note: duplicate key declared here
67 | "limit": limit ?? "",
68 | "locale": locale ?? "",
| `- note: duplicate key declared here
69 | "limitToCountries": countryCodes ?? "",
70 | "proximityCoordinates": proximityCoordinates?.description ?? ""
[8/56] Compiling SwiftLocation Geocoder-Google.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/GeocoderServiceProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - GeocoderServiceProtocol
29 |
30 | public protocol GeocoderServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | /// Timeout interval for request. `nil` to ignore it.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:225:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
217 | /// - `geometricCenter`: returns only geometric centers of a location such as a polyline (for example, a street) or polygon (region).
218 | /// - `approximate`: returns only the addresses that are characterized as approximate.
219 | enum LocationTypes: String, Codable, CustomStringConvertible {
| `- note: consider making enum 'LocationTypes' conform to the 'Sendable' protocol
220 | case rooftop = "ROOFTOP"
221 | case rangeInterpolated = "RANGE_INTERPOLATED"
:
223 | case approximate = "APPROXIMATE"
224 |
225 | public static let all: [LocationTypes] = [.rooftop, .rangeInterpolated, .geometricCenter, approximate]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 |
227 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:243:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
236 | /// - `locality`: matches against locality and sublocality types.
237 | /// - `administrativeArea` matches all the administrative_area levels.
238 | enum FilterTypes: String, CustomStringConvertible {
| `- note: consider making enum 'FilterTypes' conform to the 'Sendable' protocol
239 | case route = "route"
240 | case locality = "locality"
241 | case administrativeArea = "administrative_area"
242 |
243 | public static let all: [FilterTypes] = [.route, .locality, .administrativeArea]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Here.swift:66:17: warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
64 | "APIKey": APIKey.trunc(length: 5),
65 | "timeout": timeout,
66 | "locale": locale ?? "",
| |- warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
| `- note: duplicate key declared here
67 | "limit": limit ?? "",
68 | "locale": locale ?? "",
| `- note: duplicate key declared here
69 | "limitToCountries": countryCodes ?? "",
70 | "proximityCoordinates": proximityCoordinates?.description ?? ""
[9/56] Compiling SwiftLocation Geocoder-Here.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/GeocoderServiceProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - GeocoderServiceProtocol
29 |
30 | public protocol GeocoderServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | /// Timeout interval for request. `nil` to ignore it.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:225:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
217 | /// - `geometricCenter`: returns only geometric centers of a location such as a polyline (for example, a street) or polygon (region).
218 | /// - `approximate`: returns only the addresses that are characterized as approximate.
219 | enum LocationTypes: String, Codable, CustomStringConvertible {
| `- note: consider making enum 'LocationTypes' conform to the 'Sendable' protocol
220 | case rooftop = "ROOFTOP"
221 | case rangeInterpolated = "RANGE_INTERPOLATED"
:
223 | case approximate = "APPROXIMATE"
224 |
225 | public static let all: [LocationTypes] = [.rooftop, .rangeInterpolated, .geometricCenter, approximate]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.LocationTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 |
227 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Google.swift:243:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
236 | /// - `locality`: matches against locality and sublocality types.
237 | /// - `administrativeArea` matches all the administrative_area levels.
238 | enum FilterTypes: String, CustomStringConvertible {
| `- note: consider making enum 'FilterTypes' conform to the 'Sendable' protocol
239 | case route = "route"
240 | case locality = "locality"
241 | case administrativeArea = "administrative_area"
242 |
243 | public static let all: [FilterTypes] = [.route, .locality, .administrativeArea]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.Google.FilterTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-Here.swift:66:17: warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
64 | "APIKey": APIKey.trunc(length: 5),
65 | "timeout": timeout,
66 | "locale": locale ?? "",
| |- warning: dictionary literal of type '[String : Any?]' has duplicate entries for string literal key 'locale'
| `- note: duplicate key declared here
67 | "limit": limit ?? "",
68 | "locale": locale ?? "",
| `- note: duplicate key declared here
69 | "limitToCountries": countryCodes ?? "",
70 | "proximityCoordinates": proximityCoordinates?.description ?? ""
[10/56] Compiling SwiftLocation IPLocationRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:39:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
37 | }
38 |
39 | public protocol IPServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
40 |
41 | /// Decoder userd to read data from service.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:115:65: warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
28 | internal let IPServiceDecoder = CodingUserInfoKey(rawValue: "decoder")!
29 |
30 | public enum IPServiceDecoders: String, CaseIterable {
| `- note: consider making enum 'IPServiceDecoders' conform to the 'Sendable' protocol
31 | case ipstack // IPStackService
32 | case ipdata // IPDataService
:
113 | do {
114 | let decoder = JSONDecoder()
115 | decoder.userInfo = [IPServiceDecoder : self.jsonServiceDecoder]
| `- warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
116 | let location = try decoder.decode(IPLocation.Data.self, from: data)
117 | completion(.success(location))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:95:34: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
93 | let request = try buildRequest()
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
96 | completion(.failure(.cancelled))
97 | return
SwiftLocation.IPServiceProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol IPServiceProtocol {
2 | Self : SwiftLocation.IPServiceProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:96:21: warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
96 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | return
98 | }
[11/56] Compiling SwiftLocation IPServiceProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:39:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
37 | }
38 |
39 | public protocol IPServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
40 |
41 | /// Decoder userd to read data from service.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:115:65: warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
28 | internal let IPServiceDecoder = CodingUserInfoKey(rawValue: "decoder")!
29 |
30 | public enum IPServiceDecoders: String, CaseIterable {
| `- note: consider making enum 'IPServiceDecoders' conform to the 'Sendable' protocol
31 | case ipstack // IPStackService
32 | case ipdata // IPDataService
:
113 | do {
114 | let decoder = JSONDecoder()
115 | decoder.userInfo = [IPServiceDecoder : self.jsonServiceDecoder]
| `- warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
116 | let location = try decoder.decode(IPLocation.Data.self, from: data)
117 | completion(.success(location))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:95:34: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
93 | let request = try buildRequest()
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
96 | completion(.failure(.cancelled))
97 | return
SwiftLocation.IPServiceProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol IPServiceProtocol {
2 | Self : SwiftLocation.IPServiceProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:96:21: warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
96 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | return
98 | }
[12/56] Compiling SwiftLocation IPLocation-IPApi.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:39:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
37 | }
38 |
39 | public protocol IPServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
40 |
41 | /// Decoder userd to read data from service.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:115:65: warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
28 | internal let IPServiceDecoder = CodingUserInfoKey(rawValue: "decoder")!
29 |
30 | public enum IPServiceDecoders: String, CaseIterable {
| `- note: consider making enum 'IPServiceDecoders' conform to the 'Sendable' protocol
31 | case ipstack // IPStackService
32 | case ipdata // IPDataService
:
113 | do {
114 | let decoder = JSONDecoder()
115 | decoder.userInfo = [IPServiceDecoder : self.jsonServiceDecoder]
| `- warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
116 | let location = try decoder.decode(IPLocation.Data.self, from: data)
117 | completion(.success(location))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:95:34: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
93 | let request = try buildRequest()
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
96 | completion(.failure(.cancelled))
97 | return
SwiftLocation.IPServiceProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol IPServiceProtocol {
2 | Self : SwiftLocation.IPServiceProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:96:21: warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
96 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | return
98 | }
[13/56] Compiling SwiftLocation IPLocation-IPData.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:39:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
37 | }
38 |
39 | public protocol IPServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
40 |
41 | /// Decoder userd to read data from service.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:115:65: warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
28 | internal let IPServiceDecoder = CodingUserInfoKey(rawValue: "decoder")!
29 |
30 | public enum IPServiceDecoders: String, CaseIterable {
| `- note: consider making enum 'IPServiceDecoders' conform to the 'Sendable' protocol
31 | case ipstack // IPStackService
32 | case ipdata // IPDataService
:
113 | do {
114 | let decoder = JSONDecoder()
115 | decoder.userInfo = [IPServiceDecoder : self.jsonServiceDecoder]
| `- warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
116 | let location = try decoder.decode(IPLocation.Data.self, from: data)
117 | completion(.success(location))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:95:34: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
93 | let request = try buildRequest()
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
96 | completion(.failure(.cancelled))
97 | return
SwiftLocation.IPServiceProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol IPServiceProtocol {
2 | Self : SwiftLocation.IPServiceProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:96:21: warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
96 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | return
98 | }
[14/56] Compiling SwiftLocation IPLocation-IPGeolocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:39:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
37 | }
38 |
39 | public protocol IPServiceProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
40 |
41 | /// Decoder userd to read data from service.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:115:65: warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
28 | internal let IPServiceDecoder = CodingUserInfoKey(rawValue: "decoder")!
29 |
30 | public enum IPServiceDecoders: String, CaseIterable {
| `- note: consider making enum 'IPServiceDecoders' conform to the 'Sendable' protocol
31 | case ipstack // IPStackService
32 | case ipdata // IPDataService
:
113 | do {
114 | let decoder = JSONDecoder()
115 | decoder.userInfo = [IPServiceDecoder : self.jsonServiceDecoder]
| `- warning: type 'IPServiceDecoders' does not conform to the 'Sendable' protocol
116 | let location = try decoder.decode(IPLocation.Data.self, from: data)
117 | completion(.success(location))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:95:34: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
93 | let request = try buildRequest()
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
96 | completion(.failure(.cancelled))
97 | return
SwiftLocation.IPServiceProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol IPServiceProtocol {
2 | Self : SwiftLocation.IPServiceProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/IPLocation/IPServiceProtocol.swift:96:21: warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
94 | self.task = session.dataTask(with: request) { [weak self] (data, response, error) in
95 | guard let self = self, self.isCancelled == false else {
96 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<IPLocation.Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | return
98 | }
[15/56] Compiling SwiftLocation PartialAddressMatch+Google.swift
[16/56] Compiling SwiftLocation PartialAddressMatch+Here.swift
[17/56] Compiling SwiftLocation PartialAddressMatch.swift
[18/56] Compiling SwiftLocation GeoLocation+Apple.swift
[19/56] Compiling SwiftLocation GeoLocation+Google.swift
[20/56] Compiling SwiftLocation RequestProtocol+Support.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol.swift:32:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - RequestProtocol
31 |
32 | public protocol RequestProtocol: class, Hashable, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | associatedtype ProducedData
34 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/AutocompleteProtocol.swift:32:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - AutocompleteProtocol
31 |
32 | public protocol AutocompleteProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 |
34 | /// Execute the search.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:195:27: warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
194 | /// Value indicating that address completions should be included in results.
195 | public static let address = ResultType(rawValue: 1 << 0)
| |- warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'address' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 | // Value indicating that point of interest completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:199:27: warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
197 | // Value indicating that point of interest completions should be included in results.
198 | // NOTE: It will be ignored with iOS < 13
199 | public static let pointOfInterest = ResultType(rawValue: 1 << 1)
| |- warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointOfInterest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |
201 | /// Value indicating that query completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:202:27: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
200 |
201 | /// Value indicating that query completions should be included in results.
202 | public static let query = ResultType(rawValue: 1 << 2)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:204:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
202 | public static let query = ResultType(rawValue: 1 << 2)
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 |
206 | public var allSelected: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:233:62: warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
231 | }
232 |
233 | private func filterTypes() -> MKLocalSearchCompleter.FilterType {
| `- warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
234 | if contains(.query) {
235 | return .locationsAndQueries
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:155:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
153 | fullQuerySearcher = MKLocalSearch(request: request)
154 | fullQuerySearcher?.start(completionHandler: { [weak self] (response, error) in
155 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 |
157 | if let error = error {
[21/56] Compiling SwiftLocation RequestProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol.swift:32:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - RequestProtocol
31 |
32 | public protocol RequestProtocol: class, Hashable, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | associatedtype ProducedData
34 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/AutocompleteProtocol.swift:32:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - AutocompleteProtocol
31 |
32 | public protocol AutocompleteProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 |
34 | /// Execute the search.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:195:27: warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
194 | /// Value indicating that address completions should be included in results.
195 | public static let address = ResultType(rawValue: 1 << 0)
| |- warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'address' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 | // Value indicating that point of interest completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:199:27: warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
197 | // Value indicating that point of interest completions should be included in results.
198 | // NOTE: It will be ignored with iOS < 13
199 | public static let pointOfInterest = ResultType(rawValue: 1 << 1)
| |- warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointOfInterest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |
201 | /// Value indicating that query completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:202:27: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
200 |
201 | /// Value indicating that query completions should be included in results.
202 | public static let query = ResultType(rawValue: 1 << 2)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:204:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
202 | public static let query = ResultType(rawValue: 1 << 2)
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 |
206 | public var allSelected: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:233:62: warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
231 | }
232 |
233 | private func filterTypes() -> MKLocalSearchCompleter.FilterType {
| `- warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
234 | if contains(.query) {
235 | return .locationsAndQueries
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:155:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
153 | fullQuerySearcher = MKLocalSearch(request: request)
154 | fullQuerySearcher?.start(completionHandler: { [weak self] (response, error) in
155 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 |
157 | if let error = error {
[22/56] Compiling SwiftLocation AutocompleteProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol.swift:32:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - RequestProtocol
31 |
32 | public protocol RequestProtocol: class, Hashable, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | associatedtype ProducedData
34 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/AutocompleteProtocol.swift:32:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - AutocompleteProtocol
31 |
32 | public protocol AutocompleteProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 |
34 | /// Execute the search.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:195:27: warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
194 | /// Value indicating that address completions should be included in results.
195 | public static let address = ResultType(rawValue: 1 << 0)
| |- warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'address' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 | // Value indicating that point of interest completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:199:27: warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
197 | // Value indicating that point of interest completions should be included in results.
198 | // NOTE: It will be ignored with iOS < 13
199 | public static let pointOfInterest = ResultType(rawValue: 1 << 1)
| |- warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointOfInterest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |
201 | /// Value indicating that query completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:202:27: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
200 |
201 | /// Value indicating that query completions should be included in results.
202 | public static let query = ResultType(rawValue: 1 << 2)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:204:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
202 | public static let query = ResultType(rawValue: 1 << 2)
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 |
206 | public var allSelected: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:233:62: warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
231 | }
232 |
233 | private func filterTypes() -> MKLocalSearchCompleter.FilterType {
| `- warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
234 | if contains(.query) {
235 | return .locationsAndQueries
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:155:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
153 | fullQuerySearcher = MKLocalSearch(request: request)
154 | fullQuerySearcher?.start(completionHandler: { [weak self] (response, error) in
155 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 |
157 | if let error = error {
[23/56] Compiling SwiftLocation AutocompleteRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol.swift:32:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - RequestProtocol
31 |
32 | public protocol RequestProtocol: class, Hashable, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | associatedtype ProducedData
34 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/AutocompleteProtocol.swift:32:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - AutocompleteProtocol
31 |
32 | public protocol AutocompleteProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 |
34 | /// Execute the search.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:195:27: warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
194 | /// Value indicating that address completions should be included in results.
195 | public static let address = ResultType(rawValue: 1 << 0)
| |- warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'address' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 | // Value indicating that point of interest completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:199:27: warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
197 | // Value indicating that point of interest completions should be included in results.
198 | // NOTE: It will be ignored with iOS < 13
199 | public static let pointOfInterest = ResultType(rawValue: 1 << 1)
| |- warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointOfInterest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |
201 | /// Value indicating that query completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:202:27: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
200 |
201 | /// Value indicating that query completions should be included in results.
202 | public static let query = ResultType(rawValue: 1 << 2)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:204:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
202 | public static let query = ResultType(rawValue: 1 << 2)
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 |
206 | public var allSelected: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:233:62: warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
231 | }
232 |
233 | private func filterTypes() -> MKLocalSearchCompleter.FilterType {
| `- warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
234 | if contains(.query) {
235 | return .locationsAndQueries
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:155:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
153 | fullQuerySearcher = MKLocalSearch(request: request)
154 | fullQuerySearcher?.start(completionHandler: { [weak self] (response, error) in
155 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 |
157 | if let error = error {
[24/56] Compiling SwiftLocation Autocomplete-Apple.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol.swift:32:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - RequestProtocol
31 |
32 | public protocol RequestProtocol: class, Hashable, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | associatedtype ProducedData
34 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/AutocompleteProtocol.swift:32:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
30 | // MARK: - AutocompleteProtocol
31 |
32 | public protocol AutocompleteProtocol: class, CustomStringConvertible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 |
34 | /// Execute the search.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:195:27: warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
194 | /// Value indicating that address completions should be included in results.
195 | public static let address = ResultType(rawValue: 1 << 0)
| |- warning: static property 'address' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'address' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 | // Value indicating that point of interest completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:199:27: warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
197 | // Value indicating that point of interest completions should be included in results.
198 | // NOTE: It will be ignored with iOS < 13
199 | public static let pointOfInterest = ResultType(rawValue: 1 << 1)
| |- warning: static property 'pointOfInterest' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointOfInterest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |
201 | /// Value indicating that query completions should be included in results.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:202:27: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
200 |
201 | /// Value indicating that query completions should be included in results.
202 | public static let query = ResultType(rawValue: 1 << 2)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:204:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
189 | extension Autocomplete.Apple {
190 |
191 | public struct ResultType: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'ResultType' conform to the 'Sendable' protocol
192 | public var rawValue: Int
193 |
:
202 | public static let query = ResultType(rawValue: 1 << 2)
203 |
204 | public static let all : ResultType = [.address, .pointOfInterest, .query]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Autocomplete.Apple.ResultType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 |
206 | public var allSelected: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:233:62: warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
231 | }
232 |
233 | private func filterTypes() -> MKLocalSearchCompleter.FilterType {
| `- warning: 'FilterType' was deprecated in macOS 10.15: Use MKLocalSearchCompleterResultType
234 | if contains(.query) {
235 | return .locationsAndQueries
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift:155:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
153 | fullQuerySearcher = MKLocalSearch(request: request)
154 | fullQuerySearcher?.start(completionHandler: { [weak self] (response, error) in
155 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 |
157 | if let error = error {
[25/56] Compiling SwiftLocation Geocoder-MapBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-MapBox.swift:288:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
275 |
276 | /// Filter results to include only a subset (one or more) of the available feature types.
277 | enum ResultTypes: String, CustomStringConvertible {
| `- note: consider making enum 'ResultTypes' conform to the 'Sendable' protocol
278 | case country,
279 | region,
:
286 | poi
287 |
288 | public static let all: [ResultTypes] = [.country, .region, .postcode, .district, .place, .locality, .neighborhood, .address, .poi]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | public var description: String {
[26/56] Compiling SwiftLocation Geocoder-OpenStreet.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-MapBox.swift:288:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
275 |
276 | /// Filter results to include only a subset (one or more) of the available feature types.
277 | enum ResultTypes: String, CustomStringConvertible {
| `- note: consider making enum 'ResultTypes' conform to the 'Sendable' protocol
278 | case country,
279 | region,
:
286 | poi
287 |
288 | public static let all: [ResultTypes] = [.country, .region, .postcode, .district, .place, .locality, .neighborhood, .address, .poi]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | public var description: String {
[27/56] Compiling SwiftLocation GeofencingOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-MapBox.swift:288:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
275 |
276 | /// Filter results to include only a subset (one or more) of the available feature types.
277 | enum ResultTypes: String, CustomStringConvertible {
| `- note: consider making enum 'ResultTypes' conform to the 'Sendable' protocol
278 | case country,
279 | region,
:
286 | poi
287 |
288 | public static let all: [ResultTypes] = [.country, .region, .postcode, .district, .place, .locality, .neighborhood, .address, .poi]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | public var description: String {
[28/56] Compiling SwiftLocation GeofencingRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-MapBox.swift:288:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
275 |
276 | /// Filter results to include only a subset (one or more) of the available feature types.
277 | enum ResultTypes: String, CustomStringConvertible {
| `- note: consider making enum 'ResultTypes' conform to the 'Sendable' protocol
278 | case country,
279 | region,
:
286 | poi
287 |
288 | public static let all: [ResultTypes] = [.country, .region, .postcode, .district, .place, .locality, .neighborhood, .address, .poi]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | public var description: String {
[29/56] Compiling SwiftLocation IPLocation+Data.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Geocoder/Services/Geocoder-MapBox.swift:288:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
275 |
276 | /// Filter results to include only a subset (one or more) of the available feature types.
277 | enum ResultTypes: String, CustomStringConvertible {
| `- note: consider making enum 'ResultTypes' conform to the 'Sendable' protocol
278 | case country,
279 | region,
:
286 | poi
287 |
288 | public static let all: [ResultTypes] = [.country, .region, .postcode, .district, .place, .locality, .neighborhood, .address, .poi]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Geocoder.MapBox.ResultTypes]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | public var description: String {
[30/56] Compiling SwiftLocation GeoLocation+Here.swift
[31/56] Compiling SwiftLocation GeoLocation+MapBox.swift
[32/56] Compiling SwiftLocation GeoLocation+OpenStreet.swift
[33/56] Compiling SwiftLocation GeoLocation.swift
[34/56] Compiling SwiftLocation IPLocation-IPInfo.swift
[35/56] Compiling SwiftLocation IPLocation-IPIpify.swift
[36/56] Compiling SwiftLocation IPLocation-IPStack.swift
[37/56] Compiling SwiftLocation VisitsRequest.swift
[38/56] Compiling SwiftLocation PartialAddressMatch+Apple.swift
[39/56] Compiling SwiftLocation Autocomplete-Google.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:151:84: warning: 'proximityUUID' was deprecated in macOS 10.15
149 | let matched = sourceList.filter { b in
150 | monitoredBeacons.contains(where: {
151 | $0.major == b.major && $0.minor == b.minor && $0.uuid as UUID == b.proximityUUID
| `- warning: 'proximityUUID' was deprecated in macOS 10.15
152 | })
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:184:22: warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
182 |
183 | fileprivate func regionFromUUID(_ uuid: UUID) -> CLBeaconRegion {
184 | let region = CLBeaconRegion(proximityUUID: uuid, identifier: "\(requestRegionIdentifier)\(uuid.uuidString)")
| `- warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
185 | region.notifyEntryStateOnDisplay = true
186 | return region
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:190:22: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
188 |
189 | private func regionFromBeacon(_ beacon: Beacon) -> CLBeaconRegion {
190 | let region = CLBeaconRegion(proximityUUID: beacon.uuid as UUID,
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
191 | major: CLBeaconMajorValue(beacon.major.int32Value),
192 | minor: CLBeaconMinorValue(beacon.minor.int32Value),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationRequest.swift:178:13: warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
27 |
28 | /// The following class define a single location request.
29 | public class GPSLocationRequest: RequestProtocol, Codable {
| `- note: class 'GPSLocationRequest' does not conform to the 'Sendable' protocol
30 | public typealias ProducedData = CLLocation
31 |
:
176 | timeoutTimer = Timer.scheduledTimer(withTimeInterval: timeout.interval, repeats: false, block: { [weak self] timer in
177 | timer.invalidate()
178 | self?.receiveData(.failure(.timeout))
| `- warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
179 | })
180 | }
[40/56] Compiling SwiftLocation Autocomplete-Here.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:151:84: warning: 'proximityUUID' was deprecated in macOS 10.15
149 | let matched = sourceList.filter { b in
150 | monitoredBeacons.contains(where: {
151 | $0.major == b.major && $0.minor == b.minor && $0.uuid as UUID == b.proximityUUID
| `- warning: 'proximityUUID' was deprecated in macOS 10.15
152 | })
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:184:22: warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
182 |
183 | fileprivate func regionFromUUID(_ uuid: UUID) -> CLBeaconRegion {
184 | let region = CLBeaconRegion(proximityUUID: uuid, identifier: "\(requestRegionIdentifier)\(uuid.uuidString)")
| `- warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
185 | region.notifyEntryStateOnDisplay = true
186 | return region
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:190:22: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
188 |
189 | private func regionFromBeacon(_ beacon: Beacon) -> CLBeaconRegion {
190 | let region = CLBeaconRegion(proximityUUID: beacon.uuid as UUID,
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
191 | major: CLBeaconMajorValue(beacon.major.int32Value),
192 | minor: CLBeaconMinorValue(beacon.minor.int32Value),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationRequest.swift:178:13: warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
27 |
28 | /// The following class define a single location request.
29 | public class GPSLocationRequest: RequestProtocol, Codable {
| `- note: class 'GPSLocationRequest' does not conform to the 'Sendable' protocol
30 | public typealias ProducedData = CLLocation
31 |
:
176 | timeoutTimer = Timer.scheduledTimer(withTimeInterval: timeout.interval, repeats: false, block: { [weak self] timer in
177 | timer.invalidate()
178 | self?.receiveData(.failure(.timeout))
| `- warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
179 | })
180 | }
[41/56] Compiling SwiftLocation BeaconRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:151:84: warning: 'proximityUUID' was deprecated in macOS 10.15
149 | let matched = sourceList.filter { b in
150 | monitoredBeacons.contains(where: {
151 | $0.major == b.major && $0.minor == b.minor && $0.uuid as UUID == b.proximityUUID
| `- warning: 'proximityUUID' was deprecated in macOS 10.15
152 | })
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:184:22: warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
182 |
183 | fileprivate func regionFromUUID(_ uuid: UUID) -> CLBeaconRegion {
184 | let region = CLBeaconRegion(proximityUUID: uuid, identifier: "\(requestRegionIdentifier)\(uuid.uuidString)")
| `- warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
185 | region.notifyEntryStateOnDisplay = true
186 | return region
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:190:22: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
188 |
189 | private func regionFromBeacon(_ beacon: Beacon) -> CLBeaconRegion {
190 | let region = CLBeaconRegion(proximityUUID: beacon.uuid as UUID,
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
191 | major: CLBeaconMajorValue(beacon.major.int32Value),
192 | minor: CLBeaconMinorValue(beacon.minor.int32Value),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationRequest.swift:178:13: warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
27 |
28 | /// The following class define a single location request.
29 | public class GPSLocationRequest: RequestProtocol, Codable {
| `- note: class 'GPSLocationRequest' does not conform to the 'Sendable' protocol
30 | public typealias ProducedData = CLLocation
31 |
:
176 | timeoutTimer = Timer.scheduledTimer(withTimeInterval: timeout.interval, repeats: false, block: { [weak self] timer in
177 | timer.invalidate()
178 | self?.receiveData(.failure(.timeout))
| `- warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
179 | })
180 | }
[42/56] Compiling SwiftLocation GPSLocationOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:151:84: warning: 'proximityUUID' was deprecated in macOS 10.15
149 | let matched = sourceList.filter { b in
150 | monitoredBeacons.contains(where: {
151 | $0.major == b.major && $0.minor == b.minor && $0.uuid as UUID == b.proximityUUID
| `- warning: 'proximityUUID' was deprecated in macOS 10.15
152 | })
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:184:22: warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
182 |
183 | fileprivate func regionFromUUID(_ uuid: UUID) -> CLBeaconRegion {
184 | let region = CLBeaconRegion(proximityUUID: uuid, identifier: "\(requestRegionIdentifier)\(uuid.uuidString)")
| `- warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
185 | region.notifyEntryStateOnDisplay = true
186 | return region
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:190:22: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
188 |
189 | private func regionFromBeacon(_ beacon: Beacon) -> CLBeaconRegion {
190 | let region = CLBeaconRegion(proximityUUID: beacon.uuid as UUID,
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
191 | major: CLBeaconMajorValue(beacon.major.int32Value),
192 | minor: CLBeaconMinorValue(beacon.minor.int32Value),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationRequest.swift:178:13: warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
27 |
28 | /// The following class define a single location request.
29 | public class GPSLocationRequest: RequestProtocol, Codable {
| `- note: class 'GPSLocationRequest' does not conform to the 'Sendable' protocol
30 | public typealias ProducedData = CLLocation
31 |
:
176 | timeoutTimer = Timer.scheduledTimer(withTimeInterval: timeout.interval, repeats: false, block: { [weak self] timer in
177 | timer.invalidate()
178 | self?.receiveData(.failure(.timeout))
| `- warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
179 | })
180 | }
[43/56] Compiling SwiftLocation GPSLocationRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:151:84: warning: 'proximityUUID' was deprecated in macOS 10.15
149 | let matched = sourceList.filter { b in
150 | monitoredBeacons.contains(where: {
151 | $0.major == b.major && $0.minor == b.minor && $0.uuid as UUID == b.proximityUUID
| `- warning: 'proximityUUID' was deprecated in macOS 10.15
152 | })
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:184:22: warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
182 |
183 | fileprivate func regionFromUUID(_ uuid: UUID) -> CLBeaconRegion {
184 | let region = CLBeaconRegion(proximityUUID: uuid, identifier: "\(requestRegionIdentifier)\(uuid.uuidString)")
| `- warning: 'init(proximityUUID:identifier:)' was deprecated in macOS 10.15
185 | region.notifyEntryStateOnDisplay = true
186 | return region
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/Beacon/BeaconRequest.swift:190:22: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
188 |
189 | private func regionFromBeacon(_ beacon: Beacon) -> CLBeaconRegion {
190 | let region = CLBeaconRegion(proximityUUID: beacon.uuid as UUID,
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
191 | major: CLBeaconMajorValue(beacon.major.int32Value),
192 | minor: CLBeaconMinorValue(beacon.minor.int32Value),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationRequest.swift:178:13: warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
27 |
28 | /// The following class define a single location request.
29 | public class GPSLocationRequest: RequestProtocol, Codable {
| `- note: class 'GPSLocationRequest' does not conform to the 'Sendable' protocol
30 | public typealias ProducedData = CLLocation
31 |
:
176 | timeoutTimer = Timer.scheduledTimer(withTimeInterval: timeout.interval, repeats: false, block: { [weak self] timer in
177 | timer.invalidate()
178 | self?.receiveData(.failure(.timeout))
| `- warning: capture of 'self' with non-sendable type 'GPSLocationRequest?' in a '@Sendable' closure
179 | })
180 | }
[44/56] Compiling SwiftLocation JSONNetworkHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:45:30: warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
25 | import Foundation
26 |
27 | public class JSONNetworkHelper {
| `- note: class 'JSONNetworkHelper' does not conform to the 'Sendable' protocol
28 |
29 | /// Inner task.
:
43 | _ completion: @escaping ((Result<Data, LocationError>) -> Void)) {
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
46 | completion(.failure(.cancelled))
47 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:46:17: warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
46 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | return
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:64:38: warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
62 |
63 | /// External validation
64 | if let validationError = validateResponse?(data, response) {
| |- warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | completion(.failure(validationError))
66 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:28:12: warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// Shortcut to credentials manager.
28 | public var SharedCredentials = LocationManager.Credentials.shared
| |- warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SharedCredentials' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'SharedCredentials' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public extension LocationManager {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:35:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension LocationManager {
31 |
32 | class Credentials: Codable {
| `- note: class 'Credentials' does not conform to the 'Sendable' protocol
33 |
34 | /// Shared credentials store.
35 | static let shared = Credentials()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Store
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:44:10: warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
42 | /// - `invalidPolygon`: invalid polygon passed.
43 | public enum LocationError: LocalizedError, Equatable {
44 | case discardedData(DataDiscardReason)
| `- warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
45 | case timeout
46 | case generic(Error)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:108:13: note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
106 | /// - `requestNotEnabled`: request is not enabled.
107 | /// - `generic`: generic error.
108 | public enum DataDiscardReason: CustomStringConvertible {
| `- note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
109 | case notMinAccuracy
110 | case notMinDistance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:122:20: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// enable or disable logger.
122 | static var isEnabled = true
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | /// Queue.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:125:28: warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Queue.
125 | private static var queue = DispatchQueue(label: "locator.logger", qos: .background)
| |- warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'queue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | /// Log a message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:35:12: warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Shortcut
35 | public let SwiftLocation = LocationManager.shared
| |- warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SwiftLocation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
35 | public let SwiftLocation = LocationManager.shared
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
:
56 |
57 | /// Shared instance.
58 | public static let shared = LocationManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// Credentials storage.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:94:46: warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
92 | }
93 |
94 | let location = NSKeyedUnarchiver.unarchiveObject(with: data) as? CLLocation
| `- warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
95 | return location
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:103:40: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
101 | }
102 |
103 | let data = NSKeyedArchiver.archivedData(withRootObject: location)
| `- warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
104 | UserDefaults.standard.setValue(data, forKey: UserDefaultsKeys.LastKnownGPSLocation)
105 | }
[45/56] Compiling SwiftLocation SwiftLocation+Credentials.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:45:30: warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
25 | import Foundation
26 |
27 | public class JSONNetworkHelper {
| `- note: class 'JSONNetworkHelper' does not conform to the 'Sendable' protocol
28 |
29 | /// Inner task.
:
43 | _ completion: @escaping ((Result<Data, LocationError>) -> Void)) {
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
46 | completion(.failure(.cancelled))
47 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:46:17: warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
46 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | return
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:64:38: warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
62 |
63 | /// External validation
64 | if let validationError = validateResponse?(data, response) {
| |- warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | completion(.failure(validationError))
66 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:28:12: warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// Shortcut to credentials manager.
28 | public var SharedCredentials = LocationManager.Credentials.shared
| |- warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SharedCredentials' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'SharedCredentials' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public extension LocationManager {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:35:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension LocationManager {
31 |
32 | class Credentials: Codable {
| `- note: class 'Credentials' does not conform to the 'Sendable' protocol
33 |
34 | /// Shared credentials store.
35 | static let shared = Credentials()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Store
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:44:10: warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
42 | /// - `invalidPolygon`: invalid polygon passed.
43 | public enum LocationError: LocalizedError, Equatable {
44 | case discardedData(DataDiscardReason)
| `- warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
45 | case timeout
46 | case generic(Error)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:108:13: note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
106 | /// - `requestNotEnabled`: request is not enabled.
107 | /// - `generic`: generic error.
108 | public enum DataDiscardReason: CustomStringConvertible {
| `- note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
109 | case notMinAccuracy
110 | case notMinDistance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:122:20: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// enable or disable logger.
122 | static var isEnabled = true
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | /// Queue.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:125:28: warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Queue.
125 | private static var queue = DispatchQueue(label: "locator.logger", qos: .background)
| |- warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'queue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | /// Log a message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:35:12: warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Shortcut
35 | public let SwiftLocation = LocationManager.shared
| |- warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SwiftLocation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
35 | public let SwiftLocation = LocationManager.shared
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
:
56 |
57 | /// Shared instance.
58 | public static let shared = LocationManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// Credentials storage.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:94:46: warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
92 | }
93 |
94 | let location = NSKeyedUnarchiver.unarchiveObject(with: data) as? CLLocation
| `- warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
95 | return location
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:103:40: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
101 | }
102 |
103 | let data = NSKeyedArchiver.archivedData(withRootObject: location)
| `- warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
104 | UserDefaults.standard.setValue(data, forKey: UserDefaultsKeys.LastKnownGPSLocation)
105 | }
[46/56] Compiling SwiftLocation SwiftLocation+Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:45:30: warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
25 | import Foundation
26 |
27 | public class JSONNetworkHelper {
| `- note: class 'JSONNetworkHelper' does not conform to the 'Sendable' protocol
28 |
29 | /// Inner task.
:
43 | _ completion: @escaping ((Result<Data, LocationError>) -> Void)) {
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
46 | completion(.failure(.cancelled))
47 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:46:17: warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
46 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | return
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:64:38: warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
62 |
63 | /// External validation
64 | if let validationError = validateResponse?(data, response) {
| |- warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | completion(.failure(validationError))
66 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:28:12: warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// Shortcut to credentials manager.
28 | public var SharedCredentials = LocationManager.Credentials.shared
| |- warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SharedCredentials' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'SharedCredentials' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public extension LocationManager {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:35:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension LocationManager {
31 |
32 | class Credentials: Codable {
| `- note: class 'Credentials' does not conform to the 'Sendable' protocol
33 |
34 | /// Shared credentials store.
35 | static let shared = Credentials()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Store
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:44:10: warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
42 | /// - `invalidPolygon`: invalid polygon passed.
43 | public enum LocationError: LocalizedError, Equatable {
44 | case discardedData(DataDiscardReason)
| `- warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
45 | case timeout
46 | case generic(Error)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:108:13: note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
106 | /// - `requestNotEnabled`: request is not enabled.
107 | /// - `generic`: generic error.
108 | public enum DataDiscardReason: CustomStringConvertible {
| `- note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
109 | case notMinAccuracy
110 | case notMinDistance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:122:20: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// enable or disable logger.
122 | static var isEnabled = true
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | /// Queue.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:125:28: warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Queue.
125 | private static var queue = DispatchQueue(label: "locator.logger", qos: .background)
| |- warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'queue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | /// Log a message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:35:12: warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Shortcut
35 | public let SwiftLocation = LocationManager.shared
| |- warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SwiftLocation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
35 | public let SwiftLocation = LocationManager.shared
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
:
56 |
57 | /// Shared instance.
58 | public static let shared = LocationManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// Credentials storage.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:94:46: warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
92 | }
93 |
94 | let location = NSKeyedUnarchiver.unarchiveObject(with: data) as? CLLocation
| `- warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
95 | return location
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:103:40: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
101 | }
102 |
103 | let data = NSKeyedArchiver.archivedData(withRootObject: location)
| `- warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
104 | UserDefaults.standard.setValue(data, forKey: UserDefaultsKeys.LastKnownGPSLocation)
105 | }
[47/56] Compiling SwiftLocation SwiftLocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:45:30: warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
25 | import Foundation
26 |
27 | public class JSONNetworkHelper {
| `- note: class 'JSONNetworkHelper' does not conform to the 'Sendable' protocol
28 |
29 | /// Inner task.
:
43 | _ completion: @escaping ((Result<Data, LocationError>) -> Void)) {
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
| `- warning: capture of 'self' with non-sendable type 'JSONNetworkHelper?' in a '@Sendable' closure
46 | completion(.failure(.cancelled))
47 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:46:17: warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
44 | self.networkTask = URLSession.shared.dataTask(with: request) { [weak self] (data, response, error) in
45 | guard let self = self, self.isCancelled == false else {
46 | completion(.failure(.cancelled))
| |- warning: capture of 'completion' with non-sendable type '(Result<Data, LocationError>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | return
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift:64:38: warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
62 |
63 | /// External validation
64 | if let validationError = validateResponse?(data, response) {
| |- warning: capture of 'validateResponse' with non-sendable type '((Data, HTTPURLResponse) -> LocationError?)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | completion(.failure(validationError))
66 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:28:12: warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// Shortcut to credentials manager.
28 | public var SharedCredentials = LocationManager.Credentials.shared
| |- warning: var 'SharedCredentials' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SharedCredentials' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'SharedCredentials' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public extension LocationManager {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Credentials.swift:35:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension LocationManager {
31 |
32 | class Credentials: Codable {
| `- note: class 'Credentials' does not conform to the 'Sendable' protocol
33 |
34 | /// Shared credentials store.
35 | static let shared = Credentials()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager.Credentials' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Store
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:44:10: warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
42 | /// - `invalidPolygon`: invalid polygon passed.
43 | public enum LocationError: LocalizedError, Equatable {
44 | case discardedData(DataDiscardReason)
| `- warning: associated value 'discardedData' of 'Sendable'-conforming enum 'LocationError' has non-sendable type 'DataDiscardReason'; this is an error in the Swift 6 language mode
45 | case timeout
46 | case generic(Error)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:108:13: note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
106 | /// - `requestNotEnabled`: request is not enabled.
107 | /// - `generic`: generic error.
108 | public enum DataDiscardReason: CustomStringConvertible {
| `- note: consider making enum 'DataDiscardReason' conform to the 'Sendable' protocol
109 | case notMinAccuracy
110 | case notMinDistance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:122:20: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | /// enable or disable logger.
122 | static var isEnabled = true
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | /// Queue.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation+Errors.swift:125:28: warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Queue.
125 | private static var queue = DispatchQueue(label: "locator.logger", qos: .background)
| |- warning: static property 'queue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'queue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | /// Log a message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:35:12: warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Shortcut
35 | public let SwiftLocation = LocationManager.shared
| |- warning: let 'SwiftLocation' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SwiftLocation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
35 | public let SwiftLocation = LocationManager.shared
36 |
37 | public class LocationManager: LocationManagerDelegate, CustomStringConvertible {
| `- note: class 'LocationManager' does not conform to the 'Sendable' protocol
38 |
39 | // MARK: - Private Properties
:
56 |
57 | /// Shared instance.
58 | public static let shared = LocationManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LocationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// Credentials storage.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:94:46: warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
92 | }
93 |
94 | let location = NSKeyedUnarchiver.unarchiveObject(with: data) as? CLLocation
| `- warning: 'unarchiveObject(with:)' was deprecated in macOS 10.14: Use +unarchivedObjectOfClass:fromData:error: instead
95 | return location
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/SwiftLocation.swift:103:40: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
101 | }
102 |
103 | let data = NSKeyedArchiver.archivedData(withRootObject: location)
| `- warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
104 | UserDefaults.standard.setValue(data, forKey: UserDefaultsKeys.LastKnownGPSLocation)
105 | }
[48/56] Compiling SwiftLocation DeviceLocationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:94:59: warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
92 | return
93 | }
94 | manager.stopMonitoringBeaconRegions(Array(manager.rangedRegions))
| `- warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
95 | manager.startMonitoringBeaconRegions(newRegions)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:240:33: warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
238 | }
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
| `- warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
241 | default: manager.stopRangingBeacons(in: beaconRegion)
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:241:33: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
241 | default: manager.stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - LocationManagerDelegate
29 |
30 | public protocol LocationManagerDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | // MARK: - Location Manager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:52:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 | // MARK: - LocationManagerProtocol
51 |
52 | public protocol LocationManagerImpProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
53 | typealias AuthorizationCallback = ((CLAuthorizationStatus) -> Void)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:139:1: warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
137 | // MARK: - CLAuthorizationStatus
138 |
139 | extension CLAuthorizationStatus: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
140 |
141 | internal var isAuthorized: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:174:1: warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
172 | // MARK: - CLActivityType
173 |
174 | extension CLActivityType: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
175 |
176 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:53:21: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
51 | if let beaconRegion = region as? CLBeaconRegion {
52 | if #available(macCatalyst 14.0, iOS 7.0, *) {
53 | stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/Foundation+Extras.swift:141:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
139 | // MARK: - CLLocationCoordinate2D
140 |
141 | extension CLLocationCoordinate2D: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
142 |
143 | var commaLngLat: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:17: warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Support.swift:29:14: note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
27 | // MARK: - RequestDataCallback
28 |
29 | public class RequestDataCallback<T: Any> {
| `- note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
30 |
31 | /// Callback to call when new data is available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:39: warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
62 | }
63 | }
[49/56] Compiling SwiftLocation LocationManagerImpProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:94:59: warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
92 | return
93 | }
94 | manager.stopMonitoringBeaconRegions(Array(manager.rangedRegions))
| `- warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
95 | manager.startMonitoringBeaconRegions(newRegions)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:240:33: warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
238 | }
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
| `- warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
241 | default: manager.stopRangingBeacons(in: beaconRegion)
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:241:33: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
241 | default: manager.stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - LocationManagerDelegate
29 |
30 | public protocol LocationManagerDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | // MARK: - Location Manager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:52:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 | // MARK: - LocationManagerProtocol
51 |
52 | public protocol LocationManagerImpProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
53 | typealias AuthorizationCallback = ((CLAuthorizationStatus) -> Void)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:139:1: warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
137 | // MARK: - CLAuthorizationStatus
138 |
139 | extension CLAuthorizationStatus: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
140 |
141 | internal var isAuthorized: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:174:1: warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
172 | // MARK: - CLActivityType
173 |
174 | extension CLActivityType: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
175 |
176 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:53:21: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
51 | if let beaconRegion = region as? CLBeaconRegion {
52 | if #available(macCatalyst 14.0, iOS 7.0, *) {
53 | stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/Foundation+Extras.swift:141:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
139 | // MARK: - CLLocationCoordinate2D
140 |
141 | extension CLLocationCoordinate2D: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
142 |
143 | var commaLngLat: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:17: warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Support.swift:29:14: note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
27 | // MARK: - RequestDataCallback
28 |
29 | public class RequestDataCallback<T: Any> {
| `- note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
30 |
31 | /// Callback to call when new data is available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:39: warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
62 | }
63 | }
[50/56] Compiling SwiftLocation CLLocationManager+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:94:59: warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
92 | return
93 | }
94 | manager.stopMonitoringBeaconRegions(Array(manager.rangedRegions))
| `- warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
95 | manager.startMonitoringBeaconRegions(newRegions)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:240:33: warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
238 | }
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
| `- warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
241 | default: manager.stopRangingBeacons(in: beaconRegion)
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:241:33: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
241 | default: manager.stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - LocationManagerDelegate
29 |
30 | public protocol LocationManagerDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | // MARK: - Location Manager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:52:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 | // MARK: - LocationManagerProtocol
51 |
52 | public protocol LocationManagerImpProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
53 | typealias AuthorizationCallback = ((CLAuthorizationStatus) -> Void)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:139:1: warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
137 | // MARK: - CLAuthorizationStatus
138 |
139 | extension CLAuthorizationStatus: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
140 |
141 | internal var isAuthorized: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:174:1: warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
172 | // MARK: - CLActivityType
173 |
174 | extension CLActivityType: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
175 |
176 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:53:21: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
51 | if let beaconRegion = region as? CLBeaconRegion {
52 | if #available(macCatalyst 14.0, iOS 7.0, *) {
53 | stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/Foundation+Extras.swift:141:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
139 | // MARK: - CLLocationCoordinate2D
140 |
141 | extension CLLocationCoordinate2D: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
142 |
143 | var commaLngLat: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:17: warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Support.swift:29:14: note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
27 | // MARK: - RequestDataCallback
28 |
29 | public class RequestDataCallback<T: Any> {
| `- note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
30 |
31 | /// Callback to call when new data is available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:39: warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
62 | }
63 | }
[51/56] Compiling SwiftLocation Foundation+Extras.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:94:59: warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
92 | return
93 | }
94 | manager.stopMonitoringBeaconRegions(Array(manager.rangedRegions))
| `- warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
95 | manager.startMonitoringBeaconRegions(newRegions)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:240:33: warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
238 | }
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
| `- warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
241 | default: manager.stopRangingBeacons(in: beaconRegion)
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:241:33: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
241 | default: manager.stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - LocationManagerDelegate
29 |
30 | public protocol LocationManagerDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | // MARK: - Location Manager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:52:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 | // MARK: - LocationManagerProtocol
51 |
52 | public protocol LocationManagerImpProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
53 | typealias AuthorizationCallback = ((CLAuthorizationStatus) -> Void)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:139:1: warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
137 | // MARK: - CLAuthorizationStatus
138 |
139 | extension CLAuthorizationStatus: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
140 |
141 | internal var isAuthorized: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:174:1: warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
172 | // MARK: - CLActivityType
173 |
174 | extension CLActivityType: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
175 |
176 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:53:21: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
51 | if let beaconRegion = region as? CLBeaconRegion {
52 | if #available(macCatalyst 14.0, iOS 7.0, *) {
53 | stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/Foundation+Extras.swift:141:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
139 | // MARK: - CLLocationCoordinate2D
140 |
141 | extension CLLocationCoordinate2D: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
142 |
143 | var commaLngLat: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:17: warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Support.swift:29:14: note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
27 | // MARK: - RequestDataCallback
28 |
29 | public class RequestDataCallback<T: Any> {
| `- note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
30 |
31 | /// Callback to call when new data is available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:39: warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
62 | }
63 | }
[52/56] Compiling SwiftLocation RequestProtocol+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:94:59: warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
92 | return
93 | }
94 | manager.stopMonitoringBeaconRegions(Array(manager.rangedRegions))
| `- warning: 'rangedRegions' was deprecated in macOS 10.15: Use -rangedBeaconConstraints
95 | manager.startMonitoringBeaconRegions(newRegions)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:240:33: warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
238 | }
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
| `- warning: 'startRangingBeacons(in:)' was deprecated in macOS 11.0: Use -startRangingBeaconsSatisfyingConstraint:
241 | default: manager.stopRangingBeacons(in: beaconRegion)
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift:241:33: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
239 | switch state {
240 | case .inside: manager.startRangingBeacons(in: beaconRegion)
241 | default: manager.stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
242 | }
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
28 | // MARK: - LocationManagerDelegate
29 |
30 | public protocol LocationManagerDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 |
32 | // MARK: - Location Manager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/CLLocationManager/LocationManagerImpProtocol.swift:52:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 | // MARK: - LocationManagerProtocol
51 |
52 | public protocol LocationManagerImpProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
53 | typealias AuthorizationCallback = ((CLAuthorizationStatus) -> Void)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:139:1: warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
137 | // MARK: - CLAuthorizationStatus
138 |
139 | extension CLAuthorizationStatus: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
140 |
141 | internal var isAuthorized: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:174:1: warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
172 | // MARK: - CLActivityType
173 |
174 | extension CLActivityType: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLActivityType' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
175 |
176 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/CLLocationManager+Extension.swift:53:21: warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
51 | if let beaconRegion = region as? CLBeaconRegion {
52 | if #available(macCatalyst 14.0, iOS 7.0, *) {
53 | stopRangingBeacons(in: beaconRegion)
| `- warning: 'stopRangingBeacons(in:)' was deprecated in macOS 11.0: Use -stopRangingBeaconsSatisfyingConstraint:
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Extensions/Foundation+Extras.swift:141:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
139 | // MARK: - CLLocationCoordinate2D
140 |
141 | extension CLLocationCoordinate2D: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
142 |
143 | var commaLngLat: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:17: warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'subscription' with non-sendable type 'RequestDataCallback<Self.DataCallback>' (aka 'RequestDataCallback<(Result<Self.ProducedData, LocationError>) -> ()>') in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Support.swift:29:14: note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
27 | // MARK: - RequestDataCallback
28 |
29 | public class RequestDataCallback<T: Any> {
| `- note: generic class 'RequestDataCallback' does not conform to the 'Sendable' protocol
30 |
31 | /// Callback to call when new data is available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift:61:39: warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
59 | (toSubscriptions ?? subscriptions).forEach { subscription in
60 | subscription.queue.async { // dispatch on passed queue.
61 | subscription.callback(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Self.ProducedData, LocationError>' in a '@Sendable' closure
62 | }
63 | }
[52/56] Write Objects.LinkFileList
[54/59] Compiling SwiftLocationBeaconBroadcaster SwiftLocation+BeaconBroadcaster.swift
[54/59] Linking libSwiftLocation-Dynamic.dylib
[56/59] Emitting module SwiftLocationBeaconBroadcaster
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocationBeaconBroadcaster/Request/Requests/Beacon/BeaconBroadcaster.swift:38:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BeaconBroadcaster' may have shared mutable state; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | internal class BeaconBroadcaster: NSObject, CBPeripheralManagerDelegate {
| `- note: class 'BeaconBroadcaster' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Internal Properties
36 |
37 | /// Shared instance.
38 | internal static let shared = BeaconBroadcaster()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BeaconBroadcaster' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// Receive callback about the advetisting.
[57/59] Compiling SwiftLocationBeaconBroadcaster BeaconBroadcaster.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocationBeaconBroadcaster/Request/Requests/Beacon/BeaconBroadcaster.swift:38:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BeaconBroadcaster' may have shared mutable state; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | internal class BeaconBroadcaster: NSObject, CBPeripheralManagerDelegate {
| `- note: class 'BeaconBroadcaster' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Internal Properties
36 |
37 | /// Shared instance.
38 | internal static let shared = BeaconBroadcaster()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BeaconBroadcaster' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// Receive callback about the advetisting.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocationBeaconBroadcaster/Request/Requests/Beacon/BeaconBroadcaster.swift:135:23: warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
133 |
134 | // create the region that will be used to send
135 | self.region = CLBeaconRegion(
| `- warning: 'init(proximityUUID:major:minor:identifier:)' was deprecated in macOS 10.15
136 | proximityUUID: uuidInstance,
137 | major: majorID,
[57/59] Write Objects.LinkFileList
[58/59] Linking libSwiftLocationBeaconBroadcaster.Dynamic.dylib
Build complete! (10.11s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftLocation",
"name" : "SwiftLocation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SwiftLocation",
"targets" : [
"SwiftLocation"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftLocation-Dynamic",
"targets" : [
"SwiftLocation"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "SwiftLocationBeaconBroadcaster",
"targets" : [
"SwiftLocationBeaconBroadcaster"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftLocationBeaconBroadcaster.Dynamic",
"targets" : [
"SwiftLocationBeaconBroadcaster"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftLocationTests",
"module_type" : "SwiftTarget",
"name" : "SwiftLocationTests",
"path" : "Tests/SwiftLocationTests",
"sources" : [
"SwiftLocationTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftLocation",
"SwiftLocationBeaconBroadcaster"
],
"type" : "test"
},
{
"c99name" : "SwiftLocationBeaconBroadcaster",
"module_type" : "SwiftTarget",
"name" : "SwiftLocationBeaconBroadcaster",
"path" : "Sources/SwiftLocationBeaconBroadcaster",
"product_memberships" : [
"SwiftLocationBeaconBroadcaster",
"SwiftLocationBeaconBroadcaster.Dynamic"
],
"sources" : [
"Request/Requests/Beacon/BeaconBroadcaster.swift",
"SwiftLocation+BeaconBroadcaster.swift"
],
"target_dependencies" : [
"SwiftLocation"
],
"type" : "library"
},
{
"c99name" : "SwiftLocation",
"module_type" : "SwiftTarget",
"name" : "SwiftLocation",
"path" : "Sources/SwiftLocation",
"product_memberships" : [
"SwiftLocation",
"SwiftLocation-Dynamic",
"SwiftLocationBeaconBroadcaster",
"SwiftLocationBeaconBroadcaster.Dynamic"
],
"sources" : [
"CLLocationManager/CLDeviceLocationManager/DeviceLocationManager.swift",
"CLLocationManager/LocationManagerImpProtocol.swift",
"Extensions/CLLocationManager+Extension.swift",
"Extensions/Foundation+Extras.swift",
"Request/Abstract Request/RequestProtocol+Extension.swift",
"Request/Abstract Request/RequestProtocol+Support.swift",
"Request/Abstract Request/RequestProtocol.swift",
"Request/Requests/Autocomplete/AutocompleteProtocol.swift",
"Request/Requests/Autocomplete/AutocompleteRequest.swift",
"Request/Requests/Autocomplete/Services/Autocomplete-Apple.swift",
"Request/Requests/Autocomplete/Services/Autocomplete-Google.swift",
"Request/Requests/Autocomplete/Services/Autocomplete-Here.swift",
"Request/Requests/Beacon/BeaconRequest.swift",
"Request/Requests/GPSLocation/GPSLocationOptions.swift",
"Request/Requests/GPSLocation/GPSLocationRequest.swift",
"Request/Requests/Geocoder/GeocoderRequest.swift",
"Request/Requests/Geocoder/GeocoderServiceProtocol.swift",
"Request/Requests/Geocoder/Services/Geocoder-Apple.swift",
"Request/Requests/Geocoder/Services/Geocoder-Google.swift",
"Request/Requests/Geocoder/Services/Geocoder-Here.swift",
"Request/Requests/Geocoder/Services/Geocoder-MapBox.swift",
"Request/Requests/Geocoder/Services/Geocoder-OpenStreet.swift",
"Request/Requests/Geofencing/GeofencingOptions.swift",
"Request/Requests/Geofencing/GeofencingRequest.swift",
"Request/Requests/IPLocation/IPLocation+Data.swift",
"Request/Requests/IPLocation/IPLocationRequest.swift",
"Request/Requests/IPLocation/IPServiceProtocol.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPApi.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPData.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPGeolocation.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPInfo.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPIpify.swift",
"Request/Requests/IPLocation/Services/IPLocation-IPStack.swift",
"Request/Requests/Visits/VisitsRequest.swift",
"Request/Support Structures/AddressMatch/PartialAddressMatch+Apple.swift",
"Request/Support Structures/AddressMatch/PartialAddressMatch+Google.swift",
"Request/Support Structures/AddressMatch/PartialAddressMatch+Here.swift",
"Request/Support Structures/AddressMatch/PartialAddressMatch.swift",
"Request/Support Structures/GeoLocation/GeoLocation+Apple.swift",
"Request/Support Structures/GeoLocation/GeoLocation+Google.swift",
"Request/Support Structures/GeoLocation/GeoLocation+Here.swift",
"Request/Support Structures/GeoLocation/GeoLocation+MapBox.swift",
"Request/Support Structures/GeoLocation/GeoLocation+OpenStreet.swift",
"Request/Support Structures/GeoLocation/GeoLocation.swift",
"Request/Support Structures/JSONNetworkHelper/JSONNetworkHelper.swift",
"SwiftLocation+Credentials.swift",
"SwiftLocation+Errors.swift",
"SwiftLocation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.