Build Information
Failed to build LightSessionKit with Swift 5.9 for macOS (SPM).
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Arafo/LightSessionKit.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/Arafo/LightSessionKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1ac7c52 Add async to RequestAdapter
Cloned https://github.com/Arafo/LightSessionKit.git
Revision (git rev-parse @):
1ac7c5254c296d42c5b983df305601a857806d4c
SUCCESS checkout https://github.com/Arafo/LightSessionKit.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "lightsessionkit",
"name": "LightSessionKit",
"url": "https://github.com/Arafo/LightSessionKit.git",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LightSessionKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/Arafo/LightSessionKit.git
[1/34] Fetching lightsessionkit
Fetched https://github.com/Arafo/LightSessionKit.git (0.22s)
Creating working copy for https://github.com/Arafo/LightSessionKit.git
Working copy of https://github.com/Arafo/LightSessionKit.git resolved at main
warning: '.resolve-product-dependencies': dependency 'lightsessionkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling LightSessionKit InternalError.swift
[2/8] Compiling LightSessionKit Response.swift
[3/8] Compiling LightSessionKit RequestEncoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling LightSessionKit RequestAdapter.swift
[5/8] Compiling LightSessionKit HTTPMethod.swift
[6/8] Emitting module LightSessionKit
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:17: note: add @available attribute to enclosing instance method
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
[7/8] Compiling LightSessionKit LightSessionManager.swift
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:148:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
let (data, httpResponse) = try await session.data(for: self)
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:148:54: note: add 'if #available' version check
let (data, httpResponse) = try await session.data(for: self)
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:147:10: note: add @available attribute to enclosing instance method
func fetch(with session: URLSession) async throws -> Response {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:142:9: note: add @available attribute to enclosing extension
private extension URLRequest {
^
[8/8] Compiling LightSessionKit Response+Decode.swift
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:17: note: add @available attribute to enclosing instance method
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/3] Emitting module LightSessionKit
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:17: note: add @available attribute to enclosing instance method
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
[2/3] Compiling LightSessionKit Response+Decode.swift
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:17: note: add @available attribute to enclosing instance method
public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
[3/3] Compiling LightSessionKit LightSessionManager.swift
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:148:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
let (data, httpResponse) = try await session.data(for: self)
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:148:54: note: add 'if #available' version check
let (data, httpResponse) = try await session.data(for: self)
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:147:10: note: add @available attribute to enclosing instance method
func fetch(with session: URLSession) async throws -> Response {
^
/Users/builder/builds/TDmZkXJm/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:142:9: note: add @available attribute to enclosing extension
private extension URLRequest {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm