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 Catbird, reference 0.11.0 (ad1187), with Swift 6.1 for Android on 28 May 2025 04:53:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RedMadRobot/catbird.git
Reference: 0.11.0
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/RedMadRobot/catbird
 * tag               0.11.0     -> FETCH_HEAD
HEAD is now at ad11879 Version 0.11.0
Cloned https://github.com/RedMadRobot/catbird.git
Revision (git rev-parse @):
ad118798331243b6debd0e783054fb0682f1734d
SUCCESS checkout https://github.com/RedMadRobot/catbird.git at 0.11.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RedMadRobot/catbird.git
https://github.com/RedMadRobot/catbird.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Catbird",
  "name" : "Catbird",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "CatbirdAPI",
      "targets" : [
        "CatbirdAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CatbirdAPITests",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPITests",
      "path" : "Packages/CatbirdAPI/Tests",
      "sources" : [
        "CatbirdAPITests/CatbirdActionTests.swift",
        "CatbirdAPITests/CatbirdTests.swift",
        "CatbirdAPITests/Network.swift",
        "CatbirdAPITests/PatternMatchTests.swift"
      ],
      "target_dependencies" : [
        "CatbirdAPI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CatbirdAPI",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPI",
      "path" : "Packages/CatbirdAPI/Sources",
      "product_memberships" : [
        "CatbirdAPI"
      ],
      "sources" : [
        "CatbirdAPI/Catbird.swift",
        "CatbirdAPI/CatbirdAction.swift",
        "CatbirdAPI/CatbirdError.swift",
        "CatbirdAPI/PatternMatch.swift",
        "CatbirdAPI/RequestPattern.swift",
        "CatbirdAPI/ResponseMock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Emitting module CatbirdAPI
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// Network session.
 28 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Unique catbird id for parallel test running.
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:33:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public var parallelId: String?
 32 |
 33 |     public init(url: URL = localhost, session: URLSession = session, parallelId: String? = nil) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.url = url
 35 |         self.session = session
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:48:90: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     /// - Returns: Session task.
 47 |     @discardableResult
 48 |     public func send(_ action: CatbirdAction, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let request = try! action.makeRequest(to: url, parallelId: parallelId)
 50 |         return dataTask(request, completion: completion)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:41: error: cannot find type 'URLRequest' in scope
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:96: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:92:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 90 | }
 91 |
 92 | extension URLSessionTask {
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 93 |     /// Wait until task completed.
 94 |     fileprivate func wait() {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:104:72: error: cannot find type 'URLRequest' in scope
102 |
103 | extension CatbirdAction {
104 |     func makeRequest(to url: URL, parallelId: String? = nil) throws -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'errorDomain' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// HTTP status code.
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'GET' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'POST' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'PUT' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'PATCH' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'DELETE' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |     }
51 | }
[4/9] Compiling CatbirdAPI Catbird.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// Network session.
 28 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Unique catbird id for parallel test running.
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:33:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public var parallelId: String?
 32 |
 33 |     public init(url: URL = localhost, session: URLSession = session, parallelId: String? = nil) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.url = url
 35 |         self.session = session
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:48:90: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     /// - Returns: Session task.
 47 |     @discardableResult
 48 |     public func send(_ action: CatbirdAction, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let request = try! action.makeRequest(to: url, parallelId: parallelId)
 50 |         return dataTask(request, completion: completion)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:41: error: cannot find type 'URLRequest' in scope
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:96: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:92:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 90 | }
 91 |
 92 | extension URLSessionTask {
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 93 |     /// Wait until task completed.
 94 |     fileprivate func wait() {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:104:72: error: cannot find type 'URLRequest' in scope
102 |
103 | extension CatbirdAction {
104 |     func makeRequest(to url: URL, parallelId: String? = nil) throws -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
 17 |         let configuration = URLSessionConfiguration.ephemeral
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:74: error: 'nil' requires a contextual type
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                                                                          `- error: 'nil' requires a contextual type
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:95: error: cannot infer contextual base in reference to member 'main'
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                                                                                               `- error: cannot infer contextual base in reference to member 'main'
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:66:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'wait'
 64 |         })
 65 |
 66 |         task.wait()
    |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'wait'
 67 |
 68 |         if let error = outError {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:76:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 77 |             switch (response, error) {
 78 |             case (_, let error?):
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:81:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                 completion(error)
 80 |             case (let http as HTTPURLResponse, _):
 81 |                 completion(CatbirdError(statusCode: http.statusCode, data: data))
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 82 |             default:
 83 |                 completion(nil)
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:107:26: error: cannot find 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
107 |         var urlRequest = URLRequest(url: request.url)
    |                          `- error: cannot find 'URLRequest' in scope
108 |         urlRequest.httpMethod = request.httpMethod
109 |         for (key, value) in request.headers {
[5/9] Compiling CatbirdAPI ResponseMock.swift
[6/9] Compiling CatbirdAPI PatternMatch.swift
[7/9] Compiling CatbirdAPI RequestPattern.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'GET' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'POST' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'PUT' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'PATCH' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: add '@MainActor' to make static property 'DELETE' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |     }
51 | }
[8/9] Compiling CatbirdAPI CatbirdAction.swift
[9/9] Compiling CatbirdAPI CatbirdError.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'errorDomain' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// HTTP status code.
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:35:32: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
33 |     public var errorDescription: String? {
34 | #if !os(Linux)
35 |         return HTTPURLResponse.localizedString(forStatusCode: errorCode)
   |                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
36 | #else
37 |         return "Status code: \(errorCode)"
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling CatbirdAPI PatternMatch.swift
[3/8] Compiling CatbirdAPI RequestPattern.swift
[4/8] Compiling CatbirdAPI ResponseMock.swift
[5/8] Compiling CatbirdAPI CatbirdError.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:35:32: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
33 |     public var errorDescription: String? {
34 | #if !os(Linux)
35 |         return HTTPURLResponse.localizedString(forStatusCode: errorCode)
   |                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
36 | #else
37 |         return "Status code: \(errorCode)"
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling CatbirdAPI CatbirdAction.swift
[7/8] Emitting module CatbirdAPI
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// Network session.
 28 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Unique catbird id for parallel test running.
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:33:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public var parallelId: String?
 32 |
 33 |     public init(url: URL = localhost, session: URLSession = session, parallelId: String? = nil) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.url = url
 35 |         self.session = session
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:48:90: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     /// - Returns: Session task.
 47 |     @discardableResult
 48 |     public func send(_ action: CatbirdAction, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let request = try! action.makeRequest(to: url, parallelId: parallelId)
 50 |         return dataTask(request, completion: completion)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:41: error: cannot find type 'URLRequest' in scope
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:96: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:92:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 90 | }
 91 |
 92 | extension URLSessionTask {
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 93 |     /// Wait until task completed.
 94 |     fileprivate func wait() {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:104:72: error: cannot find type 'URLRequest' in scope
102 |
103 | extension CatbirdAction {
104 |     func makeRequest(to url: URL, parallelId: String? = nil) throws -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
[8/8] Compiling CatbirdAPI Catbird.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// Network session.
 28 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Unique catbird id for parallel test running.
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:33:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public var parallelId: String?
 32 |
 33 |     public init(url: URL = localhost, session: URLSession = session, parallelId: String? = nil) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.url = url
 35 |         self.session = session
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/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:48:90: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     /// - Returns: Session task.
 47 |     @discardableResult
 48 |     public func send(_ action: CatbirdAction, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let request = try! action.makeRequest(to: url, parallelId: parallelId)
 50 |         return dataTask(request, completion: completion)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:41: error: cannot find type 'URLRequest' in scope
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:75:96: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     // MARK: - Private
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
    |                                                                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
 77 |             switch (response, error) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:92:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 90 | }
 91 |
 92 | extension URLSessionTask {
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
 93 |     /// Wait until task completed.
 94 |     fileprivate func wait() {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:104:72: error: cannot find type 'URLRequest' in scope
102 |
103 | extension CatbirdAction {
104 |     func makeRequest(to url: URL, parallelId: String? = nil) throws -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 15 |     /// Default network session.
 16 |     public static var session: URLSession {
 17 |         let configuration = URLSessionConfiguration.ephemeral
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:74: error: 'nil' requires a contextual type
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                                                                          `- error: 'nil' requires a contextual type
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:19:95: error: cannot infer contextual base in reference to member 'main'
 17 |         let configuration = URLSessionConfiguration.ephemeral
 18 |         configuration.timeoutIntervalForRequest = 5
 19 |         let session = URLSession(configuration: configuration, delegate: nil, delegateQueue: .main)
    |                                                                                               `- error: cannot infer contextual base in reference to member 'main'
 20 |         session.sessionDescription = "Catbird session"
 21 |         return session
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:66:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'wait'
 64 |         })
 65 |
 66 |         task.wait()
    |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'wait'
 67 |
 68 |         if let error = outError {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:76:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 74 |
 75 |     private func dataTask(_ urlRequest: URLRequest, completion: @escaping (Error?) -> Void) -> URLSessionTask {
 76 |         let task = session.dataTask(with: urlRequest) { (data: Data?, response: URLResponse?, error: Error?) in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 77 |             switch (response, error) {
 78 |             case (_, let error?):
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:81:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                 completion(error)
 80 |             case (let http as HTTPURLResponse, _):
 81 |                 completion(CatbirdError(statusCode: http.statusCode, data: data))
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 82 |             default:
 83 |                 completion(nil)
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:107:26: error: cannot find 'URLRequest' in scope
105 |         let request = try makeHTTPRequest(to: url, parallelId: parallelId)
106 |
107 |         var urlRequest = URLRequest(url: request.url)
    |                          `- error: cannot find 'URLRequest' in scope
108 |         urlRequest.httpMethod = request.httpMethod
109 |         for (key, value) in request.headers {
BUILD FAILURE 6.1 android