Build Information
Failed to build swift-apple-search-ads-api, reference main (58c314), with Swift 6.2 for Wasm on 1 Sep 2026 16:28:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[715/746] Compiling AppleSearchAds CoderExtensions.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[716/746] Compiling AppleSearchAds ErrorExtensions.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[717/746] Compiling AppleSearchAds ResponseExtensions.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[718/746] Compiling AppleSearchAds URLRequestExtensions.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[719/746] Compiling AppleSearchAds AccessToken.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[720/746] Compiling AppleSearchAds Ad.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[721/746] Compiling AppleSearchAds AdCreate.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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[722/746] 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: 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: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:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 | let provider = Provider(
29 | baseURL: URL(string: "https://api.searchads.apple.com")!,
30 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 | plugins: [
32 | 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>
[723/746] 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>
[724/746] 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>
[725/746] 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>
[726/746] 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>
[727/746] 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>
[728/746] 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>
[729/746] 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>
[730/746] 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>
[731/746] 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>
[732/746] 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>
[733/746] 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>
[734/746] 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>
[735/746] 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>
[736/746] 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>
[737/746] 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>
[738/746] 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>
[739/746] 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>
[740/746] 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>
[741/746] 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>
[742/746] 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>
[743/746] 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>
[744/746] 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>
[745/746] 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>
[746/746] Compiling AppleSearchAds AdCreativeRejectionReasonsFindRequest.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>
BUILD FAILURE 6.2 wasm