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 CoinGecko-Swift, reference 0.0.1 (38a466), with Swift 6.1 for Wasm on 27 May 2025 23:37:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crewshin/CoinGecko-Swift.git
Reference: 0.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/crewshin/CoinGecko-Swift
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 38a466d Cleanup
Cloned https://github.com/crewshin/CoinGecko-Swift.git
Revision (git rev-parse @):
38a466db14b3533dce95f5cfb56a74595805db31
SUCCESS checkout https://github.com/crewshin/CoinGecko-Swift.git at 0.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/crewshin/CoinGecko-Swift.git
https://github.com/crewshin/CoinGecko-Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CoinGecko-Swift",
  "name" : "CoinGecko-Swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CoinGecko-Swift",
      "targets" : [
        "CoinGecko-Swift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoinGecko_SwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "CoinGecko-SwiftTests",
      "path" : "Tests/CoinGecko-SwiftTests",
      "sources" : [
        "CoinGecko_SwiftTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CoinGecko-Swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CoinGecko_Swift",
      "module_type" : "SwiftTarget",
      "name" : "CoinGecko-Swift",
      "path" : "Sources/CoinGecko-Swift",
      "product_memberships" : [
        "CoinGecko-Swift"
      ],
      "sources" : [
        "API.swift",
        "APIErrors.swift",
        "CoinGecko.swift",
        "Extensions/JSON+.swift",
        "Extensions/String+.swift",
        "Models/Responses/PingResponse.swift",
        "NetworkRequestType.swift",
        "Networking.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CoinGecko_Swift PingResponse.swift
[4/10] Compiling CoinGecko_Swift NetworkRequestType.swift
[5/11] Compiling CoinGecko_Swift String+.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling CoinGecko_Swift APIErrors.swift
[7/11] Compiling CoinGecko_Swift JSON+.swift
[8/11] Compiling CoinGecko_Swift API.swift
[9/11] Emitting module CoinGecko_Swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     public struct Response<T> {
20 |         public let value: T
21 |         public let response: URLResponse
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
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/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
[10/11] Compiling CoinGecko_Swift CoinGecko.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/CoinGecko.swift:22:23: error: cannot find 'URLRequest' in scope
20 |     public func ping(completion: @escaping (Result<Networking.Response<PingResponse>, APIError>) -> Void) {
21 |
22 |         var request = URLRequest(url: baseURL.appendingPathComponent("/ping"))
   |                       `- error: cannot find 'URLRequest' in scope
23 |         request.httpMethod = HTTPRequestType.get.rawValue
24 |
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
[11/11] Compiling CoinGecko_Swift Networking.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     public struct Response<T> {
20 |         public let value: T
21 |         public let response: URLResponse
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
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/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:32:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         }
31 |
32 |         URLSession.shared.dataTask(with: tmpRequest) { (data, response, error) in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |             guard let data = data,
34 |                   error == nil,
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:42:73: error: argument type '_' expected to be an instance of a class or class-constrained type
40 |             }
41 |
42 |             completion(.success(Response(value: objectOutput, response: response)))
   |                                                                         `- error: argument type '_' expected to be an instance of a class or class-constrained type
43 |
44 |         }.resume()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling CoinGecko_Swift String+.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Emitting module CoinGecko_Swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     public struct Response<T> {
20 |         public let value: T
21 |         public let response: URLResponse
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
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/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
[4/10] Compiling CoinGecko_Swift CoinGecko.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/CoinGecko.swift:22:23: error: cannot find 'URLRequest' in scope
20 |     public func ping(completion: @escaping (Result<Networking.Response<PingResponse>, APIError>) -> Void) {
21 |
22 |         var request = URLRequest(url: baseURL.appendingPathComponent("/ping"))
   |                       `- error: cannot find 'URLRequest' in scope
23 |         request.httpMethod = HTTPRequestType.get.rawValue
24 |
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
[5/10] Compiling CoinGecko_Swift API.swift
[6/10] Compiling CoinGecko_Swift APIErrors.swift
[7/10] Compiling CoinGecko_Swift NetworkRequestType.swift
[8/10] Compiling CoinGecko_Swift PingResponse.swift
[9/10] Compiling CoinGecko_Swift JSON+.swift
[10/10] Compiling CoinGecko_Swift Networking.swift
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:21:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     public struct Response<T> {
20 |         public let value: T
21 |         public let response: URLResponse
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
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/CoinGecko-Swift/Networking.swift:24:52: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     public func codableTask<T: Decodable>(request: URLRequest, decoder: JSONDecoder = JSONDecoder(), completion: @escaping (Result<Response<T>, Error>) -> Void) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
25 |
26 |         var tmpRequest = request
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:32:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         }
31 |
32 |         URLSession.shared.dataTask(with: tmpRequest) { (data, response, error) in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |             guard let data = data,
34 |                   error == nil,
/host/spi-builder-workspace/Sources/CoinGecko-Swift/Networking.swift:42:73: error: argument type '_' expected to be an instance of a class or class-constrained type
40 |             }
41 |
42 |             completion(.success(Response(value: objectOutput, response: response)))
   |                                                                         `- error: argument type '_' expected to be an instance of a class or class-constrained type
43 |
44 |         }.resume()
BUILD FAILURE 6.1 wasm