Build Information
Successful build of SwiftLocation, reference master (646209
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 22:43:50 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/malcommac/SwiftLocation.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/malcommac/SwiftLocation
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6462097 Merge pull request #379 from grangej/master
Cloned https://github.com/malcommac/SwiftLocation.git
Revision (git rev-parse @):
64620973d0c19043845e82eac9ac1c1442537ce1
SUCCESS checkout https://github.com/malcommac/SwiftLocation.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftlocation",
"name": "SwiftLocation",
"url": "https://github.com/malcommac/SwiftLocation.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftLocation",
"dependencies": [
]
}
]
}
Fetching https://github.com/malcommac/SwiftLocation.git
[1/6014] Fetching swiftlocation
Fetched https://github.com/malcommac/SwiftLocation.git from cache (1.94s)
Creating working copy for https://github.com/malcommac/SwiftLocation.git
Working copy of https://github.com/malcommac/SwiftLocation.git resolved at master (6462097)
warning: '.resolve-product-dependencies': dependency 'swiftlocation' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/malcommac/SwiftLocation.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftLocation",
"name" : "SwiftLocation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "SwiftLocation",
"targets" : [
"SwiftLocation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftLocationTests",
"module_type" : "SwiftTarget",
"name" : "SwiftLocationTests",
"path" : "Tests/SwiftLocationTests",
"sources" : [
"MockedLocationManager.swift",
"SwiftLocationTests.swift"
],
"target_dependencies" : [
"SwiftLocation"
],
"type" : "test"
},
{
"c99name" : "SwiftLocation",
"module_type" : "SwiftTarget",
"name" : "SwiftLocation",
"path" : "Sources/SwiftLocation",
"product_memberships" : [
"SwiftLocation"
],
"sources" : [
"Async Tasks/AccuracyAuthorization.swift",
"Async Tasks/AccuracyPermission.swift",
"Async Tasks/AnyTask.swift",
"Async Tasks/Authorization.swift",
"Async Tasks/BeaconMonitoring.swift",
"Async Tasks/ContinuousUpdateLocation.swift",
"Async Tasks/HeadingMonitoring.swift",
"Async Tasks/LocatePermission.swift",
"Async Tasks/LocationServicesEnabled.swift",
"Async Tasks/RegionMonitoring.swift",
"Async Tasks/SignificantLocationMonitoring.swift",
"Async Tasks/SingleUpdateLocation.swift",
"Async Tasks/VisitsMonitoring.swift",
"Location Managers/LocationAsyncBridge.swift",
"Location Managers/LocationManagerBridgeEvent.swift",
"Location Managers/LocationManagerProtocol.swift",
"Location.swift",
"Support/Extensions.swift",
"Support/LocationDelegate.swift",
"Support/LocationErrors.swift",
"Support/SupportModels.swift",
"SwiftLocation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/23] Emitting module SwiftLocation
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:63:1: warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
61 | }
62 |
63 | extension CLAccuracyAuthorization: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' 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
64 |
65 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:78: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
76 | }
77 |
78 | 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
79 |
80 | public var description: String {
[4/25] Compiling SwiftLocation SignificantLocationMonitoring.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/SingleUpdateLocation.swift:99:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
97 |
98 | DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { [weak self] in
99 | self?.continuation?.resume(throwing: LocationErrors.timeout)
| |- 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
100 | }
101 | }
[5/25] Compiling SwiftLocation SingleUpdateLocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/SingleUpdateLocation.swift:99:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
97 |
98 | DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { [weak self] in
99 | self?.continuation?.resume(throwing: LocationErrors.timeout)
| |- 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
100 | }
101 | }
[6/25] Compiling SwiftLocation SupportModels.swift
[7/25] Compiling SwiftLocation SwiftLocation.swift
[8/25] Compiling SwiftLocation HeadingMonitoring.swift
[9/25] Compiling SwiftLocation LocatePermission.swift
[10/25] Compiling SwiftLocation Authorization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/BeaconMonitoring.swift:86:25: warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
84 | switch event {
85 | case let .didRange(beacons, constraint):
86 | stream?.yield(.didRange(beacons: beacons, constraint: constraint))
| `- warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
87 | case let .didFailRanginFor(constraint, error):
88 | stream?.yield(.didFailRanginFor(constraint: constraint, error: error))
[11/25] Compiling SwiftLocation BeaconMonitoring.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/BeaconMonitoring.swift:86:25: warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
84 | switch event {
85 | case let .didRange(beacons, constraint):
86 | stream?.yield(.didRange(beacons: beacons, constraint: constraint))
| `- warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
87 | case let .didFailRanginFor(constraint, error):
88 | stream?.yield(.didFailRanginFor(constraint: constraint, error: error))
[12/25] Compiling SwiftLocation ContinuousUpdateLocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/BeaconMonitoring.swift:86:25: warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
84 | switch event {
85 | case let .didRange(beacons, constraint):
86 | stream?.yield(.didRange(beacons: beacons, constraint: constraint))
| `- warning: task-isolated value of type 'Tasks.BeaconMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
87 | case let .didFailRanginFor(constraint, error):
88 | stream?.yield(.didFailRanginFor(constraint: constraint, error: error))
[13/25] Compiling SwiftLocation Location.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:167:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
165 | asyncBridge.add(task: task)
166 | stream.onTermination = { @Sendable _ in
167 | self.stopMonitoringLocationServices()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:188:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
186 | asyncBridge.add(task: task)
187 | stream.onTermination = { @Sendable _ in
188 | self.stopMonitoringAuthorization()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
189 | }
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:209:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
207 | asyncBridge.add(task: task)
208 | stream.onTermination = { @Sendable _ in
209 | self.stopMonitoringAccuracyAuthorization()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:275:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
273 | locationManager.startUpdatingLocation()
274 | stream.onTermination = { @Sendable _ in
275 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | }
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:275:47: warning: capture of 'task' with non-sendable type 'Tasks.ContinuousUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 | locationManager.startUpdatingLocation()
274 | stream.onTermination = { @Sendable _ in
275 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.ContinuousUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | }
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/ContinuousUpdateLocation.swift:31:24: note: class 'ContinuousUpdateLocation' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class ContinuousUpdateLocation: AnyTask {
| `- note: class 'ContinuousUpdateLocation' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:304:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
302 | try await task.run()
303 | } onCancel: {
304 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | }
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:304:38: warning: capture of 'task' with non-sendable type 'Tasks.SingleUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
302 | try await task.run()
303 | } onCancel: {
304 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.SingleUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | }
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/SingleUpdateLocation.swift:31:24: note: class 'SingleUpdateLocation' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class SingleUpdateLocation: AnyTask {
| `- note: class 'SingleUpdateLocation' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:322:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
320 | locationManager.startMonitoring(for: region)
321 | stream.onTermination = { @Sendable _ in
322 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
323 | }
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:322:47: warning: capture of 'task' with non-sendable type 'Tasks.RegionMonitoring' in a `@Sendable` closure; this is an error in the Swift 6 language mode
320 | locationManager.startMonitoring(for: region)
321 | stream.onTermination = { @Sendable _ in
322 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.RegionMonitoring' in a `@Sendable` closure; this is an error in the Swift 6 language mode
323 | }
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:31:24: note: class 'RegionMonitoring' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class RegionMonitoring: AnyTask {
| `- note: class 'RegionMonitoring' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:350:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
348 | locationManager.startMonitoringVisits()
349 | stream.onTermination = { @Sendable _ in
350 | self.stopMonitoringVisits()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:375:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
373 | locationManager.startMonitoringSignificantLocationChanges()
374 | stream.onTermination = { @Sendable _ in
375 | self.stopMonitoringSignificantLocationChanges()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:426:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
424 | locationManager.startRangingBeacons(satisfying: satisfying)
425 | stream.onTermination = { @Sendable _ in
426 | self.stopRangingBeacons(satisfying: satisfying)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
427 | }
428 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:453:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
451 | try await task.requestTemporaryPermission(purposeKey: purposeKey)
452 | } onCancel: {
453 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 | }
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:453:38: warning: capture of 'task' with non-sendable type 'Tasks.AccuracyPermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
451 | try await task.requestTemporaryPermission(purposeKey: purposeKey)
452 | } onCancel: {
453 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.AccuracyPermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 | }
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/AccuracyPermission.swift:31:24: note: class 'AccuracyPermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class AccuracyPermission: AnyTask {
| `- note: class 'AccuracyPermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:465:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
463 | try await task.requestWhenInUsePermission()
464 | } onCancel: {
465 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
466 | }
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:465:38: warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
463 | try await task.requestWhenInUsePermission()
464 | } onCancel: {
465 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
466 | }
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/LocatePermission.swift:31:24: note: class 'LocatePermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class LocatePermission: AnyTask {
| `- note: class 'LocatePermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:478:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
476 | try await task.requestAlwaysPermission()
477 | } onCancel: {
478 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
479 | }
480 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:478:38: warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
476 | try await task.requestAlwaysPermission()
477 | } onCancel: {
478 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
479 | }
480 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/LocatePermission.swift:31:24: note: class 'LocatePermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class LocatePermission: AnyTask {
| `- note: class 'LocatePermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:63:1: warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
61 | }
62 |
63 | extension CLAccuracyAuthorization: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' 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
64 |
65 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:78: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
76 | }
77 |
78 | 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
79 |
80 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:69:33: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | public var locationServicesEnabled: Bool {
68 | get async {
69 | await Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | self.locationManager.locationServicesEnabled()
| `- note: closure captures 'self' which is accessible to code in the current task
71 | }.value
72 | }
[14/25] Compiling SwiftLocation Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:167:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
165 | asyncBridge.add(task: task)
166 | stream.onTermination = { @Sendable _ in
167 | self.stopMonitoringLocationServices()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:188:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
186 | asyncBridge.add(task: task)
187 | stream.onTermination = { @Sendable _ in
188 | self.stopMonitoringAuthorization()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
189 | }
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:209:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
207 | asyncBridge.add(task: task)
208 | stream.onTermination = { @Sendable _ in
209 | self.stopMonitoringAccuracyAuthorization()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:275:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
273 | locationManager.startUpdatingLocation()
274 | stream.onTermination = { @Sendable _ in
275 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | }
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:275:47: warning: capture of 'task' with non-sendable type 'Tasks.ContinuousUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 | locationManager.startUpdatingLocation()
274 | stream.onTermination = { @Sendable _ in
275 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.ContinuousUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
276 | }
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/ContinuousUpdateLocation.swift:31:24: note: class 'ContinuousUpdateLocation' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class ContinuousUpdateLocation: AnyTask {
| `- note: class 'ContinuousUpdateLocation' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:304:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
302 | try await task.run()
303 | } onCancel: {
304 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | }
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:304:38: warning: capture of 'task' with non-sendable type 'Tasks.SingleUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
302 | try await task.run()
303 | } onCancel: {
304 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.SingleUpdateLocation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | }
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/SingleUpdateLocation.swift:31:24: note: class 'SingleUpdateLocation' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class SingleUpdateLocation: AnyTask {
| `- note: class 'SingleUpdateLocation' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:322:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
320 | locationManager.startMonitoring(for: region)
321 | stream.onTermination = { @Sendable _ in
322 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
323 | }
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:322:47: warning: capture of 'task' with non-sendable type 'Tasks.RegionMonitoring' in a `@Sendable` closure; this is an error in the Swift 6 language mode
320 | locationManager.startMonitoring(for: region)
321 | stream.onTermination = { @Sendable _ in
322 | self.asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.RegionMonitoring' in a `@Sendable` closure; this is an error in the Swift 6 language mode
323 | }
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:31:24: note: class 'RegionMonitoring' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class RegionMonitoring: AnyTask {
| `- note: class 'RegionMonitoring' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:350:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
348 | locationManager.startMonitoringVisits()
349 | stream.onTermination = { @Sendable _ in
350 | self.stopMonitoringVisits()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:375:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
373 | locationManager.startMonitoringSignificantLocationChanges()
374 | stream.onTermination = { @Sendable _ in
375 | self.stopMonitoringSignificantLocationChanges()
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:426:17: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
424 | locationManager.startRangingBeacons(satisfying: satisfying)
425 | stream.onTermination = { @Sendable _ in
426 | self.stopRangingBeacons(satisfying: satisfying)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
427 | }
428 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:453:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
451 | try await task.requestTemporaryPermission(purposeKey: purposeKey)
452 | } onCancel: {
453 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 | }
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:453:38: warning: capture of 'task' with non-sendable type 'Tasks.AccuracyPermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
451 | try await task.requestTemporaryPermission(purposeKey: purposeKey)
452 | } onCancel: {
453 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.AccuracyPermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 | }
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/AccuracyPermission.swift:31:24: note: class 'AccuracyPermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class AccuracyPermission: AnyTask {
| `- note: class 'AccuracyPermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:465:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
463 | try await task.requestWhenInUsePermission()
464 | } onCancel: {
465 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
466 | }
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:465:38: warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
463 | try await task.requestWhenInUsePermission()
464 | } onCancel: {
465 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
466 | }
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/LocatePermission.swift:31:24: note: class 'LocatePermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class LocatePermission: AnyTask {
| `- note: class 'LocatePermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:478:13: warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// Instantiate this class to query and setup the Location Services and all the function
30 | /// of the library itself.
31 | public final class Location {
| `- note: class 'Location' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Private Properties
:
476 | try await task.requestAlwaysPermission()
477 | } onCancel: {
478 | asyncBridge.cancel(task: task)
| `- warning: capture of 'self' with non-sendable type 'Location' in a `@Sendable` closure; this is an error in the Swift 6 language mode
479 | }
480 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:478:38: warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
476 | try await task.requestAlwaysPermission()
477 | } onCancel: {
478 | asyncBridge.cancel(task: task)
| `- warning: capture of 'task' with non-sendable type 'Tasks.LocatePermission' in a `@Sendable` closure; this is an error in the Swift 6 language mode
479 | }
480 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/LocatePermission.swift:31:24: note: class 'LocatePermission' does not conform to the 'Sendable' protocol
29 | extension Tasks {
30 |
31 | public final class LocatePermission: AnyTask {
| `- note: class 'LocatePermission' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Support Structures
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:63:1: warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
61 | }
62 |
63 | extension CLAccuracyAuthorization: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CLAccuracyAuthorization' 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
64 |
65 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Support/Extensions.swift:78: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
76 | }
77 |
78 | 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
79 |
80 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Location.swift:69:33: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | public var locationServicesEnabled: Bool {
68 | get async {
69 | await Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | self.locationManager.locationServicesEnabled()
| `- note: closure captures 'self' which is accessible to code in the current task
71 | }.value
72 | }
[15/25] Compiling SwiftLocation LocationDelegate.swift
[16/25] Compiling SwiftLocation LocationErrors.swift
[17/25] Compiling SwiftLocation LocationManagerBridgeEvent.swift
[18/25] Compiling SwiftLocation LocationManagerProtocol.swift
[19/25] Compiling SwiftLocation VisitsMonitoring.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/VisitsMonitoring.swift:80:25: warning: sending 'visit.didVisit' risks causing data races; this is an error in the Swift 6 language mode
78 | switch event {
79 | case let .didVisit(visit):
80 | stream?.yield(.didVisit(visit))
| |- warning: sending 'visit.didVisit' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'visit.didVisit' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
81 | case let .didFailWithError(error):
82 | stream?.yield(.didFailWithError(error))
[20/25] Compiling SwiftLocation LocationAsyncBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/VisitsMonitoring.swift:80:25: warning: sending 'visit.didVisit' risks causing data races; this is an error in the Swift 6 language mode
78 | switch event {
79 | case let .didVisit(visit):
80 | stream?.yield(.didVisit(visit))
| |- warning: sending 'visit.didVisit' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'visit.didVisit' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
81 | case let .didFailWithError(error):
82 | stream?.yield(.didFailWithError(error))
[21/25] Compiling SwiftLocation LocationServicesEnabled.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:104:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
102 | switch event {
103 | case let .didStartMonitoringFor(region):
104 | stream?.yield(.didStartMonitoringFor(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
105 |
106 | case let .didEnterRegion(region):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:107:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
105 |
106 | case let .didEnterRegion(region):
107 | stream?.yield(.didEnterTo(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
108 |
109 | case let .didExitRegion(region):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:110:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
108 |
109 | case let .didExitRegion(region):
110 | stream?.yield(.didExitTo(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
111 |
112 | case let .monitoringDidFailFor(region, error):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:113:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
111 |
112 | case let .monitoringDidFailFor(region, error):
113 | stream?.yield(.monitoringDidFailFor(region: region, error: error))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
114 |
115 | default:
[22/25] Compiling SwiftLocation RegionMonitoring.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:104:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
102 | switch event {
103 | case let .didStartMonitoringFor(region):
104 | stream?.yield(.didStartMonitoringFor(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
105 |
106 | case let .didEnterRegion(region):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:107:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
105 |
106 | case let .didEnterRegion(region):
107 | stream?.yield(.didEnterTo(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
108 |
109 | case let .didExitRegion(region):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:110:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
108 |
109 | case let .didExitRegion(region):
110 | stream?.yield(.didExitTo(region: region))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
111 |
112 | case let .monitoringDidFailFor(region, error):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocation/Async Tasks/RegionMonitoring.swift:113:25: warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
111 |
112 | case let .monitoringDidFailFor(region, error):
113 | stream?.yield(.monitoringDidFailFor(region: region, error: error))
| `- warning: task-isolated value of type 'Tasks.RegionMonitoring.StreamEvent' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
114 |
115 | default:
[23/25] Compiling SwiftLocation AccuracyAuthorization.swift
[24/25] Compiling SwiftLocation AccuracyPermission.swift
[25/25] Compiling SwiftLocation AnyTask.swift
Build complete! (17.30s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftLocation",
"name" : "SwiftLocation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "SwiftLocation",
"targets" : [
"SwiftLocation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftLocationTests",
"module_type" : "SwiftTarget",
"name" : "SwiftLocationTests",
"path" : "Tests/SwiftLocationTests",
"sources" : [
"MockedLocationManager.swift",
"SwiftLocationTests.swift"
],
"target_dependencies" : [
"SwiftLocation"
],
"type" : "test"
},
{
"c99name" : "SwiftLocation",
"module_type" : "SwiftTarget",
"name" : "SwiftLocation",
"path" : "Sources/SwiftLocation",
"product_memberships" : [
"SwiftLocation"
],
"sources" : [
"Async Tasks/AccuracyAuthorization.swift",
"Async Tasks/AccuracyPermission.swift",
"Async Tasks/AnyTask.swift",
"Async Tasks/Authorization.swift",
"Async Tasks/BeaconMonitoring.swift",
"Async Tasks/ContinuousUpdateLocation.swift",
"Async Tasks/HeadingMonitoring.swift",
"Async Tasks/LocatePermission.swift",
"Async Tasks/LocationServicesEnabled.swift",
"Async Tasks/RegionMonitoring.swift",
"Async Tasks/SignificantLocationMonitoring.swift",
"Async Tasks/SingleUpdateLocation.swift",
"Async Tasks/VisitsMonitoring.swift",
"Location Managers/LocationAsyncBridge.swift",
"Location Managers/LocationManagerBridgeEvent.swift",
"Location Managers/LocationManagerProtocol.swift",
"Location.swift",
"Support/Extensions.swift",
"Support/LocationDelegate.swift",
"Support/LocationErrors.swift",
"Support/SupportModels.swift",
"SwiftLocation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.