Skip to content

Instantly share code, notes, and snippets.

@muxueqz
Last active December 6, 2019 04:11
Show Gist options
  • Save muxueqz/93e646a292034705b223abe1ccf4b97a to your computer and use it in GitHub Desktop.
Save muxueqz/93e646a292034705b223abe1ccf4b97a to your computer and use it in GitHub Desktop.
root@Nervos-staging:/data/ckb-testnet-faucet-staging-run# docker-compose up faucet
Starting ckb-testnet-faucet-staging-run_faucet_1 ... done
Attaching to ckb-testnet-faucet-staging-run_faucet_1
faucet_1 | 'swift-nio-zlib-support' zlib.pc: warning: couldn't find pc file
faucet_1 | [1/16] Compiling Sodium Aead.swift
faucet_1 | [2/17] Compiling NIOPriorityQueue Heap.swift
faucet_1 | [3/18] Compiling Debugging Debuggable.swift
faucet_1 | [4/19] Compiling secp256k1.c
faucet_1 | [5/19] Compiling lax_der_privatekey_parsing.c
faucet_1 | [6/19] Compiling lax_der_parsing.c
faucet_1 | [7/19] Compiling CNIOSHA1 c_nio_sha1.c
faucet_1 | [8/20] Compiling COperatingSystem libc.swift
faucet_1 | [9/21] Compiling secp256k1 Exporter.swift
faucet_1 | [10/21] Compiling CNIOOpenSSL shims.c
faucet_1 | [11/21] Compiling CNIOOpenSSL helpers.c
faucet_1 | [12/21] Compiling CNIOLinux shim.c
faucet_1 | [13/21] Compiling CNIOHTTPParser c_nio_http_parser.c
faucet_1 | [14/21] Compiling CCryptoOpenSSL shim.c
faucet_1 | [15/21] Compiling CBcrypt blf.c
faucet_1 | [16/21] Compiling CBcrypt bcrypt.c
faucet_1 | [17/21] Compiling CBase32 base32.c
faucet_1 | [18/21] Compiling c-atomics.c
faucet_1 | [19/22] Compiling SwiftyBeaver AES256CBC.swift
faucet_1 | [20/22] Compiling NIOConcurrencyHelpers atomics.swift
faucet_1 | [21/23] Compiling CryptoSwift AEAD.swift
faucet_1 | [22/24] Compiling CKB APIClient+Chain.swift
faucet_1 | /app/.build/checkouts/ckb-sdk-swift/Source/API/APIClient.swift:55:71: error: use of undeclared type 'URLRequest'
faucet_1 | private func createRequest<R>(_ request: APIRequest<R>) throws -> URLRequest {
faucet_1 | ^~~~~~~~~~
faucet_1 | /app/.build/checkouts/ckb-sdk-swift/Source/API/APIClient.swift:32:9: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
faucet_1 | URLSession.shared.dataTask(with: try createRequest(request)) { (data, _, err) in
faucet_1 | ^~~~~~~~~~
faucet_1 | Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
faucet_1 | public typealias URLSession = AnyObject
faucet_1 | ^
faucet_1 | /app/.build/checkouts/ckb-sdk-swift/Source/API/APIClient.swift:56:19: error: use of unresolved identifier 'URLRequest'
faucet_1 | var req = URLRequest(url: url)
faucet_1 | ^~~~~~~~~~
ckb-testnet-faucet-staging-run_faucet_1 exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment