The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoinGecko-Swift with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crewshin/CoinGecko-Swift.git
Reference: 0.0.1
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/crewshin/CoinGecko-Swift
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 38a466d Cleanup
Cloned https://github.com/crewshin/CoinGecko-Swift.git
Revision (git rev-parse @):
38a466db14b3533dce95f5cfb56a74595805db31
SUCCESS checkout https://github.com/crewshin/CoinGecko-Swift.git at 0.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/crewshin/CoinGecko-Swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CoinGecko_Swift CoinGecko.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/CoinGecko.swift:22:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: baseURL.appendingPathComponent("/ping"))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
[4/11] Compiling CoinGecko_Swift String+.swift
[5/11] Compiling CoinGecko_Swift PingResponse.swift
[6/11] Compiling CoinGecko_Swift NetworkRequestType.swift
[7/11] Compiling CoinGecko_Swift JSON+.swift
[8/11] Compiling CoinGecko_Swift Networking.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public let response: URLResponse
                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:32:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        URLSession.shared.dataTask(with: tmpRequest) { (data, response, error) in
        ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:42:73: error: argument type '_' expected to be an instance of a class or class-constrained type
            completion(.success(Response(value: objectOutput, response: response)))
                                                                        ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Compiling CoinGecko_Swift APIErrors.swift
[10/11] Emitting module CoinGecko_Swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public let response: URLResponse
                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
[11/11] Compiling CoinGecko_Swift API.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling CoinGecko_Swift Networking.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public let response: URLResponse
                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:32:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        URLSession.shared.dataTask(with: tmpRequest) { (data, response, error) in
        ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:42:73: error: argument type '_' expected to be an instance of a class or class-constrained type
            completion(.success(Response(value: objectOutput, response: response)))
                                                                        ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module CoinGecko_Swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public let response: URLResponse
                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
[4/4] Compiling CoinGecko_Swift CoinGecko.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/CoinGecko.swift:22:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: baseURL.appendingPathComponent("/ping"))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
    public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
                                                   ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1