The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-apple-search-ads-api, reference 1.1.7 (f5ecd2), with Swift 6.2 for Wasm on 25 Jun 2026 08:41:05 UTC.

Build Command

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

Build Log

 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[553/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[554/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[555/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[556/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[557/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[558/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[559/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[560/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[561/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[562/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[563/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[564/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[565/722] 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: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[566/722] Compiling AppleSearchAds CoderExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[567/722] Compiling AppleSearchAds ErrorExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[568/722] Compiling AppleSearchAds ResponseExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[569/722] Compiling AppleSearchAds URLRequestExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[570/722] Compiling AppleSearchAds AccessToken.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[571/722] Compiling AppleSearchAds Ad.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[572/722] Compiling AppleSearchAds AdCreate.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[573/722] Compiling AppleSearchAds AdGroup.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 92 |                 return try P256.Signing.PrivateKey(derRepresentation: base64Key)
 93 |             case .pemURL(let privateKeyURL):
 94 |                 let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
    |                                                `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
 95 |                 return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
 96 |             }
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[574/746] 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(),
[575/746] 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(),
[576/746] 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(),
[577/746] 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(),
[578/746] 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(),
[579/746] 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(),
[580/746] 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(),
[581/746] 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(),
[582/746] 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(),
[583/746] 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(),
[584/746] 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(),
[585/746] 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(),
[586/746] 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(),
[587/746] 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(),
[588/746] 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(),
[589/746] 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(),
[590/746] 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(),
[591/746] 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(),
[592/746] 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(),
[593/746] 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(),
[594/746] 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(),
[595/746] Compiling AppleSearchAds NullCodable.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(),
[596/746] 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(),
[597/746] 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(),
[598/746] Compiling AppleSearchAds UserACLRequest.swift
[599/746] Compiling AppleSearchAds CreativeCreateRequest.swift
[600/746] Compiling AppleSearchAds CreativeRequest.swift
[601/746] Compiling AppleSearchAds CreativesFindRequest.swift
[602/746] Compiling AppleSearchAds CreativesListRequest.swift
[603/746] Compiling AppleSearchAds AppPreviewDeviceSizesRequest.swift
[604/746] Compiling AppleSearchAds ProductPageLocalesRequest.swift
[605/746] Compiling AppleSearchAds ProductPageRequest.swift
[606/746] Compiling AppleSearchAds ProductPagesRequest.swift
[607/746] Compiling AppleSearchAds SupportedCountriesOrRegionsRequest.swift
[608/746] Compiling AppleSearchAds GeolocationsListRequest.swift
[609/746] Compiling AppleSearchAds GeolocationsSearchRequest.swift
[610/746] Compiling AppleSearchAds AdGroupNegativeKeywordRequest.swift
[611/746] Compiling AppleSearchAds AdGroupNegativeKeywordsCreateRequest.swift
[612/746] Compiling AppleSearchAds AdGroupNegativeKeywordsDeleteRequest.swift
[613/746] Compiling AppleSearchAds AdGroupNegativeKeywordsFindRequest.swift
[614/746] Compiling AppleSearchAds AdGroupNegativeKeywordsListRequest.swift
[615/746] Compiling AppleSearchAds AdGroupNegativeKeywordsUpdateRequest.swift
[616/746] Compiling AppleSearchAds CampaignNegativeKeywordRequest.swift
[617/746] Compiling AppleSearchAds CampaignNegativeKeywordsCreateRequest.swift
[618/746] Compiling AppleSearchAds CampaignNegativeKeywordsDeleteRequest.swift
[619/746] Compiling AppleSearchAds CampaignNegativeKeywordsFindRequest.swift
[620/746] Compiling AppleSearchAds CampaignNegativeKeywordsListRequest.swift
[621/746] Compiling AppleSearchAds CampaignNegativeKeywordsUpdateRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[622/746] Compiling AppleSearchAds KeywordMatchType.swift
[623/746] Compiling AppleSearchAds KeywordStatus.swift
[624/746] Compiling AppleSearchAds KeywordUpdate.swift
[625/746] Compiling AppleSearchAds LOCInvoiceDetails.swift
[626/746] Compiling AppleSearchAds LocaleInfo.swift
[627/746] Compiling AppleSearchAds LocalityCriteria.swift
[628/746] Compiling AppleSearchAds MeDetail.swift
[629/746] Compiling AppleSearchAds MediaAppAsset.swift
[630/746] Compiling AppleSearchAds MediaAppAssetsDetail.swift
[631/746] Compiling AppleSearchAds MediaAppPreviewOrScreenshots.swift
[632/746] Compiling AppleSearchAds MediaAppPreviewOrScreenshotsDetail.swift
[633/746] Compiling AppleSearchAds MediaAppVideoAsset.swift
[634/746] Compiling AppleSearchAds MediaAssetOrientation.swift
[635/746] Compiling AppleSearchAds MediaAssetType.swift
[636/746] Compiling AppleSearchAds Money.swift
[637/746] Compiling AppleSearchAds NegativeKeyword.swift
[638/746] Compiling AppleSearchAds Page.swift
[639/746] Compiling AppleSearchAds PageDetail.swift
[640/746] Compiling AppleSearchAds Pagination.swift
[641/746] Compiling AppleSearchAds PaginationDetail.swift
[642/746] Compiling AppleSearchAds PaymentModel.swift
[643/746] Compiling AppleSearchAds PricingModel.swift
[644/746] Compiling AppleSearchAds ProductPageDetail.swift
[645/746] Compiling AppleSearchAds ProductPageDetailWithAssets.swift
[646/746] Compiling AppleSearchAds ProductPageLocaleDetail.swift
[647/746] Emitting module AppleSearchAds
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: value of type '_' expected to be instance of class or class-constrained type
 44 |         keyIdentifier: String,
 45 |         privateKey: String,
 46 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 47 |         jwtExpirationDuration: TimeInterval = 86400
 48 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:71:32: error: value of type '_' expected to be instance of class or class-constrained type
 69 |         keyIdentifier: String,
 70 |         privateKeyURL: URL,
 71 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 72 |         jwtExpirationDuration: TimeInterval = 86400
 73 |     ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:16: error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 20 |
 21 |     /// `URLSession` to use to perform the requests.
 22 |     public let session: URLSession
    |                `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'URLSession' (aka 'AnyObject')
 23 |     /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
 24 |     public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIProvider.swift:30:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
28 |         let provider = Provider(
29 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
30 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
31 |             plugins: [
32 |                 HostInjector(),
/host/spi-builder-workspace/Sources/Core/Extensions/URLRequestExtensions.swift:6:11: error: cannot find type 'URLRequest' in scope
 4 | #endif
 5 |
 6 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 7 |     mutating func add(headers: [String: String], replace: Bool) {
 8 |         headers.forEach { add(header: $0.key, value: $0.value, replace: replace) }
/host/spi-builder-workspace/Sources/Core/Plugins/AcceptHeadersInjector.swift:19:33: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     func prepare(request: inout URLRequest) async throws {
   |                                 `- error: cannot find type 'URLRequest' in scope
20 |         request.add(headers: headers, replace: true)
21 |     }
/host/spi-builder-workspace/Sources/Core/Plugins/Plugin.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol PluginType: Sendable {
7 |     func prepare(request: inout URLRequest) async throws
  |                                 `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/Core/Plugins/AuthorizationInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 |     }
14 |
15 |     func prepare(request: inout URLRequest) async throws {
   |                                 `- error: cannot find type 'URLRequest' in scope
16 |         let token = try await provider()
17 |         let value = "\(token.tokenType) \(token.token)"
/host/spi-builder-workspace/Sources/Core/Plugins/ContextInjector.swift:15:33: error: cannot find type 'URLRequest' in scope
13 |     }
14 |
15 |     func prepare(request: inout URLRequest) async throws {
   |                                 `- error: cannot find type 'URLRequest' in scope
16 |         guard let acl = try await provider().first else { return }
17 |         request.add(header: "X-Ap-Context", value: "orgId=\(acl.orgId)", replace: true)
/host/spi-builder-workspace/Sources/Core/Plugins/HostInjector.swift:7:33: error: cannot find type 'URLRequest' in scope
 5 |
 6 | struct HostInjector: PluginType {
 7 |     func prepare(request: inout URLRequest) async throws {
   |                                 `- error: cannot find type 'URLRequest' in scope
 8 |         guard let url = request.url,
 9 |               let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:28: error: cannot find type 'URLRequest' in scope
 5 |
 6 | protocol SessionType: Sendable {
 7 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 8 | }
 9 |
/host/spi-builder-workspace/Sources/Core/Provider/Provider.swift:47:62: error: cannot find type 'URLRequest' in scope
45 |     }
46 |
47 |     func prepare<R: RequestType>(request: R) async throws -> URLRequest {
   |                                                              `- error: cannot find type 'URLRequest' in scope
48 |         var urlRequest = try request.urlRequest(baseURL: baseURL)
49 |         for plugin in plugins {
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | protocol SessionType: Sendable {
 7 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | }
 9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Core/Provider/SessionType.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | }
24 | #else
25 | extension URLSession: SessionType {}
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
/host/spi-builder-workspace/Sources/Core/Request/RequestType+URLRequest.swift:12:45: error: cannot find type 'URLRequest' in scope
10 |
11 | extension RequestType {
12 |     func urlRequest(baseURL: URL) throws -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
13 |         let url = baseURL.appendingPathComponent(path)
14 |         guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/Core/Stores/AccessTokenStore.swift:25:40: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
23 |             provider: Provider(
24 |                 baseURL: URL(string: "https://appleid.apple.com")!,
25 |                 session: configuration.session,
   |                                        `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
26 |                 plugins: [
27 |                     HostInjector(),
/host/spi-builder-workspace/Sources/Core/Stores/ContextStore.swift:15:36: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
13 |         self.init(provider: Provider(
14 |             baseURL: URL(string: "https://api.searchads.apple.com")!,
15 |             session: configuration.session,
   |                                    `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'SessionType'
16 |             plugins: [
17 |                 HostInjector(),
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[648/746] Compiling AppleSearchAds AdCreativeRejectionReasonsRequest.swift
[649/746] Compiling AppleSearchAds AppAssetsFindRequest.swift
[650/746] Compiling AppleSearchAds AdCreateRequest.swift
[651/746] Compiling AppleSearchAds AdDeleteRequest.swift
[652/746] Compiling AppleSearchAds AdRequest.swift
[653/746] Compiling AppleSearchAds AdUpdateRequest.swift
[654/746] Compiling AppleSearchAds AdsFindRequest.swift
[655/746] Compiling AppleSearchAds AdsListRequest.swift
[656/746] Compiling AppleSearchAds AppDetailsRequest.swift
[657/746] Compiling AppleSearchAds AppEligibilityRequest.swift
[658/746] Compiling AppleSearchAds AppLocaleDetailsRequest.swift
[659/746] Compiling AppleSearchAds SearchAppsRequest.swift
[660/746] Compiling AppleSearchAds BudgetOrderCreateRequest.swift
[661/746] Compiling AppleSearchAds BudgetOrderListRequest.swift
[662/746] Compiling AppleSearchAds BudgetOrderRequest.swift
[663/746] Compiling AppleSearchAds BudgetOrderUpdateRequest.swift
[664/746] Compiling AppleSearchAds CampaignCreateRequest.swift
[665/746] Compiling AppleSearchAds CampaignDeleteRequest.swift
[666/746] Compiling AppleSearchAds CampaignFindRequest.swift
[667/746] Compiling AppleSearchAds CampaignListRequest.swift
[668/746] Compiling AppleSearchAds CampaignRequest.swift
[669/746] Compiling AppleSearchAds CampaignUpdateRequest.swift
[670/746] Compiling AppleSearchAds AccessTokenRequest.swift
[671/746] Compiling AppleSearchAds MeDetailsRequest.swift
[672/746] Compiling AppleSearchAds CreativeCustomProductPage.swift
[673/746] Compiling AppleSearchAds CreativeLocalization.swift
[674/746] Compiling AppleSearchAds CreativeLocalizationWithAssets.swift
[675/746] Compiling AppleSearchAds CustomReport.swift
[676/746] Compiling AppleSearchAds CustomReportDateRange.swift
[677/746] Compiling AppleSearchAds CustomReportGranularity.swift
[678/746] Compiling AppleSearchAds CustomReportRequest.swift
[679/746] Compiling AppleSearchAds CustomReportSelector.swift
[680/746] Compiling AppleSearchAds DaypartCriteria.swift
[681/746] Compiling AppleSearchAds DaypartDetail.swift
[682/746] Compiling AppleSearchAds DeviceClass.swift
[683/746] Compiling AppleSearchAds DeviceClassCriteria.swift
[684/746] Compiling AppleSearchAds EligibilityRecord.swift
[685/746] Compiling AppleSearchAds Empty.swift
[686/746] Compiling AppleSearchAds ErrorResponse.swift
[687/746] Compiling AppleSearchAds Gender.swift
[688/746] Compiling AppleSearchAds GenderCriteria.swift
[689/746] Compiling AppleSearchAds GeolocationEntity.swift
[690/746] Compiling AppleSearchAds GeolocationRequest.swift
[691/746] Compiling AppleSearchAds GeolocationSearchEntity.swift
[692/746] Compiling AppleSearchAds GrandTotalsRow.swift
[693/746] Compiling AppleSearchAds Keyword.swift
[694/746] Compiling AppleSearchAds KeywordBidRecommendation.swift
[695/746] Compiling AppleSearchAds KeywordDisplayStatus.swift
[696/746] Compiling AppleSearchAds KeywordInsights.swift
[697/746] Compiling AppleSearchAds AdGroupUpdate.swift
[698/746] Compiling AppleSearchAds AdRejectionReasonLevel.swift
[699/746] Compiling AppleSearchAds AdUpdate.swift
[700/746] Compiling AppleSearchAds AdminAreaCriteria.swift
[701/746] Compiling AppleSearchAds AgeCriteria.swift
[702/746] Compiling AppleSearchAds AgeRange.swift
[703/746] Compiling AppleSearchAds AppAsset.swift
[704/746] Compiling AppleSearchAds AppCategoryCriteria.swift
[705/746] Compiling AppleSearchAds AppDetails.swift
[706/746] Compiling AppleSearchAds AppDownloaderCriteria.swift
[707/746] Compiling AppleSearchAds AppInfo.swift
[708/746] Compiling AppleSearchAds AppLocaleDetails.swift
[709/746] Compiling AppleSearchAds AppPreviewDeviceWithAssets.swift
[710/746] Compiling AppleSearchAds BudgetOrder.swift
[711/746] Compiling AppleSearchAds BudgetOrderCreate.swift
[712/746] Compiling AppleSearchAds BudgetOrderInfo.swift
[713/746] Compiling AppleSearchAds BudgetOrderUpdate.swift
[714/746] Compiling AppleSearchAds Campaign.swift
[715/746] Compiling AppleSearchAds CampaignAppDetail.swift
[716/746] Compiling AppleSearchAds CampaignUpdate.swift
[717/746] Compiling AppleSearchAds CampaignUpdateProperties.swift
[718/746] Compiling AppleSearchAds Condition.swift
[719/746] Compiling AppleSearchAds CountryCriteria.swift
[720/746] Compiling AppleSearchAds CountryOrRegion.swift
[721/746] Compiling AppleSearchAds Creative.swift
[722/746] Compiling AppleSearchAds ProductPageReason.swift
[723/746] Compiling AppleSearchAds Reporting.swift
[724/746] Compiling AppleSearchAds ReportingAd.swift
[725/746] Compiling AppleSearchAds ReportingAdGroup.swift
[726/746] Compiling AppleSearchAds ReportingCampaign.swift
[727/746] Compiling AppleSearchAds ReportingData.swift
[728/746] Compiling AppleSearchAds ReportingKeyword.swift
[729/746] Compiling AppleSearchAds ReportingRequest.swift
[730/746] Compiling AppleSearchAds ReportingSearchTerm.swift
[731/746] Compiling AppleSearchAds Row.swift
[732/746] Compiling AppleSearchAds Selector.swift
[733/746] Compiling AppleSearchAds Sorting.swift
[734/746] Compiling AppleSearchAds SovCondition.swift
[735/746] Compiling AppleSearchAds SpendRow.swift
[736/746] Compiling AppleSearchAds SpendRowExtended.swift
[737/746] Compiling AppleSearchAds SupplySource.swift
[738/746] Compiling AppleSearchAds TargetingCriteria.swift
[739/746] Compiling AppleSearchAds TargetingDimensions.swift
[740/746] Compiling AppleSearchAds UserACL.swift
[741/746] Compiling AppleSearchAds APIError.swift
[742/746] Compiling AppleSearchAds JWT.swift
[743/746] Compiling AppleSearchAds APIErrorResponse.swift
[744/746] Compiling AppleSearchAds DataResponse.swift
[745/746] Compiling AppleSearchAds PagedObjectResponse.swift
[746/746] Compiling AppleSearchAds PagedResponse.swift
BUILD FAILURE 6.2 wasm