The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build XCEAPIClient, reference main (c542d3), with Swift 5.10 for Linux on 6 Jan 2025 08:24:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/XCEssentials/APIClient.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/XCEssentials/APIClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c542d31 [ADD] basic SwiftPM "build & test" action workflow.
Cloned https://github.com/XCEssentials/APIClient.git
Revision (git rev-parse @):
c542d313ef1082103170329a2c8327ca91949702
SUCCESS checkout https://github.com/XCEssentials/APIClient.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/XCEssentials/APIClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling XCEAPIClient RequestDefinition.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue>
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
[4/9] Compiling XCEAPIClient URLRequestFacilitator.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:38:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:49:23: error: cannot find type 'URLRequest' in scope
    ) async throws -> URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:107:23: error: cannot find type 'URLRequest' in scope
    ) async throws -> URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:119:22: error: cannot find 'URLRequest' in scope
        var result = URLRequest(url: targetURL)
                     ^~~~~~~~~~
[5/9] Compiling XCEAPIClient Errors.swift
[6/9] Compiling XCEAPIClient Helpers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling XCEAPIClient BasicURLRequestFacilitator.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:36:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession = .shared
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        session: URLSession = .shared
                              ~^~~~~~
[8/9] Compiling XCEAPIClient ParameterEncoding.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue>
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:160:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:158:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:421:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:419:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:468:17: error: cannot find type 'URLRequest' in scope
    ) throws -> URLRequest {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:466:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:568:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:566:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:615:16: error: cannot find 'CFBooleanGetTypeID' in scope
        return CFBooleanGetTypeID() == CFGetTypeID(self)
               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:615:40: error: cannot find 'CFGetTypeID' in scope
        return CFBooleanGetTypeID() == CFGetTypeID(self)
                                       ^~~~~~~~~~~
[9/9] Emitting module XCEAPIClient
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue>
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:160:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:158:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:421:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:419:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:468:17: error: cannot find type 'URLRequest' in scope
    ) throws -> URLRequest {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:466:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:568:17: error: cannot find type 'URLRequest' in scope
    ) -> Result<URLRequest, RequestEncodingIssue> {
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:566:23: error: cannot find type 'URLRequest' in scope
        _ urlRequest: URLRequest,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:36:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession = .shared
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        session: URLSession = .shared
                              ~^~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:38:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:49:23: error: cannot find type 'URLRequest' in scope
    ) async throws -> URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:107:23: error: cannot find type 'URLRequest' in scope
    ) async throws -> URLRequest {
                      ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux