The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crewshin/CoinGecko-Swift.git
Reference: 0.0.1
Cloned https://github.com/crewshin/CoinGecko-Swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/crewshin/CoinGecko-Swift.git at 0.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling CoinGecko_Swift NetworkRequestType.swift
[2/9] 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)))
                                                                        ^
[3/9] 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/9] Compiling CoinGecko_Swift APIErrors.swift
[5/9] Compiling CoinGecko_Swift JSON+.swift
[6/9] Compiling CoinGecko_Swift String+.swift
[7/9] Compiling CoinGecko_Swift PingResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] Compiling CoinGecko_Swift API.swift
[9/9] 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) {
                                                   ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1