This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Emissary with Swift 6.0 (beta) 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/Fleuronic/Emissary.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Fleuronic/Emissary
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c6cbd19 Initial commit
Cloned https://github.com/Fleuronic/Emissary.git
Revision (git rev-parse @):
c6cbd191b304db37ca64ededa4eb858a4adb713b
SUCCESS checkout https://github.com/Fleuronic/Emissary.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Fleuronic/Emissary.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/10] Compiling Emissary RequestState.swift
[4/10] Compiling Emissary Request.swift
[5/10] Compiling Emissary APIError.swift
[6/10] Compiling Emissary RequestError.swift
[7/10] Compiling Emissary APIResponse.swift
[8/10] Compiling Emissary MockAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:14: error: 'Task' is only available in macOS 10.15 or newer
11 |
12 | // MARK: -
13 | public extension MockAPI {
   |        `- note: add @available attribute to enclosing extension
14 | 	func fakeActivity() async {
   |       `- note: add @available attribute to enclosing instance method
15 | 		let duration = TimeInterval.fakeActivityDuration
16 | 		try? await Task.sleep(nanoseconds: .init(duration * 1e9))
   |              |- error: 'Task' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
17 | 	}
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:19: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
11 |
12 | // MARK: -
13 | public extension MockAPI {
   |        `- note: add @available attribute to enclosing extension
14 | 	func fakeActivity() async {
   |       `- note: add @available attribute to enclosing instance method
15 | 		let duration = TimeInterval.fakeActivityDuration
16 | 		try? await Task.sleep(nanoseconds: .init(duration * 1e9))
   |                   |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
17 | 	}
18 |
[9/10] Emitting module Emissary
[10/10] Compiling Emissary API.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emissary/API/API.swift:39:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
18 |
19 | // MARK: -
20 | public extension API {
   |        `- note: add @available attribute to enclosing extension
21 | 	typealias Result<Resource: Decodable> = Swift.Result<Resource, Request.Error<Error>>
22 |
   :
27 | 	}
28 |
29 | 	func resource<Resource: Decodable>(path: String, method: String) async -> Result<Resource> {
   |       `- note: add @available attribute to enclosing instance method
30 | 		do {
31 | 			let url = URL(string: "\(baseURL.absoluteString)\(path)")!
   :
37 | 			}
38 |
39 | 			let (data, _) = try await URLSession.shared.data(for: urlRequest)
   |                                                |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
   |                                                `- note: add 'if #available' version check
40 | 			return try .success(resource(from: data))
41 | 		} catch let error as Error {
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.