The Swift Package Index logo.Swift Package Index

Build Information

Failed to build XCEAPIClient, reference main (c542d3), with Swift 6.2 for Linux on 22 Jun 2025 20:24:35 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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:             6.2
Building package at path:  $PWD
https://github.com/XCEssentials/APIClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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.
34 | struct BasicURLRequestFacilitator: URLRequestFacilitator
35 | {
36 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 |     public
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
44 |     init(
45 |         sharedPrefixURL: URL,
46 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     ) {
48 |         self.sharedPrefixURL = sharedPrefixURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 |     init(
45 |         sharedPrefixURL: URL,
46 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     ) {
48 |         self.sharedPrefixURL = sharedPrefixURL
[4/9] Compiling XCEAPIClient ParameterEncoding.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
 66 |         _ urlRequest: URLRequest,
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
    |                 `- error: cannot find type 'URLRequest' in scope
 69 | }
 70 |
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     /// - returns: The encoded request.
 65 |     func encode(
 66 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:160:17: error: cannot find type 'URLRequest' in scope
158 |         _ urlRequest: URLRequest,
159 |         with parameters: Parameters?
160 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
161 |
162 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:158:23: error: cannot find type 'URLRequest' in scope
156 |     /// - returns: The encoded request.
157 |     public func encode(
158 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
159 |         with parameters: Parameters?
160 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:421:17: error: cannot find type 'URLRequest' in scope
419 |         _ urlRequest: URLRequest,
420 |         with parameters: Parameters?
421 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
422 |
423 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:419:23: error: cannot find type 'URLRequest' in scope
417 |     public
418 |     func encode(
419 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
420 |         with parameters: Parameters?
421 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:468:17: error: cannot find type 'URLRequest' in scope
466 |         _ urlRequest: URLRequest,
467 |         withJSONObject jsonObject: Any? = nil
468 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
469 |
470 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:466:23: error: cannot find type 'URLRequest' in scope
464 |     public
465 |     func encode(
466 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
467 |         withJSONObject jsonObject: Any? = nil
468 |     ) throws -> URLRequest {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:568:17: error: cannot find type 'URLRequest' in scope
566 |         _ urlRequest: URLRequest,
567 |         with parameters: Parameters?
568 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
569 |
570 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:566:23: error: cannot find type 'URLRequest' in scope
564 |     public
565 |     func encode(
566 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
567 |         with parameters: Parameters?
568 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:615:16: error: cannot find 'CFBooleanGetTypeID' in scope
613 |     var isBool: Bool
614 |     {
615 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
616 |     }
617 | }
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:615:40: error: cannot find 'CFGetTypeID' in scope
613 |     var isBool: Bool
614 |     {
615 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
616 |     }
617 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/9] Emitting module XCEAPIClient
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
 66 |         _ urlRequest: URLRequest,
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
    |                 `- error: cannot find type 'URLRequest' in scope
 69 | }
 70 |
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     /// - returns: The encoded request.
 65 |     func encode(
 66 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:160:17: error: cannot find type 'URLRequest' in scope
158 |         _ urlRequest: URLRequest,
159 |         with parameters: Parameters?
160 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
161 |
162 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:158:23: error: cannot find type 'URLRequest' in scope
156 |     /// - returns: The encoded request.
157 |     public func encode(
158 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
159 |         with parameters: Parameters?
160 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:421:17: error: cannot find type 'URLRequest' in scope
419 |         _ urlRequest: URLRequest,
420 |         with parameters: Parameters?
421 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
422 |
423 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:419:23: error: cannot find type 'URLRequest' in scope
417 |     public
418 |     func encode(
419 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
420 |         with parameters: Parameters?
421 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:468:17: error: cannot find type 'URLRequest' in scope
466 |         _ urlRequest: URLRequest,
467 |         withJSONObject jsonObject: Any? = nil
468 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
469 |
470 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:466:23: error: cannot find type 'URLRequest' in scope
464 |     public
465 |     func encode(
466 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
467 |         withJSONObject jsonObject: Any? = nil
468 |     ) throws -> URLRequest {
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:568:17: error: cannot find type 'URLRequest' in scope
566 |         _ urlRequest: URLRequest,
567 |         with parameters: Parameters?
568 |     ) -> Result<URLRequest, RequestEncodingIssue> {
    |                 `- error: cannot find type 'URLRequest' in scope
569 |
570 |         var urlRequest = urlRequest
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:566:23: error: cannot find type 'URLRequest' in scope
564 |     public
565 |     func encode(
566 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
567 |         with parameters: Parameters?
568 |     ) -> Result<URLRequest, RequestEncodingIssue> {
/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.
34 | struct BasicURLRequestFacilitator: URLRequestFacilitator
35 | {
36 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 |     public
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
44 |     init(
45 |         sharedPrefixURL: URL,
46 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     ) {
48 |         self.sharedPrefixURL = sharedPrefixURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCEAPIClient/BasicURLRequestFacilitator.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 |     init(
45 |         sharedPrefixURL: URL,
46 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     ) {
48 |         self.sharedPrefixURL = sharedPrefixURL
/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.
 36 |     init(
 37 |         sharedPrefixURL: URL,
 38 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     )
 40 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:49:23: error: cannot find type 'URLRequest' in scope
 47 |     func prepareRequest<R: RequestDefinition>(
 48 |         from definition: R
 49 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
 50 |
 51 |         let parametersData: Data
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:107:23: error: cannot find type 'URLRequest' in scope
105 |         parameterEncoding: ParameterEncoding,
106 |         parameters: Parameters? = nil
107 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
108 |
109 |         guard
[6/9] Compiling XCEAPIClient Helpers.swift
[7/9] Compiling XCEAPIClient Errors.swift
[8/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.
 36 |     init(
 37 |         sharedPrefixURL: URL,
 38 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     )
 40 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:49:23: error: cannot find type 'URLRequest' in scope
 47 |     func prepareRequest<R: RequestDefinition>(
 48 |         from definition: R
 49 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
 50 |
 51 |         let parametersData: Data
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:107:23: error: cannot find type 'URLRequest' in scope
105 |         parameterEncoding: ParameterEncoding,
106 |         parameters: Parameters? = nil
107 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
108 |
109 |         guard
/host/spi-builder-workspace/Sources/XCEAPIClient/URLRequestFacilitator.swift:119:22: error: cannot find 'URLRequest' in scope
117 |         var targetURL = sharedPrefixURL
118 |         targetURL.appendPathComponent(encodedRelativePath)
119 |         var result = URLRequest(url: targetURL)
    |                      `- error: cannot find 'URLRequest' in scope
120 |         result.httpMethod = method?.rawValue
121 |
[9/9] Compiling XCEAPIClient RequestDefinition.swift
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:68:17: error: cannot find type 'URLRequest' in scope
 66 |         _ urlRequest: URLRequest,
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
    |                 `- error: cannot find type 'URLRequest' in scope
 69 | }
 70 |
/host/spi-builder-workspace/Sources/XCEAPIClient/3rdParty/Alamofire/ParameterEncoding.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     /// - returns: The encoded request.
 65 |     func encode(
 66 |         _ urlRequest: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |         with parameters: Parameters?
 68 |     ) -> Result<URLRequest, RequestEncodingIssue>
BUILD FAILURE 6.2 linux