Build Information
Failed to build AppStoreConnect, reference main (f8e0a7), with Swift 6.3 for Wasm on 12 Apr 2026 21:35:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/onmyway133/AppStoreConnect.git
Reference: main
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/onmyway133/AppStoreConnect
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f8e0a73 Update
Cloned https://github.com/onmyway133/AppStoreConnect.git
Revision (git rev-parse @):
f8e0a73d6a9f7a4c59de47f532a63c79ceb6ee18
SUCCESS checkout https://github.com/onmyway133/AppStoreConnect.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/onmyway133/AppStoreConnect.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/kean/URLQueryEncoder
Fetching https://github.com/kean/Get
Fetching https://github.com/vapor/jwt-kit
Fetching https://github.com/kean/NaiveDate
[1/128] Fetching urlqueryencoder
[129/2477] Fetching urlqueryencoder, get
[670/2859] Fetching urlqueryencoder, get, naivedate
Fetched https://github.com/kean/URLQueryEncoder from cache (0.50s)
[557/2731] Fetching get, naivedate
[924/12286] Fetching get, naivedate, jwt-kit
Fetched https://github.com/kean/NaiveDate from cache (0.58s)
[1138/11904] Fetching get, jwt-kit
Fetched https://github.com/kean/Get from cache (1.69s)
Fetched https://github.com/vapor/jwt-kit from cache (1.68s)
Computing version for https://github.com/kean/URLQueryEncoder
Computed https://github.com/kean/URLQueryEncoder at 0.2.1 (2.57s)
Computing version for https://github.com/kean/NaiveDate
Computed https://github.com/kean/NaiveDate at 1.1.0 (0.75s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 0.8.0 (0.83s)
Computing version for https://github.com/vapor/jwt-kit
Computed https://github.com/vapor/jwt-kit at 4.13.5 (0.89s)
Fetching https://github.com/apple/swift-crypto.git
[1/17331] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (3.08s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (4.24s)
Fetching https://github.com/apple/swift-asn1.git
[1/1796] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.53s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (4.49s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 0.8.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.0
Creating working copy for https://github.com/kean/URLQueryEncoder
Working copy of https://github.com/kean/URLQueryEncoder resolved at 0.2.1
Creating working copy for https://github.com/kean/NaiveDate
Working copy of https://github.com/kean/NaiveDate resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/vapor/jwt-kit
Working copy of https://github.com/vapor/jwt-kit resolved at 4.13.5
Building for debugging...
[0/797] Write sources
[6/797] Compiling fiat_p256_adx_mul.S
[7/797] Compiling a_dup.c
[7/797] Compiling a_i2d_fp.c
[9/797] Compiling a_gentm.c
[10/797] Compiling fiat_p256_adx_sqr.S
[11/797] Compiling fiat_curve25519_adx_square.S
[12/797] Compiling fiat_curve25519_adx_mul.S
[13/797] Write swift-version-24593BA9C3E375BF.txt
[14/797] Compiling x_x509a.c
[15/799] Compiling x_spki.c
[16/799] Compiling x_req.c
[16/799] Compiling x_name.c
[18/799] Compiling x_val.c
[19/799] Compiling x_sig.c
[20/799] Compiling x_pubkey.c
[21/799] Compiling x_x509.c
[22/807] Compiling x_exten.c
[23/807] Compiling x_attrib.c
[24/807] Compiling x_algor.c
[24/807] Compiling x_crl.c
[26/807] Compiling x509spki.c
[27/807] Compiling x_all.c
[28/807] Compiling x509rset.c
[29/807] Compiling x509cset.c
[30/807] Compiling x509name.c
[31/807] Compiling x509_v3.c
[32/807] Compiling x509_vpm.c
[33/807] Compiling x509_txt.c
[34/807] Compiling x509_vfy.c
[35/807] Compiling x509_trs.c
[36/807] Compiling x509_set.c
[37/807] Compiling x509_obj.c
[38/807] Compiling x509_req.c
[39/807] Compiling x509_lu.c
[40/807] Compiling x509_ext.c
[41/807] Compiling x509_def.c
[42/807] Compiling x509_d2.c
[43/807] Compiling x509_cmp.c
[44/807] Compiling x509_att.c
[45/807] Compiling x509.c
[46/807] Compiling v3_skey.c
[48/807] Emitting module URLQueryEncoder
[48/807] Compiling v3_utl.c
[49/807] Compiling v3_prn.c
[50/807] Compiling v3_pmaps.c
[51/807] Compiling v3_purp.c
[52/807] Compiling v3_ocsp.c
[53/807] Compiling v3_pcons.c
[54/807] Compiling v3_int.c
[55/807] Compiling v3_lib.c
[56/807] Compiling v3_ncons.c
[57/807] Compiling v3_info.c
[58/807] Compiling v3_ia5.c
[59/807] Compiling v3_genn.c
[60/807] Compiling v3_enum.c
[61/807] Compiling v3_extku.c
[62/807] Compiling v3_crld.c
[63/807] Compiling v3_cpols.c
[64/807] Compiling v3_bitst.c
[65/807] Compiling v3_conf.c
[66/807] Compiling v3_bcons.c
[67/807] Compiling v3_akeya.c
[68/807] Compiling v3_alt.c
[69/807] Compiling t_x509a.c
[70/807] Compiling v3_akey.c
[71/807] Compiling t_crl.c
[72/807] Compiling t_x509.c
[73/807] Compiling t_req.c
[74/807] Compiling i2d_pr.c
[75/807] Compiling rsa_pss.c
[76/807] Compiling name_print.c
[77/807] Compiling policy.c
[78/807] Compiling by_dir.c
[79/807] Compiling by_file.c
[80/807] Compiling asn1_gen.c
[81/807] Compiling a_sign.c
[82/807] Compiling algorithm.c
[83/807] Compiling voprf.c
[84/807] Compiling a_verify.c
[85/807] Compiling thread_win.c
[86/807] Compiling trust_token.c
[87/807] Compiling thread_none.c
[88/807] Compiling thread.c
[89/807] Compiling thread_pthread.c
[90/807] Compiling a_digest.c
[91/807] Compiling thash.c
[92/807] Compiling spx_util.c
[93/807] Compiling stack.c
[94/807] Compiling wots.c
[95/807] Compiling spx.c
[96/807] Compiling merkle.c
[97/807] Compiling fors.c
[98/807] Compiling address.c
[99/807] Compiling pmbtoken.c
[100/807] Compiling siphash.c
[101/807] Compiling rsa_print.c
[102/807] Compiling rc4.c
[103/807] Compiling refcount.c
[104/807] Compiling trusty.c
[105/807] Compiling passive.c
[106/807] Compiling ios.c
[107/807] Compiling windows.c
[108/807] Compiling rsa_crypt.c
[109/807] Compiling rand_extra.c
[110/807] Compiling rsa_asn1.c
[111/807] Compiling getentropy.c
[112/807] Compiling poly1305_vec.c
[113/807] Compiling forkunsafe.c
[114/807] Compiling poly1305_arm_asm.S
[115/807] Compiling deterministic.c
[116/807] Compiling poly1305_arm.c
[117/807] Compiling pool.c
[118/807] Compiling poly1305.c
[119/807] Compiling pkcs7.c
[120/807] Compiling p5_pbev2.c
[121/807] Compiling pkcs8.c
[122/807] Compiling pkcs8_x509.c
[123/807] Compiling pkcs7_x509.c
[124/807] Compiling pem_xaux.c
[125/807] Compiling pem_x509.c
[126/807] Compiling pem_pkey.c
[127/807] Compiling pem_oth.c
[128/807] Compiling pem_pk8.c
[129/807] Compiling pem_info.c
[130/807] Compiling obj_xref.c
[131/807] Compiling pem_lib.c
[132/807] Compiling pem_all.c
[133/807] Compiling mem.c
[134/807] Compiling lhash.c
[135/807] Compiling keccak.c
[136/807] Compiling kyber.c
[137/807] Compiling poly_rq_mul.S
[138/807] Compiling x86_64-mont5-mac.mac.x86_64.S
[139/807] Compiling obj.c
[140/807] Compiling x86_64-mont5-linux.linux.x86_64.S
[141/807] Compiling hrss.c
[142/807] Compiling x86_64-mont-linux.linux.x86_64.S
[143/807] Compiling x86_64-mont-mac.mac.x86_64.S
[144/807] Compiling hpke.c
[145/807] Compiling x86-mont-windows.windows.x86.S
[146/807] Compiling x86-mont-linux.linux.x86.S
[147/807] Compiling vpaes-x86_64-mac.mac.x86_64.S
[148/807] Compiling vpaes-x86_64-linux.linux.x86_64.S
[149/807] Compiling vpaes-x86-windows.windows.x86.S
[149/807] Compiling vpaes-armv8-linux.linux.aarch64.S
[151/807] Compiling vpaes-x86-linux.linux.x86.S
[152/807] Compiling vpaes-armv8-ios.ios.aarch64.S
[153/807] Compiling vpaes-armv7-linux.linux.arm.S
[154/807] Compiling vpaes-armv7-ios.ios.arm.S
[155/807] Compiling sha512-x86_64-mac.mac.x86_64.S
[156/807] Compiling sha512-x86_64-linux.linux.x86_64.S
[157/807] Compiling sha512-armv8-ios.ios.aarch64.S
[158/807] Compiling sha512-armv8-linux.linux.aarch64.S
[159/807] Compiling kdf.c
[160/807] Compiling sha512-586-windows.windows.x86.S
[161/807] Compiling sha512-armv4-linux.linux.arm.S
[162/807] Compiling sha512-armv4-ios.ios.arm.S
[163/807] Compiling sha512-586-linux.linux.x86.S
[164/807] Compiling sha256-x86_64-mac.mac.x86_64.S
[165/807] Compiling sha256-x86_64-linux.linux.x86_64.S
[166/807] Compiling sha256-armv8-ios.ios.aarch64.S
[167/807] Compiling sha256-armv4-ios.ios.arm.S
[168/807] Compiling sha256-armv8-linux.linux.aarch64.S
[169/807] Compiling sha256-armv4-linux.linux.arm.S
[170/807] Compiling sha1-x86_64-mac.mac.x86_64.S
[171/807] Compiling sha256-586-linux.linux.x86.S
[172/807] Compiling sha1-x86_64-linux.linux.x86_64.S
[173/807] Compiling sha256-586-windows.windows.x86.S
[174/807] Compiling sha1-armv8-linux.linux.aarch64.S
[175/807] Compiling sha1-armv4-large-linux.linux.arm.S
[176/807] Compiling sha1-armv8-ios.ios.aarch64.S
[177/807] Compiling sha1-armv4-large-ios.ios.arm.S
[178/807] Compiling sha1-586-windows.windows.x86.S
[179/807] Compiling sha1-586-linux.linux.x86.S
[180/807] Compiling service_indicator.c
[181/807] Compiling sha512.c
[182/807] Compiling sha256.c
[183/807] Compiling sha1.c
[184/807] Compiling rsaz-avx2-mac.mac.x86_64.S
[185/807] Compiling rsaz-avx2-linux.linux.x86_64.S
[186/807] Compiling self_check.c
[187/807] Compiling fips.c
[188/807] Compiling rdrand-x86_64-mac.mac.x86_64.S
[189/807] Compiling rsa_impl.c
[190/807] Compiling padding.c
[191/807] Compiling rsa.c
[192/807] Compiling urandom.c
[193/807] Compiling fork_detect.c
[194/807] Compiling blinding.c
[195/807] Compiling rand.c
[196/807] Compiling ctrdrbg.c
[197/807] Compiling rdrand-x86_64-linux.linux.x86_64.S
[198/807] Compiling p256_beeu-x86_64-asm-linux.linux.x86_64.S
[199/807] Compiling p256_beeu-x86_64-asm-mac.mac.x86_64.S
[200/807] Compiling p256_beeu-armv8-asm-ios.ios.aarch64.S
[201/807] Compiling p256_beeu-armv8-asm-linux.linux.aarch64.S
[202/807] Compiling p256-x86_64-asm-mac.mac.x86_64.S
[203/807] Compiling p256-x86_64-asm-linux.linux.x86_64.S
[204/807] Compiling p256-armv8-asm-ios.ios.aarch64.S
[205/807] Compiling p256-armv8-asm-linux.linux.aarch64.S
[206/807] Compiling ofb.c
[207/807] Compiling polyval.c
[208/807] Compiling gcm_nohw.c
[209/807] Compiling ctr.c
[210/807] Compiling gcm.c
[211/807] Compiling md5-x86_64-linux.linux.x86_64.S
[212/807] Compiling md5-x86_64-mac.mac.x86_64.S
[213/807] Compiling cbc.c
[214/807] Compiling cfb.c
[215/807] Compiling md5-586-windows.windows.x86.S
[216/807] Compiling md5-586-linux.linux.x86.S
[217/807] Compiling md5.c
[218/807] Compiling md4.c
[219/807] Compiling ghashv8-armv8-linux.linux.aarch64.S
[220/807] Compiling hkdf.c
[221/807] Compiling hmac.c
[222/807] Compiling ghashv8-armv8-ios.ios.aarch64.S
[223/807] Compiling ghashv8-armv7-linux.linux.arm.S
[224/807] Compiling ghashv8-armv7-ios.ios.arm.S
[225/807] Compiling ghash-x86-windows.windows.x86.S
[226/807] Compiling ghash-x86_64-mac.mac.x86_64.S
[227/807] Compiling ghash-x86_64-linux.linux.x86_64.S
[228/807] Compiling ghash-x86-linux.linux.x86.S
[230/807] Compiling Get Request.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:89:25: error: cannot find type 'URLRequest' in scope
87 | public var data: Data
88 | /// Original request.
89 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
90 | public var response: URLResponse
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// Original request.
89 | public var request: URLRequest
90 | public var response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
92 | public var metrics: URLSessionTaskMetrics?
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/.build/checkouts/Get/Sources/Get/Request.swift:92:25: error: cannot find type 'URLSessionTaskMetrics' in scope
90 | public var response: URLResponse
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
92 | public var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:48: error: cannot find type 'URLRequest' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLRequest' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:92: error: cannot find type 'URLSessionTaskMetrics' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | self.value = value
96 | self.data = data
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/.build/checkouts/Get/Sources/Get/Request.swift:91:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | public var request: URLRequest
90 | public var response: URLResponse
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | public var metrics: URLSessionTaskMetrics?
93 |
[230/807] Compiling ghash-ssse3-x86_64-mac.mac.x86_64.S
[231/807] Compiling ghash-ssse3-x86-windows.windows.x86.S
[232/807] Compiling ghash-ssse3-x86_64-linux.linux.x86_64.S
[233/807] Compiling ghash-ssse3-x86-linux.linux.x86.S
[234/807] Compiling ghash-neon-armv8-linux.linux.aarch64.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[236/807] Emitting module Get
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:11:69: error: cannot find type 'URLRequest' in scope
9 |
10 | public protocol APIClientDelegate {
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:12:62: error: cannot find type 'URLRequest' in scope
10 | public protocol APIClientDelegate {
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
| `- error: cannot find type 'URLRequest' in scope
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
14 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:13:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public actor APIClient {
17 | private let conf: Configuration
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let serializer: Serializer
20 | private let delegate: APIClientDelegate
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/.build/checkouts/Get/Sources/Get/APIClient.swift:27:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:27:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:27:69: error: value of type '_' expected to be instance of class or class-constrained type
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:37:37: error: cannot find type 'URLSessionDelegate' in scope
35 | #if !os(Linux)
36 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
37 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
38 | #endif
39 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:85: error: value of type '_' expected to be instance of class or class-constrained type
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:85: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:135:34: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | private func send(_ request: URLRequest) async throws -> Response<Data> {
| `- error: cannot find type 'URLRequest' in scope
136 | do {
137 | return try await actuallySend(request)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:144:42: error: cannot find type 'URLRequest' in scope
142 | }
143 |
144 | private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
| `- error: cannot find type 'URLRequest' in scope
145 | var request = request
146 | try await delegate.client(self, willSendRequest: &request)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:152:74: error: cannot find type 'URLRequest' in scope
150 | }
151 |
152 | private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
153 | let url = try makeURL(path: request.path, query: request.query)
154 | return try await makeRequest(url: url, method: request.method, body: request.body, headers: request.headers)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:174:121: error: cannot find type 'URLRequest' in scope
172 | }
173 |
174 | private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest(url: url)
176 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:186:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | }
185 |
186 | private func validate(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | guard let httpResponse = response as? HTTPURLResponse else { return }
188 | if !(200..<300).contains(httpResponse.statusCode) {
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/.build/checkouts/Get/Sources/Get/APIClient.swift:206:69: error: cannot find type 'URLRequest' in scope
204 |
205 | public extension APIClientDelegate {
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
| `- error: cannot find type 'URLRequest' in scope
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:207:62: error: cannot find type 'URLRequest' in scope
205 | public extension APIClientDelegate {
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
| `- error: cannot find type 'URLRequest' in scope
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
209 | APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:208:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | APIError.unacceptableStatusCode(response.statusCode)
210 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:79:21: error: cannot find 'OperationQueue' in scope
77 | public init(configuration: Configuration) {
78 | self.conf = configuration
79 | let queue = OperationQueue(maxConcurrentOperationCount: 1)
| `- error: cannot find 'OperationQueue' in scope
80 | #if !os(Linux)
81 | let delegate = URLSessionProxyDelegate.make(loader: loader, delegate: configuration.sessionDelegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:76: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:52: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | let delegate = loader
84 | #endif
85 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
87 | self.serializer = Serializer(decoder: configuration.decoder, encoder: configuration.encoder)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:22:11: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | @available(*, deprecated, message: "This feature is no longer in scope")
24 | public func cURLDescription() -> String {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:74:35: error: cannot find type 'URLSessionDataDelegate' in scope
72 |
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
75 | private var handlers = [URLSessionTask: TaskHandler]()
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
77 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
77 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:64: error: cannot find type 'URLSessionTaskMetrics' in scope
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
77 |
78 | /// Loads data with the given request.
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:97: error: cannot find type 'URLSessionTaskMetrics' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:28: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLRequest' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
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/.build/checkouts/Get/Sources/Get/Helpers.swift:93:41: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: cannot find type 'URLRequest' in scope
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:93:86: error: '@escaping' only applies to function types
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: '@escaping' only applies to function types
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:93:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:93:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:102:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
102 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | guard let handler = handlers[task] else { return }
104 | handlers[task] = nil
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/.build/checkouts/Get/Sources/Get/Helpers.swift:102:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
102 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | guard let handler = handlers[task] else { return }
104 | handlers[task] = nil
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/.build/checkouts/Get/Sources/Get/Helpers.swift:112:95: error: cannot find type 'URLSessionTaskMetrics' in scope
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
113 | handlers[task]?.metrics = metrics
114 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | handlers[task]?.metrics = metrics
114 | }
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/.build/checkouts/Get/Sources/Get/Helpers.swift:112:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | handlers[task]?.metrics = metrics
114 | }
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/.build/checkouts/Get/Sources/Get/Helpers.swift:116:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | guard let handler = handlers[dataTask] else {
118 | return
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/.build/checkouts/Get/Sources/Get/Helpers.swift:116:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | guard let handler = handlers[dataTask] else {
118 | return
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:128:22: error: cannot find type 'URLSessionTaskMetrics' in scope
126 | private final class TaskHandler {
127 | var data: Data?
128 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
129 | let completion: Completion
130 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:131:26: error: '@escaping' only applies to function types
129 | let completion: Completion
130 |
131 | init(completion: @escaping Completion) {
| `- error: '@escaping' only applies to function types
132 | self.completion = completion
133 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:150:40: error: cannot find type 'URLSessionDelegate' in scope
148 | }
149 |
150 | init(loader: DataLoader, delegate: URLSessionDelegate) {
| `- error: cannot find type 'URLSessionDelegate' in scope
151 | self.loader = loader
152 | self.delegate = delegate
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:140:48: error: cannot find type 'URLSessionTaskDelegate' in scope
138 | /// Allows users to monitor URLSession.
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:140:72: error: cannot find type 'URLSessionDataDelegate' in scope
138 | /// Allows users to monitor URLSession.
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:141:27: error: cannot find type 'URLSessionDelegate' in scope
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
141 | private var delegate: URLSessionDelegate
| `- error: cannot find type 'URLSessionDelegate' in scope
142 | private let interceptedSelectors: Set<Selector>
143 | private let loader: DataLoader
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:142:43: error: cannot find type 'Selector' in scope
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
| `- error: cannot find type 'Selector' in scope
143 | private let loader: DataLoader
144 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:162:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 | // MARK: URLSessionDelegate
161 |
162 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | loader.urlSession(session, dataTask: dataTask, didReceive: data)
164 | (delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:162:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 | // MARK: URLSessionDelegate
161 |
162 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | loader.urlSession(session, dataTask: dataTask, didReceive: data)
164 | (delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 | }
166 |
167 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | loader.urlSession(session, task: task, didCompleteWithError: error)
169 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: error)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:167:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 | }
166 |
167 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | loader.urlSession(session, task: task, didCompleteWithError: error)
169 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: 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/.build/checkouts/Get/Sources/Get/Helpers.swift:172:95: error: cannot find type 'URLSessionTaskMetrics' in scope
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:172:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:172:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:179:42: error: cannot find type 'Selector' in scope
177 | // MARK: Proxy
178 |
179 | override func responds(to aSelector: Selector!) -> Bool {
| `- error: cannot find type 'Selector' in scope
180 | if interceptedSelectors.contains(aSelector) {
181 | return true
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:186:50: error: cannot find type 'Selector' in scope
184 | }
185 |
186 | override func forwardingTarget(for selector: Selector!) -> Any? {
| `- error: cannot find type 'Selector' in scope
187 | interceptedSelectors.contains(selector) ? nil : delegate
188 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:192:11: error: cannot find type 'OperationQueue' in scope
190 | #endif
191 |
192 | extension OperationQueue {
| `- error: cannot find type 'OperationQueue' in scope
193 | convenience init(maxConcurrentOperationCount: Int) {
194 | self.init()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:80:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
80 | final class Box { var task: URLSessionTask? }
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | let box = Box()
82 | return try await withTaskCancellationHandler(handler: {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:83:23: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
81 | let box = Box()
82 | return try await withTaskCancellationHandler(handler: {
83 | box.task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
84 | }, operation: {
85 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:89:25: error: cannot find type 'URLRequest' in scope
87 | public var data: Data
88 | /// Original request.
89 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
90 | public var response: URLResponse
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// Original request.
89 | public var request: URLRequest
90 | public var response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
92 | public var metrics: URLSessionTaskMetrics?
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/.build/checkouts/Get/Sources/Get/Request.swift:92:25: error: cannot find type 'URLSessionTaskMetrics' in scope
90 | public var response: URLResponse
91 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
92 | public var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:48: error: cannot find type 'URLRequest' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLRequest' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:92: error: cannot find type 'URLSessionTaskMetrics' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | self.value = value
96 | self.data = data
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
[236/807] Compiling ghash-neon-armv8-ios.ios.aarch64.S
[238/807] Compiling NaiveDate NaiveDateFormatter.swift
[238/807] Compiling fips_shared_support.c
[239/807] Compiling ghash-armv4-linux.linux.arm.S
[240/807] Compiling ghash-armv4-ios.ios.arm.S
[242/807] Compiling Get APIClient.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:11:69: error: cannot find type 'URLRequest' in scope
9 |
10 | public protocol APIClientDelegate {
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:12:62: error: cannot find type 'URLRequest' in scope
10 | public protocol APIClientDelegate {
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
| `- error: cannot find type 'URLRequest' in scope
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
14 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:13:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public actor APIClient {
17 | private let conf: Configuration
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let serializer: Serializer
20 | private let delegate: APIClientDelegate
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/.build/checkouts/Get/Sources/Get/APIClient.swift:27:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:27:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:27:69: error: value of type '_' expected to be instance of class or class-constrained type
25 | public var baseURL: URL?
26 | /// By default, `URLSessionConfiguration.default`.
27 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | /// By default, uses decoder with `.iso8601` date decoding strategy.
29 | public var decoder: JSONDecoder?
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:37:37: error: cannot find type 'URLSessionDelegate' in scope
35 | #if !os(Linux)
36 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
37 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
38 | #endif
39 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:85: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:46:85: error: value of type '_' expected to be instance of class or class-constrained type
44 | public var isInsecure = false
45 |
46 | public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
47 | self.baseURL = baseURL
48 | self.sessionConfiguration = sessionConfiguration
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:135:34: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | private func send(_ request: URLRequest) async throws -> Response<Data> {
| `- error: cannot find type 'URLRequest' in scope
136 | do {
137 | return try await actuallySend(request)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:144:42: error: cannot find type 'URLRequest' in scope
142 | }
143 |
144 | private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
| `- error: cannot find type 'URLRequest' in scope
145 | var request = request
146 | try await delegate.client(self, willSendRequest: &request)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:152:74: error: cannot find type 'URLRequest' in scope
150 | }
151 |
152 | private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
153 | let url = try makeURL(path: request.path, query: request.query)
154 | return try await makeRequest(url: url, method: request.method, body: request.body, headers: request.headers)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:174:121: error: cannot find type 'URLRequest' in scope
172 | }
173 |
174 | private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest(url: url)
176 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:186:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | }
185 |
186 | private func validate(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | guard let httpResponse = response as? HTTPURLResponse else { return }
188 | if !(200..<300).contains(httpResponse.statusCode) {
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/.build/checkouts/Get/Sources/Get/APIClient.swift:206:69: error: cannot find type 'URLRequest' in scope
204 |
205 | public extension APIClientDelegate {
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
| `- error: cannot find type 'URLRequest' in scope
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:207:62: error: cannot find type 'URLRequest' in scope
205 | public extension APIClientDelegate {
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
| `- error: cannot find type 'URLRequest' in scope
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
209 | APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:208:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | APIError.unacceptableStatusCode(response.statusCode)
210 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:79:21: error: cannot find 'OperationQueue' in scope
77 | public init(configuration: Configuration) {
78 | self.conf = configuration
79 | let queue = OperationQueue(maxConcurrentOperationCount: 1)
| `- error: cannot find 'OperationQueue' in scope
80 | #if !os(Linux)
81 | let delegate = URLSessionProxyDelegate.make(loader: loader, delegate: configuration.sessionDelegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:76: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:52: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | let delegate = loader
84 | #endif
85 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
87 | self.serializer = Serializer(decoder: configuration.decoder, encoder: configuration.encoder)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:146:28: error: no exact matches in call to instance method 'client'
11 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
12 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool
13 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
| `- note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
14 | }
15 |
:
144 | private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
145 | var request = request
146 | try await delegate.client(self, willSendRequest: &request)
| `- error: no exact matches in call to instance method 'client'
147 | let (data, response, metrics) = try await loader.data(for: request, session: session)
148 | try validate(response: response, data: data)
:
206 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
| `- note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
209 | APIError.unacceptableStatusCode(response.statusCode)
210 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:97: error: cannot find type 'URLSessionTaskMetrics' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:28: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLRequest' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:48: error: cannot find type 'URLRequest' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLRequest' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:94:92: error: cannot find type 'URLSessionTaskMetrics' in scope
92 | public var metrics: URLSessionTaskMetrics?
93 |
94 | public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
95 | self.value = value
96 | self.data = data
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:149:16: error: generic parameter 'T' could not be inferred
147 | let (data, response, metrics) = try await loader.data(for: request, session: session)
148 | try validate(response: response, data: data)
149 | return Response(value: data, data: data, request: request, response: response, metrics: metrics)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
150 | }
151 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:84:24: note: 'T' declared as parameter to type 'Response'
82 |
83 | /// A response with a value and associated metadata.
84 | public struct Response<T> {
| `- note: 'T' declared as parameter to type 'Response'
85 | public var value: T
86 | /// Original response data.
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:175:23: error: cannot find 'URLRequest' in scope
173 |
174 | private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
175 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
176 | request.allHTTPHeaderFields = headers
177 | request.httpMethod = method
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:187:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 | private func validate(response: URLResponse, data: Data) throws {
187 | guard let httpResponse = response as? HTTPURLResponse else { return }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | if !(200..<300).contains(httpResponse.statusCode) {
189 | throw delegate.client(self, didReceiveInvalidResponse: httpResponse, data: data)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:188:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
186 | private func validate(response: URLResponse, data: Data) throws {
187 | guard let httpResponse = response as? HTTPURLResponse else { return }
188 | if !(200..<300).contains(httpResponse.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
189 | throw delegate.client(self, didReceiveInvalidResponse: httpResponse, data: data)
190 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:209:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
207 | func shouldClientRetry(_ client: APIClient, for request: URLRequest, withError error: Error) async throws -> Bool { false }
208 | func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
209 | APIError.unacceptableStatusCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
210 | }
211 | }
[243/807] Compiling Get Helpers.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:22:11: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | @available(*, deprecated, message: "This feature is no longer in scope")
24 | public func cURLDescription() -> String {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:74:35: error: cannot find type 'URLSessionDataDelegate' in scope
72 |
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
75 | private var handlers = [URLSessionTask: TaskHandler]()
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
77 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
73 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
77 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:64: error: cannot find type 'URLSessionTaskMetrics' in scope
74 | final class DataLoader: NSObject, URLSessionDataDelegate {
75 | private var handlers = [URLSessionTask: TaskHandler]()
76 | private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
77 |
78 | /// Loads data with the given request.
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:97: error: cannot find type 'URLSessionTaskMetrics' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:28: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: cannot find type 'URLRequest' in scope
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:79:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 |
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | final class Box { var task: URLSessionTask? }
81 | let box = Box()
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/.build/checkouts/Get/Sources/Get/Helpers.swift:93:41: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: cannot find type 'URLRequest' in scope
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:93:86: error: '@escaping' only applies to function types
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: '@escaping' only applies to function types
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:93:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:93:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:102:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
102 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | guard let handler = handlers[task] else { return }
104 | handlers[task] = nil
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/.build/checkouts/Get/Sources/Get/Helpers.swift:102:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
102 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | guard let handler = handlers[task] else { return }
104 | handlers[task] = nil
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/.build/checkouts/Get/Sources/Get/Helpers.swift:112:95: error: cannot find type 'URLSessionTaskMetrics' in scope
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
113 | handlers[task]?.metrics = metrics
114 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | handlers[task]?.metrics = metrics
114 | }
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/.build/checkouts/Get/Sources/Get/Helpers.swift:112:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
112 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | handlers[task]?.metrics = metrics
114 | }
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/.build/checkouts/Get/Sources/Get/Helpers.swift:116:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | guard let handler = handlers[dataTask] else {
118 | return
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/.build/checkouts/Get/Sources/Get/Helpers.swift:116:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | guard let handler = handlers[dataTask] else {
118 | return
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:128:22: error: cannot find type 'URLSessionTaskMetrics' in scope
126 | private final class TaskHandler {
127 | var data: Data?
128 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
129 | let completion: Completion
130 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:131:26: error: '@escaping' only applies to function types
129 | let completion: Completion
130 |
131 | init(completion: @escaping Completion) {
| `- error: '@escaping' only applies to function types
132 | self.completion = completion
133 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:150:40: error: cannot find type 'URLSessionDelegate' in scope
148 | }
149 |
150 | init(loader: DataLoader, delegate: URLSessionDelegate) {
| `- error: cannot find type 'URLSessionDelegate' in scope
151 | self.loader = loader
152 | self.delegate = delegate
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:140:48: error: cannot find type 'URLSessionTaskDelegate' in scope
138 | /// Allows users to monitor URLSession.
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:140:72: error: cannot find type 'URLSessionDataDelegate' in scope
138 | /// Allows users to monitor URLSession.
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:141:27: error: cannot find type 'URLSessionDelegate' in scope
139 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
141 | private var delegate: URLSessionDelegate
| `- error: cannot find type 'URLSessionDelegate' in scope
142 | private let interceptedSelectors: Set<Selector>
143 | private let loader: DataLoader
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:142:43: error: cannot find type 'Selector' in scope
140 | final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
141 | private var delegate: URLSessionDelegate
142 | private let interceptedSelectors: Set<Selector>
| `- error: cannot find type 'Selector' in scope
143 | private let loader: DataLoader
144 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:76: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:145:52: error: cannot find type 'URLSessionDelegate' in scope
143 | private let loader: DataLoader
144 |
145 | static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
146 | guard let delegate = delegate else { return loader }
147 | return URLSessionProxyDelegate(loader: loader, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:162:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 | // MARK: URLSessionDelegate
161 |
162 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | loader.urlSession(session, dataTask: dataTask, didReceive: data)
164 | (delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:162:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 | // MARK: URLSessionDelegate
161 |
162 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | loader.urlSession(session, dataTask: dataTask, didReceive: data)
164 | (delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 | }
166 |
167 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | loader.urlSession(session, task: task, didCompleteWithError: error)
169 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: error)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:167:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 | }
166 |
167 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | loader.urlSession(session, task: task, didCompleteWithError: error)
169 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: 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/.build/checkouts/Get/Sources/Get/Helpers.swift:172:95: error: cannot find type 'URLSessionTaskMetrics' in scope
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:172:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:172:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
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/.build/checkouts/Get/Sources/Get/Helpers.swift:179:42: error: cannot find type 'Selector' in scope
177 | // MARK: Proxy
178 |
179 | override func responds(to aSelector: Selector!) -> Bool {
| `- error: cannot find type 'Selector' in scope
180 | if interceptedSelectors.contains(aSelector) {
181 | return true
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:186:50: error: cannot find type 'Selector' in scope
184 | }
185 |
186 | override func forwardingTarget(for selector: Selector!) -> Any? {
| `- error: cannot find type 'Selector' in scope
187 | interceptedSelectors.contains(selector) ? nil : delegate
188 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:192:11: error: cannot find type 'OperationQueue' in scope
190 | #endif
191 |
192 | extension OperationQueue {
| `- error: cannot find type 'OperationQueue' in scope
193 | convenience init(maxConcurrentOperationCount: Int) {
194 | self.init()
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:80:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | /// Loads data with the given request.
79 | func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
80 | final class Box { var task: URLSessionTask? }
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | let box = Box()
82 | return try await withTaskCancellationHandler(handler: {
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/.build/checkouts/Get/Sources/Get/Helpers.swift:83:23: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
81 | let box = Box()
82 | return try await withTaskCancellationHandler(handler: {
83 | box.task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
84 | }, operation: {
85 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:94:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
92 |
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
94 | let task = session.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
95 | session.delegateQueue.addOperation {
96 | self.handlers[task] = TaskHandler(completion: completion)
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:95:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
93 | private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
94 | let task = session.dataTask(with: request)
95 | session.delegateQueue.addOperation {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
96 | self.handlers[task] = TaskHandler(completion: completion)
97 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:105:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
103 | guard let handler = handlers[task] else { return }
104 | handlers[task] = nil
105 | if let response = task.response, error == nil {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
106 | handler.completion(.success((handler.data ?? Data(), response, handler.metrics)))
107 | } else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:106:33: error: cannot infer contextual base in reference to member 'success'
104 | handlers[task] = nil
105 | if let response = task.response, error == nil {
106 | handler.completion(.success((handler.data ?? Data(), response, handler.metrics)))
| `- error: cannot infer contextual base in reference to member 'success'
107 | } else {
108 | handler.completion(.failure(error ?? URLError(.unknown)))
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:33: error: cannot infer contextual base in reference to member 'failure'
106 | handler.completion(.success((handler.data ?? Data(), response, handler.metrics)))
107 | } else {
108 | handler.completion(.failure(error ?? URLError(.unknown)))
| `- error: cannot infer contextual base in reference to member 'failure'
109 | }
110 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:154:23: error: cannot find 'URLSessionDataDelegate' in scope
152 | self.delegate = delegate
153 | self.interceptedSelectors = [
154 | #selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
| `- error: cannot find 'URLSessionDataDelegate' in scope
155 | #selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
156 | #selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:155:23: error: cannot find 'URLSessionTaskDelegate' in scope
153 | self.interceptedSelectors = [
154 | #selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
155 | #selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
| `- error: cannot find 'URLSessionTaskDelegate' in scope
156 | #selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
157 | ]
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:23: error: cannot find 'URLSessionTaskDelegate' in scope
154 | #selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
155 | #selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
156 | #selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
| `- error: cannot find 'URLSessionTaskDelegate' in scope
157 | ]
158 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:154:13: error: '#selector' can only be used with the Objective-C runtime
152 | self.delegate = delegate
153 | self.interceptedSelectors = [
154 | #selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
| `- error: '#selector' can only be used with the Objective-C runtime
155 | #selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
156 | #selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:164:23: error: cannot find type 'URLSessionDataDelegate' in scope
162 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
163 | loader.urlSession(session, dataTask: dataTask, didReceive: data)
164 | (delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
| `- error: cannot find type 'URLSessionDataDelegate' in scope
165 | }
166 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:169:23: error: cannot find type 'URLSessionTaskDelegate' in scope
167 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
168 | loader.urlSession(session, task: task, didCompleteWithError: error)
169 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: error)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
170 | }
171 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:26: error: incorrect argument label in call (have '_:task:didFinishCollecting:', expected '_:task:didCompleteWithError:')
171 |
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
| `- error: incorrect argument label in call (have '_:task:didFinishCollecting:', expected '_:task:didCompleteWithError:')
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
175 | }
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:174:23: error: cannot find type 'URLSessionTaskDelegate' in scope
172 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
173 | loader.urlSession(session, task: task, didFinishCollecting: metrics)
174 | (delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
175 | }
176 |
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:183:58: error: value of type 'NSObject' has no member 'responds'
181 | return true
182 | }
183 | return delegate.responds(to: aSelector) || super.responds(to: aSelector)
| `- error: value of type 'NSObject' has no member 'responds'
184 | }
185 |
[243/807] Compiling ecdsa.c
[244/807] Compiling ecdh.c
[245/807] Compiling util.c
[246/807] Compiling simple_mul.c
[247/807] Compiling wnaf.c
[249/807] Compiling URLQueryEncoder URLQueryEncoder.swift
[249/807] Compiling p224-64.c
[250/808] Compiling scalar.c
[251/808] Compiling simple.c
[252/808] Compiling p256-nistz.c
[255/808] Compiling NaiveDate NaiveDate.swift
[256/808] Emitting module NaiveDate
[257/808] Compiling NaiveDate NaiveDateFormatStyle.swift
[257/809] Compiling oct.c
[259/809] Compiling felem.c
[260/809] Compiling ec_montgomery.c
[261/809] Compiling ec_key.c
[262/809] Compiling digestsign.c
[263/809] Compiling digests.c
[264/809] Compiling ec.c
[265/809] Compiling digest.c
[266/809] Compiling co-586-windows.windows.x86.S
[267/809] Compiling dh.c
[268/809] Compiling co-586-linux.linux.x86.S
[269/809] Compiling check.c
[270/809] Compiling cmac.c
[271/809] Compiling e_aesccm.c
[272/809] Compiling cipher.c
[273/809] Compiling aead.c
[274/809] Compiling bsaes-armv7-linux.linux.arm.S
[275/809] Compiling bsaes-armv7-ios.ios.arm.S
[276/809] Compiling e_aes.c
[277/809] Compiling p256.c
[278/809] Compiling rsaz_exp.c
[279/809] Compiling sqrt.c
[280/809] Compiling shift.c
[281/809] Compiling mul.c
[282/809] Compiling montgomery_inv.c
[283/809] Compiling random.c
[284/809] Compiling prime.c
[285/809] Compiling montgomery.c
[286/809] Compiling gcd_extra.c
[287/809] Compiling jacobi.c
[288/809] Compiling gcd.c
[289/809] Compiling generic.c
[290/809] Compiling exponentiation.c
[291/809] Compiling div_extra.c
[292/809] Compiling ctx.c
[293/809] Compiling div.c
[294/809] Compiling x86_64-gcc.c
[295/809] Compiling cmp.c
[296/809] Compiling bytes.c
[297/809] Compiling bn.c
[298/809] Compiling bn-armv8-linux.linux.aarch64.S
[299/809] Compiling add.c
[300/809] Compiling bn-armv8-ios.ios.aarch64.S
[301/809] Compiling bn-586-windows.windows.x86.S
[302/809] Compiling bn-586-linux.linux.x86.S
[303/809] Compiling armv8-mont-ios.ios.aarch64.S
[304/809] Compiling armv8-mont-linux.linux.aarch64.S
[305/809] Compiling armv4-mont-linux.linux.arm.S
[306/809] Compiling armv4-mont-ios.ios.arm.S
[307/809] Compiling aesv8-gcm-armv8-linux.linux.aarch64.S
[308/809] Compiling aesv8-gcm-armv8-ios.ios.aarch64.S
[309/809] Compiling aesv8-armv8-ios.ios.aarch64.S
[310/809] Compiling aesv8-armv8-linux.linux.aarch64.S
[311/809] Compiling aesv8-armv7-linux.linux.arm.S
[312/809] Compiling aesv8-armv7-ios.ios.arm.S
[313/809] Compiling aesni-x86_64-mac.mac.x86_64.S
[314/809] Compiling aesni-x86_64-linux.linux.x86_64.S
[315/809] Compiling aesni-x86-windows.windows.x86.S
[316/809] Compiling aesni-x86-linux.linux.x86.S
[317/809] Compiling aesni-gcm-x86_64-mac.mac.x86_64.S
[318/809] Compiling aesni-gcm-x86_64-linux.linux.x86_64.S
[319/809] Compiling mode_wrappers.c
[320/809] Compiling key_wrap.c
[321/809] Compiling aes.c
[322/809] Compiling ex_data.c
[323/809] Compiling aes_nohw.c
[324/809] Compiling sign.c
[325/809] Compiling scrypt.c
[326/809] Compiling pbkdf.c
[327/809] Compiling p_x25519_asn1.c
[328/809] Compiling print.c
[329/809] Compiling p_x25519.c
[330/809] Compiling p_rsa_asn1.c
[331/809] Compiling p_ed25519.c
[332/809] Compiling p_hkdf.c
[333/809] Compiling p_ec_asn1.c
[334/809] Compiling p_ed25519_asn1.c
[335/809] Compiling p_rsa.c
[336/809] Compiling p_ec.c
[337/809] Compiling evp_asn1.c
[338/809] Compiling p_dsa_asn1.c
[339/809] Compiling evp_ctx.c
[340/809] Compiling err_data.c
[341/809] Compiling evp.c
[342/809] Compiling engine.c
[343/809] Compiling ecdh_extra.c
[344/809] Compiling ecdsa_asn1.c
[345/809] Compiling err.c
[346/809] Compiling digest_extra.c
[346/809] Compiling dsa.c
[346/809] Compiling ec_derive.c
[346/809] Compiling ec_asn1.c
[346/809] Compiling dsa_asn1.c
[346/809] Compiling params.c
[346/809] Compiling hash_to_curve.c
BUILD FAILURE 6.3 wasm