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 TibberSwift, reference 1.1.0 (831639), with Swift 6.0 for Linux on 5 Mar 2025 10:49:14 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ppeelen/TibberSwift.git
Reference: 1.1.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/ppeelen/TibberSwift
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 831639b Push notifications added (#9)
Cloned https://github.com/ppeelen/TibberSwift.git
Revision (git rev-parse @):
831639bb4518d829b0deb2155876d40a10225742
SUCCESS checkout https://github.com/ppeelen/TibberSwift.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ppeelen/TibberSwift.git
https://github.com/ppeelen/TibberSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "TibberSwift",
  "name" : "TibberSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "TibberSwift",
      "targets" : [
        "TibberSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TibberSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "TibberSwiftTests",
      "path" : "Tests/TibberSwiftTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/TibberSwiftTests/Operations",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TibberSwiftTests/json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "GraphQLOperationTests.swift",
        "TestDataManager.swift",
        "TibberSwiftTests.swift",
        "URLSessionMock.swift"
      ],
      "target_dependencies" : [
        "TibberSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TibberSwift",
      "module_type" : "SwiftTarget",
      "name" : "TibberSwift",
      "path" : "Sources/TibberSwift",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "TibberSwift"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/TibberSwift/Queries/Consumption.graphql",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/TibberSwift/Queries/Homes.graphql",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/TibberSwift/Queries/LoggedInUser.graphql",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Entities/Consumption.swift",
        "Entities/Home.swift",
        "Entities/LoggedInUser.swift",
        "Entities/PushNotificationResult.swift",
        "Extensions/JSONDecoder+Date.swift",
        "GraphQL/GraphQLOperation.swift",
        "GraphQL/GraphQLResult.swift",
        "Operations/ConsumptionOperation.swift",
        "Operations/HomesOperation.swift",
        "Operations/Inputs/ConsumptionInput.swift",
        "Operations/Inputs/EmptyInput.swift",
        "Operations/LoggedInUserOperation.swift",
        "Operations/PushNotificationOperation.swift",
        "TibberSwift.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-log.git
[1/3770] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.53s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Building for debugging...
[0/6] Copying Homes.graphql
[0/6] Copying Consumption.graphql
[0/6] Write sources
[1/6] Copying LoggedInUser.graphql
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/11] Compiling Logging MetadataProvider.swift
[8/11] Compiling Logging Locks.swift
[9/11] Compiling Logging LogHandler.swift
[10/11] Emitting module Logging
[11/11] Compiling Logging Logging.swift
[13/27] Compiling TibberSwift PushNotificationOperation.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     /// - Parameter apiKey: The API Key from Tibber
 18 |     public convenience init(apiKey: String) {
 19 |         self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
    |                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:87:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 85 |         logger.info("Received response. Got data of \(data.count) bytes.")
 86 |
 87 |         guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 88 |             logger.error("Invalid response received. Could not get a status code.")
 89 |             throw TibberSwiftError.invalidResponse
[14/27] Compiling TibberSwift TibberSwift.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     /// - Parameter apiKey: The API Key from Tibber
 18 |     public convenience init(apiKey: String) {
 19 |         self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
    |                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:87:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 85 |         logger.info("Received response. Got data of \(data.count) bytes.")
 86 |
 87 |         guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 88 |             logger.error("Invalid response received. Could not get a status code.")
 89 |             throw TibberSwiftError.invalidResponse
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/28] Emitting module TibberSwift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
[16/28] Compiling TibberSwift resource_bundle_accessor.swift
[17/28] Compiling TibberSwift EmptyInput.swift
[18/28] Compiling TibberSwift LoggedInUserOperation.swift
[19/28] Compiling TibberSwift GraphQLResult.swift
[20/28] Compiling TibberSwift ConsumptionOperation.swift
[21/28] Compiling TibberSwift LoggedInUser.swift
[22/28] Compiling TibberSwift PushNotificationResult.swift
[23/28] Compiling TibberSwift Consumption.swift
[24/28] Compiling TibberSwift Home.swift
[25/28] Compiling TibberSwift HomesOperation.swift
[26/28] Compiling TibberSwift ConsumptionInput.swift
[27/28] Compiling TibberSwift JSONDecoder+Date.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |
83 |         request.httpMethod = "POST"
[28/28] Compiling TibberSwift GraphQLOperation.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |
83 |         request.httpMethod = "POST"
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Emitting module Logging
[3/6] Compiling Logging Logging.swift
[4/6] Compiling Logging LogHandler.swift
[5/6] Compiling Logging Locks.swift
[6/6] Compiling Logging MetadataProvider.swift
[8/22] Compiling TibberSwift EmptyInput.swift
[9/22] Compiling TibberSwift LoggedInUserOperation.swift
[10/22] Compiling TibberSwift HomesOperation.swift
[11/22] Compiling TibberSwift ConsumptionInput.swift
[12/22] Compiling TibberSwift PushNotificationOperation.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     /// - Parameter apiKey: The API Key from Tibber
 18 |     public convenience init(apiKey: String) {
 19 |         self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
    |                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:87:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 85 |         logger.info("Received response. Got data of \(data.count) bytes.")
 86 |
 87 |         guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 88 |             logger.error("Invalid response received. Could not get a status code.")
 89 |             throw TibberSwiftError.invalidResponse
[13/22] Compiling TibberSwift TibberSwift.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     /// - Parameter apiKey: The API Key from Tibber
 18 |     public convenience init(apiKey: String) {
 19 |         self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
    |                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:87:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 85 |         logger.info("Received response. Got data of \(data.count) bytes.")
 86 |
 87 |         guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 88 |             logger.error("Invalid response received. Could not get a status code.")
 89 |             throw TibberSwiftError.invalidResponse
[14/23] Compiling TibberSwift LoggedInUser.swift
[15/23] Compiling TibberSwift PushNotificationResult.swift
[16/23] Compiling TibberSwift GraphQLResult.swift
[17/23] Compiling TibberSwift ConsumptionOperation.swift
[18/23] Compiling TibberSwift JSONDecoder+Date.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |
83 |         request.httpMethod = "POST"
[19/23] Compiling TibberSwift GraphQLOperation.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |
83 |         request.httpMethod = "POST"
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/23] Compiling TibberSwift Consumption.swift
[21/23] Compiling TibberSwift Home.swift
[22/23] Emitting module TibberSwift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 |     func encode(to encoder: Encoder) throws
23 |     func getURLRequest(apiKey: String) throws -> URLRequest
   |                                                  `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 |     }
79 |
80 |     internal func getURLRequest(apiKey: String) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
81 |         var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:51: error: cannot find type 'URLSessionTaskDelegate' in scope
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | }
141 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |
 22 |     /// Meant for dependency injection while using tests
 23 |     internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
    |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 24 |         self.apiKey = apiKey
 25 |         self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:139:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | protocol URLSessionDefinition {
139 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | }
141 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:28: error: cannot find type 'URLRequest' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                            `- error: cannot find type 'URLRequest' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:51: error: cannot find type 'URLSessionTaskDelegate' in scope
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                   `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 |         try await data(for: request, delegate: delegate)
145 |     }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:143:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |
142 | extension URLSessionDefinition {
143 |     func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         try await data(for: request, delegate: delegate)
145 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:148:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
146 | }
147 |
148 | extension URLSession: URLSessionDefinition { }
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
149 |
[23/23] Compiling TibberSwift resource_bundle_accessor.swift
BUILD FAILURE 6.0 linux