The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UnleashProxyClientSwift with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.33.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Unleash/unleash-proxy-client-swift.git
Reference: 1.2.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/Unleash/unleash-proxy-client-swift
 * tag               1.2.1      -> FETCH_HEAD
HEAD is now at 4578bb9 chore: version bump (#85)
Cloned https://github.com/Unleash/unleash-proxy-client-swift.git
Revision (git rev-parse @):
4578bb9cca31fc60ba45a07b6f608b9ed666512c
SUCCESS checkout https://github.com/Unleash/unleash-proxy-client-swift.git at 1.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $workDir
https://github.com/Unleash/unleash-proxy-client-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/cesarferreira/SwiftEventBus.git
[1/529] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git (0.20s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (0.41s)
Creating working copy for https://github.com/cesarferreira/SwiftEventBus.git
Working copy of https://github.com/cesarferreira/SwiftEventBus.git resolved at 5.1.0
Building for debugging...
[1/2] Emitting module SwiftEventBus
[2/2] Compiling SwiftEventBus SwiftEventBus.swift
[5/12] Compiling UnleashProxyClientSwift Printer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Compiling UnleashProxyClientSwift Context.swift
[7/12] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:157:42: error: cannot find type 'URLRequest' in scope
    func createRequest(payload: Data) -> URLRequest {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:29: error: cannot find type 'URLRequest' in scope
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:59:115: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(refreshInterval: Int? = nil, unleashUrl: URL, apiKey: String, session: PollerSession = URLSession.shared, storageProvider: StorageProvider = DictionaryStorageProvider()) {
                                                                                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/UnleashProxyClientSwift.swift:137:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
                                               ^~~~~~~~~~~~~~~~
[8/12] Compiling UnleashProxyClientSwift Metrics.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:157:42: error: cannot find type 'URLRequest' in scope
    func createRequest(payload: Data) -> URLRequest {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:158:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
                      ^~~~~~~~~~
[9/12] Compiling UnleashProxyClientSwift Poller.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:29: error: cannot find type 'URLRequest' in scope
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:59:115: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(refreshInterval: Int? = nil, unleashUrl: URL, apiKey: String, session: PollerSession = URLSession.shared, storageProvider: StorageProvider = DictionaryStorageProvider()) {
                                                                                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:115:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:120:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
        request.cachePolicy = .reloadIgnoringLocalCacheData
                              ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:129:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if httpResponse.statusCode == 304 {
               ~~~~~~~~~~~~ ^~~~~~~~~~
[10/12] Compiling UnleashProxyClientSwift utils.swift
[11/12] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/UnleashProxyClientSwift.swift:137:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
                                               ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
[12/12] Compiling UnleashProxyClientSwift URLSession+Extensions.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
    public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
                                   ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[1/1] Emitting module SwiftEventBus
[4/8] Compiling UnleashProxyClientSwift URLSession+Extensions.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
    public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
                                   ^~~~~~~~~~
[5/8] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/UnleashProxyClientSwift.swift:137:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
                                               ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling UnleashProxyClientSwift Poller.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:29: error: cannot find type 'URLRequest' in scope
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:59:115: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(refreshInterval: Int? = nil, unleashUrl: URL, apiKey: String, session: PollerSession = URLSession.shared, storageProvider: StorageProvider = DictionaryStorageProvider()) {
                                                                                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:115:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:120:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
        request.cachePolicy = .reloadIgnoringLocalCacheData
                              ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:129:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if httpResponse.statusCode == 304 {
               ~~~~~~~~~~~~ ^~~~~~~~~~
[7/8] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:157:42: error: cannot find type 'URLRequest' in scope
    func createRequest(payload: Data) -> URLRequest {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:29: error: cannot find type 'URLRequest' in scope
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:6:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller.swift:59:115: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(refreshInterval: Int? = nil, unleashUrl: URL, apiKey: String, session: PollerSession = URLSession.shared, storageProvider: StorageProvider = DictionaryStorageProvider()) {
                                                                                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/UnleashProxyClientSwift.swift:137:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
                                               ^~~~~~~~~~~~~~~~
[8/8] Compiling UnleashProxyClientSwift Metrics.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:68:32: error: cannot find type 'URLRequest' in scope
    typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:157:42: error: cannot find type 'URLRequest' in scope
    func createRequest(payload: Data) -> URLRequest {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics.swift:158:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
                      ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1