Build Information
Failed to build Emissary with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.28.6
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Fleuronic/Emissary.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-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: 5.8
Building package at path: $PWD/checkout
https://github.com/Fleuronic/Emissary.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling Emissary APIResponse.swift
[2/8] Compiling Emissary RequestState.swift
[3/8] Compiling Emissary RequestError.swift
[4/8] Compiling Emissary Request.swift
[5/8] Compiling Emissary MockAPI.swift
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:14: error: 'Task' is only available in macOS 10.15 or newer
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:14: note: add 'if #available' version check
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:14:7: note: add @available attribute to enclosing instance method
func fakeActivity() async {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:13:8: note: add @available attribute to enclosing extension
public extension MockAPI {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:19: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:19: note: add 'if #available' version check
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:14:7: note: add @available attribute to enclosing instance method
func fakeActivity() async {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:13:8: note: add @available attribute to enclosing extension
public extension MockAPI {
^
[6/8] Compiling Emissary APIError.swift
[7/8] Emitting module Emissary
[8/8] Compiling Emissary API.swift
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:39:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
let (data, _) = try await URLSession.shared.data(for: urlRequest)
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:39:48: note: add 'if #available' version check
let (data, _) = try await URLSession.shared.data(for: urlRequest)
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:29:7: note: add @available attribute to enclosing instance method
func resource<Resource: Decodable>(path: String, method: String) async -> Result<Resource> {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:20:8: note: add @available attribute to enclosing extension
public extension API {
^
[0/1] Planning build
Building for debugging...
[1/3] Emitting module Emissary
[2/3] Compiling Emissary API.swift
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:39:48: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
let (data, _) = try await URLSession.shared.data(for: urlRequest)
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:39:48: note: add 'if #available' version check
let (data, _) = try await URLSession.shared.data(for: urlRequest)
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:29:7: note: add @available attribute to enclosing instance method
func resource<Resource: Decodable>(path: String, method: String) async -> Result<Resource> {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:20:8: note: add @available attribute to enclosing extension
public extension API {
^
[3/3] Compiling Emissary MockAPI.swift
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:14: error: 'Task' is only available in macOS 10.15 or newer
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:14: note: add 'if #available' version check
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:14:7: note: add @available attribute to enclosing instance method
func fakeActivity() async {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:13:8: note: add @available attribute to enclosing extension
public extension MockAPI {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:19: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:16:19: note: add 'if #available' version check
try? await Task.sleep(nanoseconds: .init(duration * 1e9))
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:14:7: note: add @available attribute to enclosing instance method
func fakeActivity() async {
^
/Users/builder/builds/o86TiJKT/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:13:8: note: add @available attribute to enclosing extension
public extension MockAPI {
^
BUILD FAILURE 5.8 macosSpm