Build Information
Failed to build AtlasKit with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/appoly/AtlasKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/appoly/AtlasKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a18af22 Revert "more fixes to decoding"
Cloned https://github.com/appoly/AtlasKit.git
Revision (git rev-parse @):
a18af22da30bd924e47a63daad1d958e575257a8
SUCCESS checkout https://github.com/appoly/AtlasKit.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/appoly/AtlasKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/9] Emitting module AtlasKit
[4/9] Compiling AtlasKit AtlasKitPlace.swift
[5/9] Compiling AtlasKit GoogleHelper.swift
[6/9] Compiling AtlasKit AtlasKitError.swift
[7/9] Compiling AtlasKit AtlasKitDatasource.swift
[8/9] Compiling AtlasKit AtlasKitAPI.swift
[9/9] Compiling AtlasKit AtlasKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:45:13: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
43 | searchTimer?.invalidate()
44 | searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
45 | self?.performSearch(term, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | })
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:45:51: warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | searchTimer?.invalidate()
44 | searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
45 | self?.performSearch(term, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
46 | })
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:53:26: error: 'withUnsafeThrowingContinuation(isolation:_:)' is only available in macOS 10.15 or newer
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
49 |
50 | @available(iOS 15.0.0, *)
51 | public func performSearchWithDelay(_ term: String, delay: TimeInterval) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
52 | searchTimer?.invalidate()
53 | return try await withUnsafeThrowingContinuation { continuation in
| |- error: 'withUnsafeThrowingContinuation(isolation:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | DispatchQueue.main.async { [weak self] in
55 | self?.searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:56:62: error: 'resume(with:)' is only available in macOS 10.15 or newer
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
49 |
50 | @available(iOS 15.0.0, *)
51 | public func performSearchWithDelay(_ term: String, delay: TimeInterval) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
52 | searchTimer?.invalidate()
53 | return try await withUnsafeThrowingContinuation { continuation in
54 | DispatchQueue.main.async { [weak self] in
55 | self?.searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
56 | self?.performSearch(term) { continuation.resume(with: $0) }
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | })
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:53:58: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:53:57: note: expanded code originates here
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
49 |
50 | @available(iOS 15.0.0, *)
51 | public func performSearchWithDelay(_ term: String, delay: TimeInterval) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
52 | searchTimer?.invalidate()
53 | return try await withUnsafeThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift
|51 |
|52 |
|53 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------
54 | DispatchQueue.main.async { [weak self] in
55 | self?.searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:55:17: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
53 | return try await withUnsafeThrowingContinuation { continuation in
54 | DispatchQueue.main.async { [weak self] in
55 | self?.searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self?.performSearch(term) { continuation.resume(with: $0) }
57 | })
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:56:21: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
54 | DispatchQueue.main.async { [weak self] in
55 | self?.searchTimer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in
56 | self?.performSearch(term) { continuation.resume(with: $0) }
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | })
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:65:26: error: 'withUnsafeThrowingContinuation(isolation:_:)' is only available in macOS 10.15 or newer
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
62 |
63 | @available(iOS 15.0.0, *)
64 | public func performSearch(_ term: String) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
65 | return try await withUnsafeThrowingContinuation { continuation in
| |- error: 'withUnsafeThrowingContinuation(isolation:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | performSearch(term, completion: { continuation.resume(with: $0) })
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:66:60: error: 'resume(with:)' is only available in macOS 10.15 or newer
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
62 |
63 | @available(iOS 15.0.0, *)
64 | public func performSearch(_ term: String) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
65 | return try await withUnsafeThrowingContinuation { continuation in
66 | performSearch(term, completion: { continuation.resume(with: $0) })
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:65:58: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:65:57: note: expanded code originates here
15 |
16 |
17 | public class AtlasKit {
| `- note: add @available attribute to enclosing class
18 |
19 | // MARK: - Variables
:
62 |
63 | @available(iOS 15.0.0, *)
64 | public func performSearch(_ term: String) async throws -> [AtlasKitPlace] {
| `- note: add @available attribute to enclosing instance method
65 | return try await withUnsafeThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift
|63 |
|64 |
|65 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------
66 | performSearch(term, completion: { continuation.resume(with: $0) })
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:100:48: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
98 | search?.start(completionHandler: { (response, error) in
99 | DispatchQueue.main.async { [weak self] in
100 | guard error == nil, let self = self else {
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | completion(.failure(.generic))
102 | return
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:101:21: warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | DispatchQueue.main.async { [weak self] in
100 | guard error == nil, let self = self else {
101 | completion(.failure(.generic))
| |- warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | return
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:105:35: warning: capture of 'response' with non-sendable type 'MKLocalSearch.Response?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | guard let items = response?.mapItems.filter({ $0.placemark.postalAddress != nil }).map({ $0.placemark }) else {
| `- warning: capture of 'response' with non-sendable type 'MKLocalSearch.Response?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | completion(.success([]))
107 | return
MapKit.MKLocalSearch:3:16: note: class 'Response' does not conform to the 'Sendable' protocol
1 | extension MKLocalSearch {
2 | @available(macOS 10.9, *)
3 | open class Response : NSObject {
| `- note: class 'Response' does not conform to the 'Sendable' protocol
4 | open var mapItems: [MKMapItem] { get }
5 | open var boundingRegion: MKCoordinateRegion { get }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:12:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MapKit'
10 |
11 | import Foundation
12 | import MapKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MapKit'
13 | import Contacts
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:134:17: warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | URLSession.shared.dataTask(with: request) { [weak self] data, response, error in
133 | guard let response = response as? HTTPURLResponse, (200..<300).contains(response.statusCode) else {
134 | completion(.failure(.generic))
| |- warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 | return
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:138:61: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
136 | }
137 |
138 | guard error == nil, let data = data, let self = self else {
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | completion(.failure(.generic))
140 | return
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:175:17: warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | URLSession.shared.dataTask(with: request) { [weak self] data, response, error in
174 | guard let response = response as? HTTPURLResponse, (200..<300).contains(response.statusCode) else {
175 | completion(.failure(.generic))
| |- warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
176 | return
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:179:61: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
177 | }
178 |
179 | guard error == nil, let data = data, let self = self else {
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | completion(.failure(.generic))
181 | return
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:221:17: warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
219 | URLSession.shared.dataTask(with: request) { [weak self] data, response, error in
220 | guard let response = response as? HTTPURLResponse, (200..<300).contains(response.statusCode) else {
221 | completion(.failure(.generic))
| |- warning: capture of 'completion' with non-sendable type '(Result<[AtlasKitPlace], AtlasKitError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
222 | return
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/AtlasKit/AtlasKit.swift:225:61: warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |
16 |
17 | public class AtlasKit {
| `- note: class 'AtlasKit' does not conform to the 'Sendable' protocol
18 |
19 | // MARK: - Variables
:
223 | }
224 |
225 | guard error == nil, let data = data, let self = self else {
| `- warning: capture of 'self' with non-sendable type 'AtlasKit?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
226 | completion(.failure(.generic))
227 | return
BUILD FAILURE 6.0 macosSpm