The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-apple-search-ads-api, reference main (9d0805), with Swift 6.1 for Wasm on 30 Jan 2026 22:20:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

  |                  `- 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
[147/294] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[148/318] 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(),
[149/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(),
[150/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(),
[151/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(),
[152/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(),
[153/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(),
[154/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(),
[155/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(),
[156/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(),
[157/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(),
[158/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(),
[159/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(),
[160/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(),
[161/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(),
[162/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(),
[163/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(),
[164/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(),
[165/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(),
[166/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(),
[167/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(),
[168/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(),
[169/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(),
[170/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(),
[171/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(),
[172/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(),
[173/342] Compiling AppleSearchAds MeDetailsRequest.swift
[174/342] Compiling AppleSearchAds UserACLRequest.swift
[175/342] Compiling AppleSearchAds CreativeCreateRequest.swift
[176/342] Compiling AppleSearchAds CreativeRequest.swift
[177/342] Compiling AppleSearchAds CreativesFindRequest.swift
[178/342] Compiling AppleSearchAds CreativesListRequest.swift
[179/342] Compiling AppleSearchAds AppPreviewDeviceSizesRequest.swift
[180/342] Compiling AppleSearchAds ProductPageLocalesRequest.swift
[181/342] Compiling AppleSearchAds ProductPageRequest.swift
[182/342] Compiling AppleSearchAds ProductPagesRequest.swift
[183/342] Compiling AppleSearchAds SupportedCountriesOrRegionsRequest.swift
[184/342] Compiling AppleSearchAds GeolocationsListRequest.swift
[185/342] Compiling AppleSearchAds GeolocationsSearchRequest.swift
[186/342] Compiling AppleSearchAds AdGroupNegativeKeywordRequest.swift
[187/342] Compiling AppleSearchAds AdGroupNegativeKeywordsCreateRequest.swift
[188/342] Compiling AppleSearchAds AdGroupNegativeKeywordsDeleteRequest.swift
[189/342] Compiling AppleSearchAds AdGroupNegativeKeywordsFindRequest.swift
[190/342] Compiling AppleSearchAds AdGroupNegativeKeywordsListRequest.swift
[191/342] Compiling AppleSearchAds AdGroupNegativeKeywordsUpdateRequest.swift
[192/342] Compiling AppleSearchAds CampaignNegativeKeywordRequest.swift
[193/342] Compiling AppleSearchAds CampaignNegativeKeywordsCreateRequest.swift
[194/342] Compiling AppleSearchAds CampaignNegativeKeywordsDeleteRequest.swift
[195/342] Compiling AppleSearchAds CampaignNegativeKeywordsFindRequest.swift
[196/342] Compiling AppleSearchAds CampaignNegativeKeywordsListRequest.swift
[197/342] Compiling AppleSearchAds APIConfiguration.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) }
[198/342] Compiling AppleSearchAds APIProvider+AdGroupKeywords.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) }
[199/342] Compiling AppleSearchAds APIProvider+AdGroups.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) }
[200/342] Compiling AppleSearchAds APIProvider+AdRejection.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) }
[201/342] Compiling AppleSearchAds APIProvider+Ads.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) }
[202/342] Compiling AppleSearchAds APIProvider+Apps.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) }
[203/342] Compiling AppleSearchAds APIProvider+BudgetOrders.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) }
[204/342] Compiling AppleSearchAds APIProvider+CampaignKeywords.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) }
[205/342] Compiling AppleSearchAds APIProvider+Campaigns.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) }
[206/342] Compiling AppleSearchAds APIProvider+Context.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) }
[207/342] Compiling AppleSearchAds APIProvider+Creatives.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) }
[208/342] Compiling AppleSearchAds APIProvider+CustomProductPages.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) }
[209/342] Compiling AppleSearchAds APIProvider+Geolocations.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) }
[210/342] Compiling AppleSearchAds APIProvider+Paged.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) }
[211/342] Compiling AppleSearchAds APIProvider+Reports.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) }
[212/342] Compiling AppleSearchAds APIProvider+TargetingKeywords.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) }
[213/342] Compiling AppleSearchAds APIProvider.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) }
[214/342] Compiling AppleSearchAds CoderExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[215/342] Compiling AppleSearchAds ErrorExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[216/342] Compiling AppleSearchAds ResponseExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[217/342] Compiling AppleSearchAds URLRequestExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[218/342] Compiling AppleSearchAds AccessToken.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[219/342] Compiling AppleSearchAds Ad.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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) }
[220/342] 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) }
[221/342] 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) }
[222/342] Compiling AppleSearchAds AdGroupUpdate.swift
[223/342] Compiling AppleSearchAds AdRejectionReasonLevel.swift
[224/342] Compiling AppleSearchAds AdUpdate.swift
[225/342] Compiling AppleSearchAds AdminAreaCriteria.swift
[226/342] Compiling AppleSearchAds AgeCriteria.swift
[227/342] Compiling AppleSearchAds AgeRange.swift
[228/342] Compiling AppleSearchAds AppAsset.swift
[229/342] Compiling AppleSearchAds AppCategoryCriteria.swift
[230/342] Compiling AppleSearchAds AppDetails.swift
[231/342] Compiling AppleSearchAds AppDownloaderCriteria.swift
[232/342] Compiling AppleSearchAds AppInfo.swift
[233/342] Compiling AppleSearchAds AppLocaleDetails.swift
[234/342] Compiling AppleSearchAds AppPreviewDeviceWithAssets.swift
[235/342] Compiling AppleSearchAds BudgetOrder.swift
[236/342] Compiling AppleSearchAds BudgetOrderCreate.swift
[237/342] Compiling AppleSearchAds BudgetOrderInfo.swift
[238/342] Compiling AppleSearchAds BudgetOrderUpdate.swift
[239/342] Compiling AppleSearchAds Campaign.swift
[240/342] Compiling AppleSearchAds CampaignAppDetail.swift
[241/342] Compiling AppleSearchAds CampaignUpdate.swift
[242/342] Compiling AppleSearchAds CampaignUpdateProperties.swift
[243/342] Compiling AppleSearchAds Condition.swift
[244/342] Compiling AppleSearchAds CountryCriteria.swift
[245/342] Compiling AppleSearchAds CountryOrRegion.swift
[246/342] Compiling AppleSearchAds Creative.swift
[247/342] Compiling AppleSearchAds CreativeCustomProductPage.swift
[248/342] Compiling AppleSearchAds CreativeLocalization.swift
[249/342] Compiling AppleSearchAds CreativeLocalizationWithAssets.swift
[250/342] Compiling AppleSearchAds CustomReport.swift
[251/342] Compiling AppleSearchAds CustomReportDateRange.swift
[252/342] Compiling AppleSearchAds CustomReportGranularity.swift
[253/342] Compiling AppleSearchAds CustomReportRequest.swift
[254/342] Compiling AppleSearchAds CustomReportSelector.swift
[255/342] Compiling AppleSearchAds DaypartCriteria.swift
[256/342] Compiling AppleSearchAds DaypartDetail.swift
[257/342] Compiling AppleSearchAds DeviceClass.swift
[258/342] Compiling AppleSearchAds DeviceClassCriteria.swift
[259/342] Compiling AppleSearchAds EligibilityRecord.swift
[260/342] Compiling AppleSearchAds Empty.swift
[261/342] Compiling AppleSearchAds ErrorResponse.swift
[262/342] Compiling AppleSearchAds Gender.swift
[263/342] Compiling AppleSearchAds GenderCriteria.swift
[264/342] Compiling AppleSearchAds GeolocationEntity.swift
[265/342] Compiling AppleSearchAds GeolocationRequest.swift
[266/342] Compiling AppleSearchAds GeolocationSearchEntity.swift
[267/342] Compiling AppleSearchAds GrandTotalsRow.swift
[268/342] Compiling AppleSearchAds Keyword.swift
[269/342] Compiling AppleSearchAds KeywordBidRecommendation.swift
[270/342] Compiling AppleSearchAds KeywordDisplayStatus.swift
[271/342] Compiling AppleSearchAds AdCreativeRejectionReasonsFindRequest.swift
[272/342] Compiling AppleSearchAds AdCreativeRejectionReasonsRequest.swift
[273/342] Compiling AppleSearchAds AppAssetsFindRequest.swift
[274/342] Compiling AppleSearchAds AdCreateRequest.swift
[275/342] Compiling AppleSearchAds AdDeleteRequest.swift
[276/342] Compiling AppleSearchAds AdRequest.swift
[277/342] Compiling AppleSearchAds AdUpdateRequest.swift
[278/342] Compiling AppleSearchAds AdsFindRequest.swift
[279/342] Compiling AppleSearchAds AdsListRequest.swift
[280/342] Compiling AppleSearchAds AppDetailsRequest.swift
[281/342] Compiling AppleSearchAds AppEligibilityRequest.swift
[282/342] Compiling AppleSearchAds AppLocaleDetailsRequest.swift
[283/342] Compiling AppleSearchAds SearchAppsRequest.swift
[284/342] Compiling AppleSearchAds BudgetOrderCreateRequest.swift
[285/342] Compiling AppleSearchAds BudgetOrderListRequest.swift
[286/342] Compiling AppleSearchAds BudgetOrderRequest.swift
[287/342] Compiling AppleSearchAds BudgetOrderUpdateRequest.swift
[288/342] Compiling AppleSearchAds CampaignCreateRequest.swift
[289/342] Compiling AppleSearchAds CampaignDeleteRequest.swift
[290/342] Compiling AppleSearchAds CampaignFindRequest.swift
[291/342] Compiling AppleSearchAds CampaignListRequest.swift
[292/342] Compiling AppleSearchAds CampaignRequest.swift
[293/342] Compiling AppleSearchAds CampaignUpdateRequest.swift
[294/342] Compiling AppleSearchAds AccessTokenRequest.swift
[295/342] Compiling AppleSearchAds ProductPageReason.swift
[296/342] Compiling AppleSearchAds Reporting.swift
[297/342] Compiling AppleSearchAds ReportingAd.swift
[298/342] Compiling AppleSearchAds ReportingAdGroup.swift
[299/342] Compiling AppleSearchAds ReportingCampaign.swift
[300/342] Compiling AppleSearchAds ReportingData.swift
[301/342] Compiling AppleSearchAds ReportingKeyword.swift
[302/342] Compiling AppleSearchAds ReportingRequest.swift
[303/342] Compiling AppleSearchAds ReportingSearchTerm.swift
[304/342] Compiling AppleSearchAds Row.swift
[305/342] Compiling AppleSearchAds Selector.swift
[306/342] Compiling AppleSearchAds Sorting.swift
[307/342] Compiling AppleSearchAds SovCondition.swift
[308/342] Compiling AppleSearchAds SpendRow.swift
[309/342] Compiling AppleSearchAds SpendRowExtended.swift
[310/342] Compiling AppleSearchAds SupplySource.swift
[311/342] Compiling AppleSearchAds TargetingCriteria.swift
[312/342] Compiling AppleSearchAds TargetingDimensions.swift
[313/342] Compiling AppleSearchAds UserACL.swift
[314/342] Compiling AppleSearchAds APIError.swift
[315/342] Compiling AppleSearchAds JWT.swift
[316/342] Compiling AppleSearchAds APIErrorResponse.swift
[317/342] Compiling AppleSearchAds DataResponse.swift
[318/342] Compiling AppleSearchAds PagedObjectResponse.swift
[319/342] Compiling AppleSearchAds KeywordInsights.swift
[320/342] Compiling AppleSearchAds KeywordMatchType.swift
[321/342] Compiling AppleSearchAds KeywordStatus.swift
[322/342] Compiling AppleSearchAds KeywordUpdate.swift
[323/342] Compiling AppleSearchAds LOCInvoiceDetails.swift
[324/342] Compiling AppleSearchAds LocaleInfo.swift
[325/342] Compiling AppleSearchAds LocalityCriteria.swift
[326/342] Compiling AppleSearchAds MeDetail.swift
[327/342] Compiling AppleSearchAds MediaAppAsset.swift
[328/342] Compiling AppleSearchAds MediaAppAssetsDetail.swift
[329/342] Compiling AppleSearchAds MediaAppPreviewOrScreenshots.swift
[330/342] Compiling AppleSearchAds MediaAppPreviewOrScreenshotsDetail.swift
[331/342] Compiling AppleSearchAds MediaAppVideoAsset.swift
[332/342] Compiling AppleSearchAds MediaAssetOrientation.swift
[333/342] Compiling AppleSearchAds MediaAssetType.swift
[334/342] Compiling AppleSearchAds Money.swift
[335/342] Compiling AppleSearchAds NegativeKeyword.swift
[336/342] Compiling AppleSearchAds PageDetail.swift
[337/342] Compiling AppleSearchAds Pagination.swift
[338/342] Compiling AppleSearchAds PaymentModel.swift
[339/342] Compiling AppleSearchAds PricingModel.swift
[340/342] Compiling AppleSearchAds ProductPageDetail.swift
[341/342] Compiling AppleSearchAds ProductPageDetailWithAssets.swift
[342/342] Compiling AppleSearchAds ProductPageLocaleDetail.swift
BUILD FAILURE 6.1 wasm