Build Information
Failed to build LightSessionKit, reference main (1ac7c5), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 17:04:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Arafo/LightSessionKit.git
Reference: main
Initialized empty Git repository in /Users/admin/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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Arafo/LightSessionKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/10] Compiling LightSessionKit HTTPMethod.swift
[4/10] Compiling LightSessionKit RequestEncoder.swift
[5/10] Compiling LightSessionKit LightSessionManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:148:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
140 | }
141 |
142 | private extension URLRequest {
| `- note: add @available attribute to enclosing extension
143 | func prepare(_ transform: @escaping (Self) async -> Self) async -> Self {
144 | return await transform(self)
145 | }
146 |
147 | func fetch(with session: URLSession) async throws -> Response {
| `- note: add @available attribute to enclosing instance method
148 | let (data, httpResponse) = try await session.data(for: self)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
149 | return Response(request: self, httpResponse: httpResponse, data: data)
150 | }
[6/10] Compiling LightSessionKit Response.swift
[7/10] Compiling LightSessionKit RequestAdapter.swift
[8/10] Compiling LightSessionKit Response+Decode.swift
/Users/admin/builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
8 | import Combine
9 |
10 | extension Response {
| `- note: add @available attribute to enclosing extension
11 |
12 | /// Decodes the output from the upstream using a specified decoder.
:
16 | /// - decoder: A decoder that implements the TopLevelDecoder protocol.
17 | /// - Returns: The decoded data.
18 | public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
| | `- error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | guard let input = self.data as? Coder.Input else {
20 | return nil
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling LightSessionKit InternalError.swift
[10/10] Emitting module LightSessionKit
/Users/admin/builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:18:120: error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
8 | import Combine
9 |
10 | extension Response {
| `- note: add @available attribute to enclosing extension
11 |
12 | /// Decodes the output from the upstream using a specified decoder.
:
16 | /// - decoder: A decoder that implements the TopLevelDecoder protocol.
17 | /// - Returns: The decoded data.
18 | public func decode<Item, Coder>(_ type: Item.Type, decoder: Coder) throws -> Item? where Item : Decodable, Coder : TopLevelDecoder {
| | `- error: 'TopLevelDecoder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | guard let input = self.data as? Coder.Input else {
20 | return nil
BUILD FAILURE 6.2 macosSpm