Build Information
Failed to build swift-apple-search-ads-api, reference main (9d0805), with Swift 6.3 for Wasm on 18 Apr 2026 09:17:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
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/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
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/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[524/670] Compiling AppleSearchAds AdGroup.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
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/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
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/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
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/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[525/694] Emitting module AppleSearchAds
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
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/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
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/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
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/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 | keyIdentifier: String,
70 | privateKeyURL: URL,
71 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | jwtExpirationDuration: TimeInterval = 86400
73 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[526/718] Compiling AppleSearchAds CampaignNegativeKeywordsUpdateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[527/718] Compiling AppleSearchAds TargetingKeywordDeleteRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[528/718] Compiling AppleSearchAds TargetingKeywordRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[529/718] Compiling AppleSearchAds TargetingKeywordsCreateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[530/718] Compiling AppleSearchAds TargetingKeywordsDeleteRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[531/718] Compiling AppleSearchAds TargetingKeywordsFindRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[532/718] Compiling AppleSearchAds TargetingKeywordsListRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[533/718] Compiling AppleSearchAds TargetingKeywordsUpdateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[534/718] Compiling AppleSearchAds AdGroupReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[535/718] Compiling AppleSearchAds AdReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[536/718] Compiling AppleSearchAds CampaignReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[537/718] Compiling AppleSearchAds ImpressionShareReportCreateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[538/718] Compiling AppleSearchAds ImpressionShareReportListRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[539/718] Compiling AppleSearchAds ImpressionShareReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[540/718] Compiling AppleSearchAds KeywordReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[541/718] Compiling AppleSearchAds SearchTermReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[542/718] Compiling AppleSearchAds AccessTokenStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[543/718] Compiling AppleSearchAds ContextStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[544/718] Compiling AppleSearchAds JWTStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[545/718] Compiling AppleSearchAds CodingKeysContaining.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[546/718] Compiling AppleSearchAds ExponentialBackoff.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[547/718] Compiling AppleSearchAds JWTDecoder.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[548/718] Compiling AppleSearchAds Retry.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[549/718] Compiling AppleSearchAds resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[550/718] Compiling AppleSearchAds AdCreativeRejectionReasonsFindRequest.swift
[551/718] Compiling AppleSearchAds AdCreativeRejectionReasonsRequest.swift
[552/718] Compiling AppleSearchAds AppAssetsFindRequest.swift
[553/718] Compiling AppleSearchAds AdCreateRequest.swift
[554/718] Compiling AppleSearchAds AdDeleteRequest.swift
[555/718] Compiling AppleSearchAds AdRequest.swift
[556/718] Compiling AppleSearchAds AdUpdateRequest.swift
[557/718] Compiling AppleSearchAds AdsFindRequest.swift
[558/718] Compiling AppleSearchAds AdsListRequest.swift
[559/718] Compiling AppleSearchAds AppDetailsRequest.swift
[560/718] Compiling AppleSearchAds AppEligibilityRequest.swift
[561/718] Compiling AppleSearchAds AppLocaleDetailsRequest.swift
[562/718] Compiling AppleSearchAds SearchAppsRequest.swift
[563/718] Compiling AppleSearchAds BudgetOrderCreateRequest.swift
[564/718] Compiling AppleSearchAds BudgetOrderListRequest.swift
[565/718] Compiling AppleSearchAds BudgetOrderRequest.swift
[566/718] Compiling AppleSearchAds BudgetOrderUpdateRequest.swift
[567/718] Compiling AppleSearchAds CampaignCreateRequest.swift
[568/718] Compiling AppleSearchAds CampaignDeleteRequest.swift
[569/718] Compiling AppleSearchAds CampaignFindRequest.swift
[570/718] Compiling AppleSearchAds CampaignListRequest.swift
[571/718] Compiling AppleSearchAds CampaignRequest.swift
[572/718] Compiling AppleSearchAds CampaignUpdateRequest.swift
[573/718] Compiling AppleSearchAds AccessTokenRequest.swift
[574/718] Compiling AppleSearchAds MeDetailsRequest.swift
[575/718] Compiling AppleSearchAds UserACLRequest.swift
[576/718] Compiling AppleSearchAds CreativeCreateRequest.swift
[577/718] Compiling AppleSearchAds CreativeRequest.swift
[578/718] Compiling AppleSearchAds CreativesFindRequest.swift
[579/718] Compiling AppleSearchAds CreativesListRequest.swift
[580/718] Compiling AppleSearchAds AppPreviewDeviceSizesRequest.swift
[581/718] Compiling AppleSearchAds ProductPageLocalesRequest.swift
[582/718] Compiling AppleSearchAds ProductPageRequest.swift
[583/718] Compiling AppleSearchAds ProductPagesRequest.swift
[584/718] Compiling AppleSearchAds SupportedCountriesOrRegionsRequest.swift
[585/718] Compiling AppleSearchAds GeolocationsListRequest.swift
[586/718] Compiling AppleSearchAds GeolocationsSearchRequest.swift
[587/718] Compiling AppleSearchAds AdGroupNegativeKeywordRequest.swift
[588/718] Compiling AppleSearchAds AdGroupNegativeKeywordsCreateRequest.swift
[589/718] Compiling AppleSearchAds AdGroupNegativeKeywordsDeleteRequest.swift
[590/718] Compiling AppleSearchAds AdGroupNegativeKeywordsFindRequest.swift
[591/718] Compiling AppleSearchAds AdGroupNegativeKeywordsListRequest.swift
[592/718] Compiling AppleSearchAds AdGroupNegativeKeywordsUpdateRequest.swift
[593/718] Compiling AppleSearchAds CampaignNegativeKeywordRequest.swift
[594/718] Compiling AppleSearchAds CampaignNegativeKeywordsCreateRequest.swift
[595/718] Compiling AppleSearchAds CampaignNegativeKeywordsDeleteRequest.swift
[596/718] Compiling AppleSearchAds CampaignNegativeKeywordsFindRequest.swift
[597/718] Compiling AppleSearchAds CampaignNegativeKeywordsListRequest.swift
[598/718] Compiling AppleSearchAds CreativeCustomProductPage.swift
[599/718] Compiling AppleSearchAds CreativeLocalization.swift
[600/718] Compiling AppleSearchAds CreativeLocalizationWithAssets.swift
[601/718] Compiling AppleSearchAds CustomReport.swift
[602/718] Compiling AppleSearchAds CustomReportDateRange.swift
[603/718] Compiling AppleSearchAds CustomReportGranularity.swift
[604/718] Compiling AppleSearchAds CustomReportRequest.swift
[605/718] Compiling AppleSearchAds CustomReportSelector.swift
[606/718] Compiling AppleSearchAds DaypartCriteria.swift
[607/718] Compiling AppleSearchAds DaypartDetail.swift
[608/718] Compiling AppleSearchAds DeviceClass.swift
[609/718] Compiling AppleSearchAds DeviceClassCriteria.swift
[610/718] Compiling AppleSearchAds EligibilityRecord.swift
[611/718] Compiling AppleSearchAds Empty.swift
[612/718] Compiling AppleSearchAds ErrorResponse.swift
[613/718] Compiling AppleSearchAds Gender.swift
[614/718] Compiling AppleSearchAds GenderCriteria.swift
[615/718] Compiling AppleSearchAds GeolocationEntity.swift
[616/718] Compiling AppleSearchAds GeolocationRequest.swift
[617/718] Compiling AppleSearchAds GeolocationSearchEntity.swift
[618/718] Compiling AppleSearchAds GrandTotalsRow.swift
[619/718] Compiling AppleSearchAds Keyword.swift
[620/718] Compiling AppleSearchAds KeywordBidRecommendation.swift
[621/718] Compiling AppleSearchAds KeywordDisplayStatus.swift
[622/718] Compiling AppleSearchAds PagedResponse.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[623/718] Compiling AppleSearchAds Paginated.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[624/718] Compiling AppleSearchAds PaginatedObject.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[625/718] Compiling AppleSearchAds Response.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[626/718] Compiling AppleSearchAds ResponseStatus.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[627/718] Compiling AppleSearchAds AcceptHeadersInjector.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[628/718] Compiling AppleSearchAds AuthorizationInjector.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[629/718] Compiling AppleSearchAds ContextInjector.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[630/718] Compiling AppleSearchAds HostInjector.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[631/718] Compiling AppleSearchAds Plugin.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[632/718] Compiling AppleSearchAds Provider.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[633/718] Compiling AppleSearchAds ProviderType.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[634/718] Compiling AppleSearchAds SessionType.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[635/718] Compiling AppleSearchAds HTTPMethod.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[636/718] Compiling AppleSearchAds Request.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[637/718] Compiling AppleSearchAds RequestBody.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[638/718] Compiling AppleSearchAds RequestQuery.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[639/718] Compiling AppleSearchAds RequestType+URLRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[640/718] Compiling AppleSearchAds AdGroupCreateRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[641/718] Compiling AppleSearchAds AdGroupDeleteRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[642/718] Compiling AppleSearchAds AdGroupFindRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[643/718] Compiling AppleSearchAds AdGroupListRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[644/718] Compiling AppleSearchAds AdGroupRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[645/718] Compiling AppleSearchAds AdGroupUpdateRequest.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:21:23: error: cannot find 'URLRequest' in scope
19 | throw RequestEncodingError.invalidURL
20 | }
21 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = method.rawValue
23 | request.allHTTPHeaderFields = headers
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[646/718] Compiling AppleSearchAds KeywordInsights.swift
[647/718] Compiling AppleSearchAds KeywordMatchType.swift
[648/718] Compiling AppleSearchAds KeywordStatus.swift
[649/718] Compiling AppleSearchAds KeywordUpdate.swift
[650/718] Compiling AppleSearchAds LOCInvoiceDetails.swift
[651/718] Compiling AppleSearchAds LocaleInfo.swift
[652/718] Compiling AppleSearchAds LocalityCriteria.swift
[653/718] Compiling AppleSearchAds MeDetail.swift
[654/718] Compiling AppleSearchAds MediaAppAsset.swift
[655/718] Compiling AppleSearchAds MediaAppAssetsDetail.swift
[656/718] Compiling AppleSearchAds MediaAppPreviewOrScreenshots.swift
[657/718] Compiling AppleSearchAds MediaAppPreviewOrScreenshotsDetail.swift
[658/718] Compiling AppleSearchAds MediaAppVideoAsset.swift
[659/718] Compiling AppleSearchAds MediaAssetOrientation.swift
[660/718] Compiling AppleSearchAds MediaAssetType.swift
[661/718] Compiling AppleSearchAds Money.swift
[662/718] Compiling AppleSearchAds NegativeKeyword.swift
[663/718] Compiling AppleSearchAds PageDetail.swift
[664/718] Compiling AppleSearchAds Pagination.swift
[665/718] Compiling AppleSearchAds PaymentModel.swift
[666/718] Compiling AppleSearchAds PricingModel.swift
[667/718] Compiling AppleSearchAds ProductPageDetail.swift
[668/718] Compiling AppleSearchAds ProductPageDetailWithAssets.swift
[669/718] Compiling AppleSearchAds ProductPageLocaleDetail.swift
[670/718] Compiling AppleSearchAds AdGroupUpdate.swift
[671/718] Compiling AppleSearchAds AdRejectionReasonLevel.swift
[672/718] Compiling AppleSearchAds AdUpdate.swift
[673/718] Compiling AppleSearchAds AdminAreaCriteria.swift
[674/718] Compiling AppleSearchAds AgeCriteria.swift
[675/718] Compiling AppleSearchAds AgeRange.swift
[676/718] Compiling AppleSearchAds AppAsset.swift
[677/718] Compiling AppleSearchAds AppCategoryCriteria.swift
[678/718] Compiling AppleSearchAds AppDetails.swift
[679/718] Compiling AppleSearchAds AppDownloaderCriteria.swift
[680/718] Compiling AppleSearchAds AppInfo.swift
[681/718] Compiling AppleSearchAds AppLocaleDetails.swift
[682/718] Compiling AppleSearchAds AppPreviewDeviceWithAssets.swift
[683/718] Compiling AppleSearchAds BudgetOrder.swift
[684/718] Compiling AppleSearchAds BudgetOrderCreate.swift
[685/718] Compiling AppleSearchAds BudgetOrderInfo.swift
[686/718] Compiling AppleSearchAds BudgetOrderUpdate.swift
[687/718] Compiling AppleSearchAds Campaign.swift
[688/718] Compiling AppleSearchAds CampaignAppDetail.swift
[689/718] Compiling AppleSearchAds CampaignUpdate.swift
[690/718] Compiling AppleSearchAds CampaignUpdateProperties.swift
[691/718] Compiling AppleSearchAds Condition.swift
[692/718] Compiling AppleSearchAds CountryCriteria.swift
[693/718] Compiling AppleSearchAds CountryOrRegion.swift
[694/718] Compiling AppleSearchAds Creative.swift
[695/718] Compiling AppleSearchAds ProductPageReason.swift
[696/718] Compiling AppleSearchAds Reporting.swift
[697/718] Compiling AppleSearchAds ReportingAd.swift
[698/718] Compiling AppleSearchAds ReportingAdGroup.swift
[699/718] Compiling AppleSearchAds ReportingCampaign.swift
[700/718] Compiling AppleSearchAds ReportingData.swift
[701/718] Compiling AppleSearchAds ReportingKeyword.swift
[702/718] Compiling AppleSearchAds ReportingRequest.swift
[703/718] Compiling AppleSearchAds ReportingSearchTerm.swift
[704/718] Compiling AppleSearchAds Row.swift
[705/718] Compiling AppleSearchAds Selector.swift
[706/718] Compiling AppleSearchAds Sorting.swift
[707/718] Compiling AppleSearchAds SovCondition.swift
[708/718] Compiling AppleSearchAds SpendRow.swift
[709/718] Compiling AppleSearchAds SpendRowExtended.swift
[710/718] Compiling AppleSearchAds SupplySource.swift
[711/718] Compiling AppleSearchAds TargetingCriteria.swift
[712/718] Compiling AppleSearchAds TargetingDimensions.swift
[713/718] Compiling AppleSearchAds UserACL.swift
[714/718] Compiling AppleSearchAds APIError.swift
[715/718] Compiling AppleSearchAds JWT.swift
[716/718] Compiling AppleSearchAds APIErrorResponse.swift
[717/718] Compiling AppleSearchAds DataResponse.swift
[718/718] Compiling AppleSearchAds PagedObjectResponse.swift
BUILD FAILURE 6.3 wasm