Build Information
Failed to build Emissary with Swift 5.9 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0-Beta.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/TDmZkXJm/1/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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "emissary",
"name": "Emissary",
"url": "https://github.com/Fleuronic/Emissary.git",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Emissary",
"dependencies": [
]
}
]
}
Fetching https://github.com/Fleuronic/Emissary.git
[1/427] Fetching emissary
Fetched https://github.com/Fleuronic/Emissary.git (0.23s)
Creating working copy for https://github.com/Fleuronic/Emissary.git
Working copy of https://github.com/Fleuronic/Emissary.git resolved at main
warning: '.resolve-product-dependencies': dependency 'emissary' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD/checkout
https://github.com/Fleuronic/Emissary.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling Emissary APIError.swift
[2/8] Compiling Emissary APIResponse.swift
[3/8] Compiling Emissary API.swift
/Users/builder/builds/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:20:8: note: add @available attribute to enclosing extension
public extension API {
^
[4/8] Compiling Emissary Request.swift
[5/8] Compiling Emissary MockAPI.swift
/Users/builder/builds/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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 RequestState.swift
[7/8] Emitting module Emissary
[8/8] Compiling Emissary RequestError.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[1/3] Emitting module Emissary
[2/3] Compiling Emissary MockAPI.swift
/Users/builder/builds/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/Mock/MockAPI.swift:13:8: note: add @available attribute to enclosing extension
public extension MockAPI {
^
[3/3] Compiling Emissary API.swift
/Users/builder/builds/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/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/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Emissary/API/API.swift:20:8: note: add @available attribute to enclosing extension
public extension API {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm