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 LightSessionKit with Swift 5.10 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Arafo/LightSessionKit.git
Reference: 0.0.2
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/Arafo/LightSessionKit
 * tag               0.0.2      -> FETCH_HEAD
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 0.0.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Arafo/LightSessionKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--423B1241ED78D482.txt
[3/10] Compiling LightSessionKit RequestAdapter.swift
[4/10] Compiling LightSessionKit Response.swift
[5/10] Compiling LightSessionKit Response+Decode.swift
/Users/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
[6/10] Compiling LightSessionKit LightSessionManager.swift
/Users/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:142:9: note: add @available attribute to enclosing extension
private extension URLRequest {
        ^
[7/10] Compiling LightSessionKit RequestEncoder.swift
[8/10] Compiling LightSessionKit HTTPMethod.swift
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/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/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...
[0/1] Write swift-version--423B1241ED78D482.txt
[2/4] Compiling LightSessionKit Response+Decode.swift
/Users/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/Response/Response+Decode.swift:10:1: note: add @available attribute to enclosing extension
extension Response {
^
[3/4] Compiling LightSessionKit LightSessionManager.swift
/Users/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LightSessionKit/LightSessionManager.swift:142:9: note: add @available attribute to enclosing extension
private extension URLRequest {
        ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/4] Emitting module LightSessionKit
/Users/builder/builds/UKfvDsi8u/2/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/UKfvDsi8u/2/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/UKfvDsi8u/2/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
BUILD FAILURE 5.10 macosSpm