Build Information
Failed to build TwitterClientCLI, reference master (dcf9e1
), with Swift 6.1 for Android on 27 May 2025 09:59:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/anzfactory/twitterclientcli.git
Reference: master
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/anzfactory/twitterclientcli
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at dcf9e1e Key & Secret を隠蔽
Cloned https://github.com/anzfactory/twitterclientcli.git
Revision (git rev-parse @):
dcf9e1ea69f493bb12622de9e2eb41aceb80e1f7
SUCCESS checkout https://github.com/anzfactory/twitterclientcli.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/anzfactory/twitterclientcli.git
https://github.com/anzfactory/twitterclientcli.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "commander",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Commander.git"
},
{
"identity" : "apikit",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.0",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ishkawa/APIKit.git"
},
{
"identity" : "swiftline",
"requirement" : {
"branch" : [
"swift-tool-version-4.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/anzfactory/Swiftline.git"
},
{
"identity" : "cryptoswift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/krzyzanowskim/CryptoSwift.git"
},
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/onevcat/Rainbow"
}
],
"manifest_display_name" : "TwitterClientCLI",
"name" : "TwitterClientCLI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "twcli",
"targets" : [
"TwitterClient",
"TwitterClientCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TwitterClient",
"targets" : [
"TwitterClient"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "TwitterClientCore",
"module_type" : "SwiftTarget",
"name" : "TwitterClientCore",
"path" : "Sources/TwitterClientCore",
"product_dependencies" : [
"APIKit",
"CryptoSwift",
"Rainbow"
],
"product_memberships" : [
"twcli",
"TwitterClient"
],
"sources" : [
"APIType/AccessTokenType.swift",
"APIType/AccountSettings.swift",
"APIType/FavoriteType.swift",
"APIType/FavoritesType.swift",
"APIType/FollowType.swift",
"APIType/MediaUploadType.swift",
"APIType/RateLimitType.swift",
"APIType/RequestTokenType.swift",
"APIType/RetweetType.swift",
"APIType/SearchTweetType.swift",
"APIType/SearchUserType.swift",
"APIType/ShowTweet.swift",
"APIType/TimelineType.swift",
"APIType/TweetType.swift",
"APIType/TwitterAPIType.swift",
"APIType/UnFavoriteType.swift",
"APIType/UnFollowType.swift",
"APIType/UnRetweetType.swift",
"APIType/UserTimelineType.swift",
"Extension/CharacterSet.swift",
"Extension/Sequence.swift",
"Extension/URL.swift",
"Keys.swift",
"Model/AccessToken.swift",
"Model/Media.swift",
"Model/Outputable.swift",
"Model/RateLimit.swift",
"Model/RequestToken.swift",
"Model/SearchTweets.swift",
"Model/Settings.swift",
"Model/Tweet.swift",
"Model/Tweets.swift",
"Model/User.swift",
"Model/Users.swift",
"Shell.swift",
"TwitterClient.swift",
"TwitterOAuth.swift"
],
"type" : "library"
},
{
"c99name" : "TwitterClient",
"module_type" : "SwiftTarget",
"name" : "TwitterClient",
"path" : "Sources/TwitterClient",
"product_dependencies" : [
"Commander",
"Swiftline"
],
"product_memberships" : [
"twcli",
"TwitterClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"TwitterClientCore"
],
"type" : "executable"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/anzfactory/Swiftline.git
[1/722] Fetching swiftline
Fetched https://github.com/anzfactory/Swiftline.git from cache (0.44s)
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/ishkawa/APIKit.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/onevcat/Rainbow
[1/1588] Fetching commander
[224/14522] Fetching commander, cryptoswift
[2448/20086] Fetching commander, cryptoswift, apikit
[7518/21282] Fetching commander, cryptoswift, apikit, rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.40s)
[9093/20086] Fetching commander, cryptoswift, apikit
Fetched https://github.com/kylef/Commander.git from cache (1.66s)
Fetched https://github.com/ishkawa/APIKit.git from cache (1.66s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.69s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.2 (3.44s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.28s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (2.66s)
Computing version for https://github.com/ishkawa/APIKit.git
Computed https://github.com/ishkawa/APIKit.git at 5.4.0 (0.58s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (0.61s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (0.90s)
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/kylef/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.9.2
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
Creating working copy for https://github.com/anzfactory/Swiftline.git
Working copy of https://github.com/anzfactory/Swiftline.git resolved at swift-tool-version-4.0 (d92ff58)
Creating working copy for https://github.com/ishkawa/APIKit.git
Working copy of https://github.com/ishkawa/APIKit.git resolved at 5.4.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
warning: 'apikit': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Info.plist
Building for debugging...
[0/18] Write sources
[0/18] Copying PrivacyInfo.xcprivacy
[8/18] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/187] Emitting module Swiftline
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[11/190] Compiling Rainbow StringGenerator.swift
[12/190] Compiling CryptoSwift ECB.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[13/190] Compiling CryptoSwift GCM.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[14/190] Compiling CryptoSwift OCB.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[15/191] Compiling Rainbow Style.swift
[16/191] Compiling CryptoSwift ASN1Encoder.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[17/191] Compiling CryptoSwift ASN1Scanner.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[18/191] Compiling CryptoSwift Array+Extension.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[19/191] Compiling CryptoSwift CCM.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[20/191] Compiling CryptoSwift CFB.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[21/191] Compiling CryptoSwift CTR.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[22/191] Compiling CryptoSwift CipherModeWorker.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[23/191] Compiling Commander ArgumentParser.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[24/191] Compiling Commander CommandRunner.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[25/191] Compiling Commander Command.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[26/192] Compiling Rainbow String+Rainbow.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/192] Emitting module Commander
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[28/192] Compiling CryptoSwift BlockEncryptor.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[29/192] Compiling CryptoSwift BlockMode.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[30/192] Compiling Rainbow XcodeColorsSupport.swift
[31/192] Compiling Commander CommandType.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[32/192] Compiling Commander Group.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[33/192] Compiling Rainbow Rainbow.swift
[34/192] Compiling Commander Commands.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[35/192] Compiling Commander Error.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[38/192] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
[39/192] Compiling CryptoSwift BlockModeOptions.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
[40/192] Compiling CryptoSwift CBC.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/192] Emitting module APIKit
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/RequestError.swift:9:31: error: cannot find type 'URLRequest' in scope
7 |
8 | /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
9 | case unexpectedURLRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
10 | }
11 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/ResponseError.swift:7:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public enum ResponseError: Error {
6 | /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
7 | case nonHTTPURLResponse(URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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/APIKit/Sources/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// if the HTTP status code is not in `200..<300`.
54 | /// - Throws: `Error`
55 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Sources/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | /// `intercept(object:urlResponse:)` if it does not throw any error.
59 | /// - Throws: `Error`
60 | func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
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/APIKit/Sources/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | }
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Sources/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 | /// Builds `URLRequest` from properties of `self`.
104 | /// - Throws: `RequestError`, `Error`
105 | func buildURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | /// Builds `Response` from response `Data`.
141 | /// - Throws: `ResponseError`, `Error`
142 | func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let parsedObject = try dataParser.parse(data: data)
144 | let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Sources/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 | func response(from object: Any, urlResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | return
152 | }
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/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 | // Shared session for class methods
22 | private static let privateShared: Session = {
23 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | let adapter = URLSessionAdapter(configuration: configuration)
25 | return Session(adapter: adapter)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSessionTask: SessionTask {
| `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
4 |
5 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:22:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
22 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: error: cannot find type 'URLRequest' in scope
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
47 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
51 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: error: cannot find type 'URLSessionDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: error: cannot find type 'URLSessionDataDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:43:9: error: cannot find 'mlock' in scope
41 | // not supported on WASI
42 | #else
43 | mlock(pointer.baseAddress, pointer.count)
| `- error: cannot find 'mlock' in scope
44 | #endif
45 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// if the HTTP status code is not in `200..<300`.
54 | /// - Throws: `Error`
55 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Sources/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | /// `intercept(object:urlResponse:)` if it does not throw any error.
59 | /// - Throws: `Error`
60 | func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
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/APIKit/Sources/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | }
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Sources/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 | /// Builds `URLRequest` from properties of `self`.
104 | /// - Throws: `RequestError`, `Error`
105 | func buildURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | /// Builds `Response` from response `Data`.
141 | /// - Throws: `ResponseError`, `Error`
142 | func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let parsedObject = try dataParser.parse(data: data)
144 | let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Sources/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 | func response(from object: Any, urlResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | return
152 | }
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/APIKit/Sources/APIKit/Request.swift:97:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
99 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:98:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 | return object
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:111:26: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
112 |
113 | if let queryParameters = queryParameters, !queryParameters.isEmpty {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:12: error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:70: error: cannot find type 'CFString' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find type 'CFString' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:55: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:80: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 | // Shared session for class methods
22 | private static let privateShared: Session = {
23 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | let adapter = URLSessionAdapter(configuration: configuration)
25 | return Session(adapter: adapter)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:82:25: error: cannot find type 'URLRequest' in scope
80 | internal func createSessionTask<Request: APIKit.Request>(_ request: Request, callbackQueue: CallbackQueue?, handler: @escaping (Result<Request.Response, SessionTaskError>) -> Void) -> SessionTask? {
81 | let callbackQueue = callbackQueue ?? self.callbackQueue
82 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
83 | do {
84 | urlRequest = try request.buildURLRequest()
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:9: error: cannot find 'objc_setAssociatedObject' in scope
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:67: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
122 | }
123 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'apikit': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Info.plist
[0/1] Planning build
Building for debugging...
[0/10] Write swift-version-24593BA9C3E375BF.txt
[2/45] Compiling Commander ArgumentParser.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[3/57] Compiling Swiftline ShortHandRunner.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[4/57] Compiling Swiftline StringBackgroundColorizer.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[5/57] Compiling Swiftline StringForegroundColorizer.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[6/143] Compiling Commander CommandRunner.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[7/166] Compiling Commander Group.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[8/177] Compiling Rainbow Style.swift
[9/184] Compiling Commander CommandType.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[10/184] Compiling Rainbow XcodeColorsSupport.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/184] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
[12/184] Compiling CryptoSwift Exponentiation.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[13/184] Compiling CryptoSwift FloatingPointConversion.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[14/184] Compiling CryptoSwift GCD.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[15/184] Compiling Commander Error.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[16/184] Compiling Commander Command.swift
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[17/184] Compiling CryptoSwift AEAD.swift
[18/184] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[19/184] Compiling CryptoSwift Bit.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/RequestError.swift:9:31: error: cannot find type 'URLRequest' in scope
7 |
8 | /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
9 | case unexpectedURLRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
10 | }
11 |
[20/184] Compiling CryptoSwift BlockCipher.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/RequestError.swift:9:31: error: cannot find type 'URLRequest' in scope
7 |
8 | /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
9 | case unexpectedURLRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
10 | }
11 |
[21/184] Compiling CryptoSwift BlockDecryptor.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/RequestError.swift:9:31: error: cannot find type 'URLRequest' in scope
7 |
8 | /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
9 | case unexpectedURLRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
10 | }
11 |
[22/187] Compiling CryptoSwift BitwiseOps.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[23/187] Compiling CryptoSwift CS.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[24/187] Compiling APIKit SessionAdapter.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[25/187] Compiling Rainbow Rainbow.swift
[26/187] Compiling CryptoSwift Array+Extension.swift
[27/187] Compiling CryptoSwift Authenticator.swift
[28/187] Compiling CryptoSwift BatchedCollection.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/187] Emitting module Swiftline
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[30/187] Compiling CryptoSwift ASN1Decoder.swift
[31/187] Compiling CryptoSwift ASN1Encoder.swift
[32/187] Compiling CryptoSwift ASN1Scanner.swift
[33/187] Compiling CryptoSwift Addition.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[34/187] Compiling CryptoSwift BigInt.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[35/187] Compiling CryptoSwift BigUInt.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[38/187] Compiling CryptoSwift AEADXChaCha20Poly1305.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[39/187] Compiling CryptoSwift AES.Cryptors.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[40/187] Compiling CryptoSwift AES.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[41/187] Compiling CryptoSwift ASN1.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
[51/187] Compiling CryptoSwift CMAC.swift
/host/spi-builder-workspace/.build/checkouts/Swiftline/Source/Swiftline/Env.swift:9:8: error: no such module 'Darwin'
7 | //
8 |
9 | import Darwin
| `- error: no such module 'Darwin'
10 |
11 |
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:57:58: error: cannot find 'isatty' in scope
55 | // Check if we are in any term env and the output is a tty.
56 | let termType = getEnvValue("TERM")
57 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- error: cannot find 'isatty' in scope
58 | return .console
59 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSessionTask: SessionTask {
| `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
4 |
5 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:22:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
22 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: error: cannot find type 'URLRequest' in scope
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
47 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
51 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: error: cannot find type 'URLSessionDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: error: cannot find type 'URLSessionDataDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:99: error: 'nil' requires a contextual type
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:29:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
29 | let task = urlSession.dataTask(with: URLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 |
31 | setBuffer(NSMutableData(), forTask: task)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:39:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
37 | /// Aggregates `URLSessionTask` instances in `URLSession` using `getTasksWithCompletionHandler(_:)`.
38 | open func getTasks(with handler: @escaping ([SessionTask]) -> Void) {
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:41:21: error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
| |- error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
| `- note: arguments to generic parameter 'Element' ('URLSessionTask' (aka 'AnyObject') and 'any SessionTask') are expected to be equal
42 | }
43 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:9: error: cannot find 'objc_setAssociatedObject' in scope
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:77: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:50:16: error: cannot find 'objc_getAssociatedObject' in scope
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
| `- error: cannot find 'objc_getAssociatedObject' in scope
51 | }
52 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:9: error: cannot find 'objc_setAssociatedObject' in scope
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:100: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:58:16: error: cannot find 'objc_getAssociatedObject' in scope
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
| `- error: cannot find 'objc_getAssociatedObject' in scope
59 | }
60 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:63:62: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
61 | // MARK: URLSessionTaskDelegate
62 | open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
64 | }
65 |
[57/187] Compiling APIKit URLSessionAdapter.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSessionTask: SessionTask {
| `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
4 |
5 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:22:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
22 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: error: cannot find type 'URLRequest' in scope
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
47 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
51 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: error: cannot find type 'URLSessionDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: error: cannot find type 'URLSessionDataDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:99: error: 'nil' requires a contextual type
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:29:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
29 | let task = urlSession.dataTask(with: URLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 |
31 | setBuffer(NSMutableData(), forTask: task)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:39:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
37 | /// Aggregates `URLSessionTask` instances in `URLSession` using `getTasksWithCompletionHandler(_:)`.
38 | open func getTasks(with handler: @escaping ([SessionTask]) -> Void) {
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:41:21: error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
| |- error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
| `- note: arguments to generic parameter 'Element' ('URLSessionTask' (aka 'AnyObject') and 'any SessionTask') are expected to be equal
42 | }
43 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:9: error: cannot find 'objc_setAssociatedObject' in scope
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:77: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:50:16: error: cannot find 'objc_getAssociatedObject' in scope
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
| `- error: cannot find 'objc_getAssociatedObject' in scope
51 | }
52 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:9: error: cannot find 'objc_setAssociatedObject' in scope
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:100: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:58:16: error: cannot find 'objc_getAssociatedObject' in scope
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
| `- error: cannot find 'objc_getAssociatedObject' in scope
59 | }
60 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:63:62: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
61 | // MARK: URLSessionTaskDelegate
62 | open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
64 | }
65 |
[58/187] Compiling APIKit Unavailable.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSessionTask: SessionTask {
| `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended
4 |
5 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:22:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
22 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: error: cannot find type 'URLRequest' in scope
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let task = urlSession.dataTask(with: URLRequest)
30 |
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
47 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
51 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // MARK: URLSessionTaskDelegate
62 | open 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.
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | // MARK: URLSessionDataDelegate
67 | open 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.
68 | buffer(for: dataTask)?.append(data)
69 | }
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/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: error: cannot find type 'URLSessionDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: error: cannot find type 'URLSessionDataDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
18 | /// The underlying `URLSession` instance.
19 | open var urlSession: URLSession!
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:24:99: error: 'nil' requires a contextual type
22 | public init(configuration: URLSessionConfiguration) {
23 | super.init()
24 | self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:29:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 | open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
29 | let task = urlSession.dataTask(with: URLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 |
31 | setBuffer(NSMutableData(), forTask: task)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:39:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
37 | /// Aggregates `URLSessionTask` instances in `URLSession` using `getTasksWithCompletionHandler(_:)`.
38 | open func getTasks(with handler: @escaping ([SessionTask]) -> Void) {
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'getTasksWithCompletionHandler'
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:41:21: error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
39 | urlSession.getTasksWithCompletionHandler { dataTasks, uploadTasks, downloadTasks in
40 | let allTasks: [URLSessionTask] = dataTasks + uploadTasks + downloadTasks
41 | handler(allTasks)
| |- error: cannot convert value of type '[URLSessionTask]' (aka 'Array<AnyObject>') to expected argument type '[any SessionTask]'
| `- note: arguments to generic parameter 'Element' ('URLSessionTask' (aka 'AnyObject') and 'any SessionTask') are expected to be equal
42 | }
43 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:9: error: cannot find 'objc_setAssociatedObject' in scope
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:46:77: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
44 |
45 | private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
46 | objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
47 | }
48 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:50:16: error: cannot find 'objc_getAssociatedObject' in scope
48 |
49 | private func buffer(for task: URLSessionTask) -> NSMutableData? {
50 | return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
| `- error: cannot find 'objc_getAssociatedObject' in scope
51 | }
52 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:9: error: cannot find 'objc_setAssociatedObject' in scope
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:54:100: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
52 |
53 | private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
54 | objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
55 | }
56 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:58:16: error: cannot find 'objc_getAssociatedObject' in scope
56 |
57 | private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
58 | return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
| `- error: cannot find 'objc_getAssociatedObject' in scope
59 | }
60 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:63:62: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
61 | // MARK: URLSessionTaskDelegate
62 | open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
63 | handler(for: task)?(buffer(for: task) as Data?, task.response, error)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
64 | }
65 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// if the HTTP status code is not in `200..<300`.
54 | /// - Throws: `Error`
55 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Sources/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | /// `intercept(object:urlResponse:)` if it does not throw any error.
59 | /// - Throws: `Error`
60 | func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
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/APIKit/Sources/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | }
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Sources/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 | /// Builds `URLRequest` from properties of `self`.
104 | /// - Throws: `RequestError`, `Error`
105 | func buildURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | /// Builds `Response` from response `Data`.
141 | /// - Throws: `ResponseError`, `Error`
142 | func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let parsedObject = try dataParser.parse(data: data)
144 | let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Sources/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 | func response(from object: Any, urlResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | return
152 | }
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/APIKit/Sources/APIKit/Request.swift:97:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
99 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:98:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 | return object
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:111:26: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
112 |
113 | if let queryParameters = queryParameters, !queryParameters.isEmpty {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:12: error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:70: error: cannot find type 'CFString' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find type 'CFString' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:55: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:80: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 | // Shared session for class methods
22 | private static let privateShared: Session = {
23 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | let adapter = URLSessionAdapter(configuration: configuration)
25 | return Session(adapter: adapter)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:82:25: error: cannot find type 'URLRequest' in scope
80 | internal func createSessionTask<Request: APIKit.Request>(_ request: Request, callbackQueue: CallbackQueue?, handler: @escaping (Result<Request.Response, SessionTaskError>) -> Void) -> SessionTask? {
81 | let callbackQueue = callbackQueue ?? self.callbackQueue
82 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
83 | do {
84 | urlRequest = try request.buildURLRequest()
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:9: error: cannot find 'objc_setAssociatedObject' in scope
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:67: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:125:16: error: cannot find 'objc_getAssociatedObject' in scope
123 |
124 | private func requestForTask<Request: APIKit.Request>(_ task: SessionTask) -> Request? {
125 | return objc_getAssociatedObject(task, &taskRequestKey) as? Request
| `- error: cannot find 'objc_getAssociatedObject' in scope
126 | }
127 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// if the HTTP status code is not in `200..<300`.
54 | /// - Throws: `Error`
55 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Sources/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | /// `intercept(object:urlResponse:)` if it does not throw any error.
59 | /// - Throws: `Error`
60 | func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
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/APIKit/Sources/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | }
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Sources/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 | /// Builds `URLRequest` from properties of `self`.
104 | /// - Throws: `RequestError`, `Error`
105 | func buildURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | /// Builds `Response` from response `Data`.
141 | /// - Throws: `ResponseError`, `Error`
142 | func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let parsedObject = try dataParser.parse(data: data)
144 | let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Sources/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 | func response(from object: Any, urlResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | return
152 | }
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/APIKit/Sources/APIKit/Request.swift:97:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
99 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:98:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 | return object
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:111:26: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
112 |
113 | if let queryParameters = queryParameters, !queryParameters.isEmpty {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:12: error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:70: error: cannot find type 'CFString' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find type 'CFString' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:55: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:80: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 | // Shared session for class methods
22 | private static let privateShared: Session = {
23 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | let adapter = URLSessionAdapter(configuration: configuration)
25 | return Session(adapter: adapter)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:82:25: error: cannot find type 'URLRequest' in scope
80 | internal func createSessionTask<Request: APIKit.Request>(_ request: Request, callbackQueue: CallbackQueue?, handler: @escaping (Result<Request.Response, SessionTaskError>) -> Void) -> SessionTask? {
81 | let callbackQueue = callbackQueue ?? self.callbackQueue
82 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
83 | do {
84 | urlRequest = try request.buildURLRequest()
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:9: error: cannot find 'objc_setAssociatedObject' in scope
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:67: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:125:16: error: cannot find 'objc_getAssociatedObject' in scope
123 |
124 | private func requestForTask<Request: APIKit.Request>(_ task: SessionTask) -> Request? {
125 | return objc_getAssociatedObject(task, &taskRequestKey) as? Request
| `- error: cannot find 'objc_getAssociatedObject' in scope
126 | }
127 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
46 | /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
47 | /// - Throws: `Error`
48 | func intercept(urlRequest: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// if the HTTP status code is not in `200..<300`.
54 | /// - Throws: `Error`
55 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Sources/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | /// `intercept(object:urlResponse:)` if it does not throw any error.
59 | /// - Throws: `Error`
60 | func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
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/APIKit/Sources/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
90 | }
91 |
92 | func intercept(urlRequest: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
93 | return urlRequest
94 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | }
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Sources/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 | /// Builds `URLRequest` from properties of `self`.
104 | /// - Throws: `RequestError`, `Error`
105 | func buildURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | /// Builds `Response` from response `Data`.
141 | /// - Throws: `ResponseError`, `Error`
142 | func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let parsedObject = try dataParser.parse(data: data)
144 | let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Sources/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 | func response(from object: Any, urlResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | return
152 | }
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/APIKit/Sources/APIKit/Request.swift:97:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
99 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:98:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
96 | func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
97 | guard 200..<300 ~= urlResponse.statusCode else {
98 | throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 | return object
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Request.swift:111:26: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
112 |
113 | if let queryParameters = queryParameters, !queryParameters.isEmpty {
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:12: error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find 'CFURLCreateStringByReplacingPercentEscapes' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:70: error: cannot find type 'CFString' in scope
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: cannot find type 'CFString' in scope
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:55: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Serializations/URLEncodedSerialization.swift:41:80: error: 'nil' requires a contextual type
39 |
40 | private func unescape(_ string: String) -> String {
41 | return CFURLCreateStringByReplacingPercentEscapes(nil, string as CFString, nil) as String
| `- error: 'nil' requires a contextual type
42 | }
43 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 | /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 | func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
| `- error: cannot find type 'URLRequest' in scope
15 |
16 | /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 | // Shared session for class methods
22 | private static let privateShared: Session = {
23 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | let adapter = URLSessionAdapter(configuration: configuration)
25 | return Session(adapter: adapter)
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:82:25: error: cannot find type 'URLRequest' in scope
80 | internal func createSessionTask<Request: APIKit.Request>(_ request: Request, callbackQueue: CallbackQueue?, handler: @escaping (Result<Request.Response, SessionTaskError>) -> Void) -> SessionTask? {
81 | let callbackQueue = callbackQueue ?? self.callbackQueue
82 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
83 | do {
84 | urlRequest = try request.buildURLRequest()
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:9: error: cannot find 'objc_setAssociatedObject' in scope
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot find 'objc_setAssociatedObject' in scope
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:121:67: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
119 |
120 | private func setRequest<Request: APIKit.Request>(_ request: Request, forTask task: SessionTask) {
121 | objc_setAssociatedObject(task, &taskRequestKey, request, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
122 | }
123 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Session.swift:125:16: error: cannot find 'objc_getAssociatedObject' in scope
123 |
124 | private func requestForTask<Request: APIKit.Request>(_ task: SessionTask) -> Request? {
125 | return objc_getAssociatedObject(task, &taskRequestKey) as? Request
| `- error: cannot find 'objc_getAssociatedObject' in scope
126 | }
127 | }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/Error/ResponseError.swift:7:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public enum ResponseError: Error {
6 | /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
7 | case nonHTTPURLResponse(URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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/APIKit/Sources/APIKit/Error/ResponseError.swift:7:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public enum ResponseError: Error {
6 | /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
7 | case nonHTTPURLResponse(URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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/APIKit/Sources/APIKit/Error/ResponseError.swift:7:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public enum ResponseError: Error {
6 | /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
7 | case nonHTTPURLResponse(URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[65/187] Emitting module Commander
/host/spi-builder-workspace/.build/checkouts/Commander/Sources/Commander/CommandRunner.swift:6:10: error: no such module 'Darwin'
4 | import CRT
5 | #else
6 | import Darwin
| `- error: no such module 'Darwin'
7 | #endif
8 |
[66/187] Compiling Rainbow String+Rainbow.swift
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:114:36: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
112 | }
113 |
114 | let detectedMimeType = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, fileURL.pathExtension as CFString, nil)
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
115 | .map { $0.takeRetainedValue() }
116 | .flatMap { UTTypeCopyPreferredTagWithClass($0, kUTTagClassMIMEType)?.takeRetainedValue() }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:114:74: error: cannot find 'kUTTagClassFilenameExtension' in scope
112 | }
113 |
114 | let detectedMimeType = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, fileURL.pathExtension as CFString, nil)
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
115 | .map { $0.takeRetainedValue() }
116 | .flatMap { UTTypeCopyPreferredTagWithClass($0, kUTTagClassMIMEType)?.takeRetainedValue() }
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:116:28: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
114 | let detectedMimeType = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, fileURL.pathExtension as CFString, nil)
115 | .map { $0.takeRetainedValue() }
116 | .flatMap { UTTypeCopyPreferredTagWithClass($0, kUTTagClassMIMEType)?.takeRetainedValue() }
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
117 | .map { $0 as String }
118 |
/host/spi-builder-workspace/.build/checkouts/APIKit/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:116:64: error: cannot find 'kUTTagClassMIMEType' in scope
114 | let detectedMimeType = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, fileURL.pathExtension as CFString, nil)
115 | .map { $0.takeRetainedValue() }
116 | .flatMap { UTTypeCopyPreferredTagWithClass($0, kUTTagClassMIMEType)?.takeRetainedValue() }
| `- error: cannot find 'kUTTagClassMIMEType' in scope
117 | .map { $0 as String }
118 |
BUILD FAILURE 6.1 android