Build Information
Failed to build swift-apple-search-ads-api, reference 1.1.5 (702f83), with Swift 6.1 for Wasm on 30 Jan 2026 22:16:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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: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
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
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[147/294] 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: 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: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
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
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[148/294] 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: 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: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
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
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[149/318] Compiling AppleSearchAds MeDetailsRequest.swift
[150/318] Compiling AppleSearchAds UserACLRequest.swift
[151/318] Compiling AppleSearchAds CreativeCreateRequest.swift
[152/318] Compiling AppleSearchAds CreativeRequest.swift
[153/318] Compiling AppleSearchAds CreativesFindRequest.swift
[154/318] Compiling AppleSearchAds CreativesListRequest.swift
[155/318] Compiling AppleSearchAds AppPreviewDeviceSizesRequest.swift
[156/318] Compiling AppleSearchAds ProductPageLocalesRequest.swift
[157/318] Compiling AppleSearchAds ProductPageRequest.swift
[158/318] Compiling AppleSearchAds ProductPagesRequest.swift
[159/318] Compiling AppleSearchAds SupportedCountriesOrRegionsRequest.swift
[160/318] Compiling AppleSearchAds GeolocationsListRequest.swift
[161/318] Compiling AppleSearchAds GeolocationsSearchRequest.swift
[162/318] Compiling AppleSearchAds AdGroupNegativeKeywordRequest.swift
[163/318] Compiling AppleSearchAds AdGroupNegativeKeywordsCreateRequest.swift
[164/318] Compiling AppleSearchAds AdGroupNegativeKeywordsDeleteRequest.swift
[165/318] Compiling AppleSearchAds AdGroupNegativeKeywordsFindRequest.swift
[166/318] Compiling AppleSearchAds AdGroupNegativeKeywordsListRequest.swift
[167/318] Compiling AppleSearchAds AdGroupNegativeKeywordsUpdateRequest.swift
[168/318] Compiling AppleSearchAds CampaignNegativeKeywordRequest.swift
[169/318] Compiling AppleSearchAds CampaignNegativeKeywordsCreateRequest.swift
[170/318] Compiling AppleSearchAds CampaignNegativeKeywordsDeleteRequest.swift
[171/318] Compiling AppleSearchAds CampaignNegativeKeywordsFindRequest.swift
[172/318] Compiling AppleSearchAds CampaignNegativeKeywordsListRequest.swift
[173/342] Compiling AppleSearchAds CampaignNegativeKeywordsUpdateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[174/342] Compiling AppleSearchAds TargetingKeywordDeleteRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[175/342] Compiling AppleSearchAds TargetingKeywordRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[176/342] Compiling AppleSearchAds TargetingKeywordsCreateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[177/342] Compiling AppleSearchAds TargetingKeywordsDeleteRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[178/342] Compiling AppleSearchAds TargetingKeywordsFindRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[179/342] Compiling AppleSearchAds TargetingKeywordsListRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[180/342] Compiling AppleSearchAds TargetingKeywordsUpdateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[181/342] Compiling AppleSearchAds AdGroupReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[182/342] Compiling AppleSearchAds AdReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[183/342] Compiling AppleSearchAds CampaignReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[184/342] Compiling AppleSearchAds ImpressionShareReportCreateRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[185/342] Compiling AppleSearchAds ImpressionShareReportListRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[186/342] Compiling AppleSearchAds ImpressionShareReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[187/342] Compiling AppleSearchAds KeywordReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[188/342] Compiling AppleSearchAds SearchTermReportRequest.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[189/342] Compiling AppleSearchAds AccessTokenStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[190/342] Compiling AppleSearchAds ContextStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[191/342] Compiling AppleSearchAds JWTStore.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[192/342] Compiling AppleSearchAds CodingKeysContaining.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[193/342] Compiling AppleSearchAds ExponentialBackoff.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[194/342] Compiling AppleSearchAds JWTDecoder.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[195/342] Compiling AppleSearchAds Retry.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[196/342] Compiling AppleSearchAds resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
error: emit-module command failed with exit code 1 (use -v to see invocation)
[197/342] Emitting module AppleSearchAds
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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: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/APIProvider.swift:24:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
22 | let provider = Provider(
23 | baseURL: URL(string: "https://api.searchads.apple.com")!,
24 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
25 | plugins: [
26 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | mutating func add(headers: [String: String], replace: Bool) {
8 | headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 | provider: Provider(
24 | baseURL: URL(string: "https://appleid.apple.com")!,
25 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 | plugins: [
27 | HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 | self.init(provider: Provider(
14 | baseURL: URL(string: "https://api.searchads.apple.com")!,
15 | session: configuration.session,
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 | plugins: [
17 | HostInjector(),
[198/342] Compiling AppleSearchAds AdCreativeRejectionReasonsFindRequest.swift
[199/342] Compiling AppleSearchAds AdCreativeRejectionReasonsRequest.swift
[200/342] Compiling AppleSearchAds AppAssetsFindRequest.swift
[201/342] Compiling AppleSearchAds AdCreateRequest.swift
[202/342] Compiling AppleSearchAds AdDeleteRequest.swift
[203/342] Compiling AppleSearchAds AdRequest.swift
[204/342] Compiling AppleSearchAds AdUpdateRequest.swift
[205/342] Compiling AppleSearchAds AdsFindRequest.swift
[206/342] Compiling AppleSearchAds AdsListRequest.swift
[207/342] Compiling AppleSearchAds AppDetailsRequest.swift
[208/342] Compiling AppleSearchAds AppEligibilityRequest.swift
[209/342] Compiling AppleSearchAds AppLocaleDetailsRequest.swift
[210/342] Compiling AppleSearchAds SearchAppsRequest.swift
[211/342] Compiling AppleSearchAds BudgetOrderCreateRequest.swift
[212/342] Compiling AppleSearchAds BudgetOrderListRequest.swift
[213/342] Compiling AppleSearchAds BudgetOrderRequest.swift
[214/342] Compiling AppleSearchAds BudgetOrderUpdateRequest.swift
[215/342] Compiling AppleSearchAds CampaignCreateRequest.swift
[216/342] Compiling AppleSearchAds CampaignDeleteRequest.swift
[217/342] Compiling AppleSearchAds CampaignFindRequest.swift
[218/342] Compiling AppleSearchAds CampaignListRequest.swift
[219/342] Compiling AppleSearchAds CampaignRequest.swift
[220/342] Compiling AppleSearchAds CampaignUpdateRequest.swift
[221/342] Compiling AppleSearchAds AccessTokenRequest.swift
[222/342] Compiling AppleSearchAds KeywordInsights.swift
[223/342] Compiling AppleSearchAds KeywordMatchType.swift
[224/342] Compiling AppleSearchAds KeywordStatus.swift
[225/342] Compiling AppleSearchAds KeywordUpdate.swift
[226/342] Compiling AppleSearchAds LOCInvoiceDetails.swift
[227/342] Compiling AppleSearchAds LocaleInfo.swift
[228/342] Compiling AppleSearchAds LocalityCriteria.swift
[229/342] Compiling AppleSearchAds MeDetail.swift
[230/342] Compiling AppleSearchAds MediaAppAsset.swift
[231/342] Compiling AppleSearchAds MediaAppAssetsDetail.swift
[232/342] Compiling AppleSearchAds MediaAppPreviewOrScreenshots.swift
[233/342] Compiling AppleSearchAds MediaAppPreviewOrScreenshotsDetail.swift
[234/342] Compiling AppleSearchAds MediaAppVideoAsset.swift
[235/342] Compiling AppleSearchAds MediaAssetOrientation.swift
[236/342] Compiling AppleSearchAds MediaAssetType.swift
[237/342] Compiling AppleSearchAds Money.swift
[238/342] Compiling AppleSearchAds NegativeKeyword.swift
[239/342] Compiling AppleSearchAds PageDetail.swift
[240/342] Compiling AppleSearchAds Pagination.swift
[241/342] Compiling AppleSearchAds PaymentModel.swift
[242/342] Compiling AppleSearchAds PricingModel.swift
[243/342] Compiling AppleSearchAds ProductPageDetail.swift
[244/342] Compiling AppleSearchAds ProductPageDetailWithAssets.swift
[245/342] Compiling AppleSearchAds ProductPageLocaleDetail.swift
[246/342] Compiling AppleSearchAds AdGroupUpdate.swift
[247/342] Compiling AppleSearchAds AdRejectionReasonLevel.swift
[248/342] Compiling AppleSearchAds AdUpdate.swift
[249/342] Compiling AppleSearchAds AdminAreaCriteria.swift
[250/342] Compiling AppleSearchAds AgeCriteria.swift
[251/342] Compiling AppleSearchAds AgeRange.swift
[252/342] Compiling AppleSearchAds AppAsset.swift
[253/342] Compiling AppleSearchAds AppCategoryCriteria.swift
[254/342] Compiling AppleSearchAds AppDetails.swift
[255/342] Compiling AppleSearchAds AppDownloaderCriteria.swift
[256/342] Compiling AppleSearchAds AppInfo.swift
[257/342] Compiling AppleSearchAds AppLocaleDetails.swift
[258/342] Compiling AppleSearchAds AppPreviewDeviceWithAssets.swift
[259/342] Compiling AppleSearchAds BudgetOrder.swift
[260/342] Compiling AppleSearchAds BudgetOrderCreate.swift
[261/342] Compiling AppleSearchAds BudgetOrderInfo.swift
[262/342] Compiling AppleSearchAds BudgetOrderUpdate.swift
[263/342] Compiling AppleSearchAds Campaign.swift
[264/342] Compiling AppleSearchAds CampaignAppDetail.swift
[265/342] Compiling AppleSearchAds CampaignUpdate.swift
[266/342] Compiling AppleSearchAds CampaignUpdateProperties.swift
[267/342] Compiling AppleSearchAds Condition.swift
[268/342] Compiling AppleSearchAds CountryCriteria.swift
[269/342] Compiling AppleSearchAds CountryOrRegion.swift
[270/342] Compiling AppleSearchAds Creative.swift
[271/342] Compiling AppleSearchAds PagedResponse.swift
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
20 | request.add(headers: headers, replace: true)
21 | }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 | func prepare(request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | let token = try await provider()
17 | let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
16 | guard let acl = try await provider().first else { return }
17 | request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | struct HostInjector: PluginType {
7 | func prepare(request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
8 | guard let url = request.url,
9 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func prepare<R: RequestType>(request: R) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var urlRequest = try request.urlRequest(baseURL: baseURL)
49 | for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:39:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | let request = try await prepare(request: request)
38 | let (data, urlResponse) = try await session.data(for: request)
39 | let statusCode = (urlResponse as? HTTPURLResponse)?.statusCode ?? ResponseStatus.success.rawValue
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | let response = Response(model: data, statusCode: ResponseStatus(rawValue: statusCode))
41 | return try response.validatingStatusCode()
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 | func urlRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | let url = baseURL.appendingPathComponent(path)
14 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol SessionType: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[272/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[273/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[274/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[275/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[276/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[277/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[278/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[279/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[280/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[281/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[282/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[283/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[284/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[285/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[286/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[287/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[288/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[289/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[290/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[291/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[292/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[293/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[294/342] 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
23 | }
24 | #else
25 | extension URLSession: SessionType {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[295/342] Compiling AppleSearchAds CreativeCustomProductPage.swift
[296/342] Compiling AppleSearchAds CreativeLocalization.swift
[297/342] Compiling AppleSearchAds CreativeLocalizationWithAssets.swift
[298/342] Compiling AppleSearchAds CustomReport.swift
[299/342] Compiling AppleSearchAds CustomReportDateRange.swift
[300/342] Compiling AppleSearchAds CustomReportGranularity.swift
[301/342] Compiling AppleSearchAds CustomReportRequest.swift
[302/342] Compiling AppleSearchAds CustomReportSelector.swift
[303/342] Compiling AppleSearchAds DaypartCriteria.swift
[304/342] Compiling AppleSearchAds DaypartDetail.swift
[305/342] Compiling AppleSearchAds DeviceClass.swift
[306/342] Compiling AppleSearchAds DeviceClassCriteria.swift
[307/342] Compiling AppleSearchAds EligibilityRecord.swift
[308/342] Compiling AppleSearchAds Empty.swift
[309/342] Compiling AppleSearchAds ErrorResponse.swift
[310/342] Compiling AppleSearchAds Gender.swift
[311/342] Compiling AppleSearchAds GenderCriteria.swift
[312/342] Compiling AppleSearchAds GeolocationEntity.swift
[313/342] Compiling AppleSearchAds GeolocationRequest.swift
[314/342] Compiling AppleSearchAds GeolocationSearchEntity.swift
[315/342] Compiling AppleSearchAds GrandTotalsRow.swift
[316/342] Compiling AppleSearchAds Keyword.swift
[317/342] Compiling AppleSearchAds KeywordBidRecommendation.swift
[318/342] Compiling AppleSearchAds KeywordDisplayStatus.swift
[319/342] Compiling AppleSearchAds ProductPageReason.swift
[320/342] Compiling AppleSearchAds Reporting.swift
[321/342] Compiling AppleSearchAds ReportingAd.swift
[322/342] Compiling AppleSearchAds ReportingAdGroup.swift
[323/342] Compiling AppleSearchAds ReportingCampaign.swift
[324/342] Compiling AppleSearchAds ReportingData.swift
[325/342] Compiling AppleSearchAds ReportingKeyword.swift
[326/342] Compiling AppleSearchAds ReportingRequest.swift
[327/342] Compiling AppleSearchAds ReportingSearchTerm.swift
[328/342] Compiling AppleSearchAds Row.swift
[329/342] Compiling AppleSearchAds Selector.swift
[330/342] Compiling AppleSearchAds Sorting.swift
[331/342] Compiling AppleSearchAds SovCondition.swift
[332/342] Compiling AppleSearchAds SpendRow.swift
[333/342] Compiling AppleSearchAds SpendRowExtended.swift
[334/342] Compiling AppleSearchAds SupplySource.swift
[335/342] Compiling AppleSearchAds TargetingCriteria.swift
[336/342] Compiling AppleSearchAds TargetingDimensions.swift
[337/342] Compiling AppleSearchAds UserACL.swift
[338/342] Compiling AppleSearchAds APIError.swift
[339/342] Compiling AppleSearchAds JWT.swift
[340/342] Compiling AppleSearchAds APIErrorResponse.swift
[341/342] Compiling AppleSearchAds DataResponse.swift
[342/342] Compiling AppleSearchAds PagedObjectResponse.swift
BUILD FAILURE 6.1 wasm