Build Information
Failed to build swift-apple-search-ads-api, reference main (58c314), with Swift 6.3 for Wasm on 1 Sep 2026 16:28:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
/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
[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] Compiling AppleSearchAds CreativeCustomProductPage.swift
[648/746] Compiling AppleSearchAds CreativeLocalization.swift
[649/746] Compiling AppleSearchAds CreativeLocalizationWithAssets.swift
[650/746] Compiling AppleSearchAds CustomReport.swift
[651/746] Compiling AppleSearchAds CustomReportDateRange.swift
[652/746] Compiling AppleSearchAds CustomReportGranularity.swift
[653/746] Compiling AppleSearchAds CustomReportRequest.swift
[654/746] Compiling AppleSearchAds CustomReportSelector.swift
[655/746] Compiling AppleSearchAds DaypartCriteria.swift
[656/746] Compiling AppleSearchAds DaypartDetail.swift
[657/746] Compiling AppleSearchAds DeviceClass.swift
[658/746] Compiling AppleSearchAds DeviceClassCriteria.swift
[659/746] Compiling AppleSearchAds EligibilityRecord.swift
[660/746] Compiling AppleSearchAds Empty.swift
[661/746] Compiling AppleSearchAds ErrorResponse.swift
[662/746] Compiling AppleSearchAds Gender.swift
[663/746] Compiling AppleSearchAds GenderCriteria.swift
[664/746] Compiling AppleSearchAds GeolocationEntity.swift
[665/746] Compiling AppleSearchAds GeolocationRequest.swift
[666/746] Compiling AppleSearchAds GeolocationSearchEntity.swift
[667/746] Compiling AppleSearchAds GrandTotalsRow.swift
[668/746] Compiling AppleSearchAds Keyword.swift
[669/746] Compiling AppleSearchAds KeywordBidRecommendation.swift
[670/746] Compiling AppleSearchAds KeywordDisplayStatus.swift
[671/746] Compiling AppleSearchAds KeywordInsights.swift
[672/746] Compiling AppleSearchAds APIConfiguration.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[673/746] Compiling AppleSearchAds APIProvider+AdGroupKeywords.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[674/746] Compiling AppleSearchAds APIProvider+AdGroups.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[675/746] Compiling AppleSearchAds APIProvider+AdRejection.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[676/746] Compiling AppleSearchAds APIProvider+Ads.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[677/746] Compiling AppleSearchAds APIProvider+Apps.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[678/746] Compiling AppleSearchAds APIProvider+BudgetOrders.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[679/746] Compiling AppleSearchAds APIProvider+CampaignKeywords.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[680/746] Compiling AppleSearchAds APIProvider+Campaigns.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[681/746] Compiling AppleSearchAds APIProvider+Context.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[682/746] Compiling AppleSearchAds APIProvider+Creatives.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[683/746] Compiling AppleSearchAds APIProvider+CustomProductPages.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[684/746] Compiling AppleSearchAds APIProvider+Geolocations.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[685/746] Compiling AppleSearchAds APIProvider+Paged.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[686/746] Compiling AppleSearchAds APIProvider+Reports.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[687/746] Compiling AppleSearchAds APIProvider+TargetingKeywords.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[688/746] Compiling AppleSearchAds APIProvider.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift: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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[689/746] Compiling AppleSearchAds CoderExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[690/746] Compiling AppleSearchAds ErrorExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[691/746] Compiling AppleSearchAds ResponseExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[692/746] Compiling AppleSearchAds URLRequestExtensions.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[693/746] Compiling AppleSearchAds AccessToken.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[694/746] Compiling AppleSearchAds Ad.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[695/746] Compiling AppleSearchAds AdCreate.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[696/746] Compiling AppleSearchAds AdGroup.swift
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:22:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | keyIdentifier: String,
45 | privateKey: String,
46 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | jwtExpirationDuration: TimeInterval = 86400
48 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:46:32: error: 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 'AnyObject'
20 |
21 | /// `URLSession` to use to perform the requests.
22 | public let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'APIConfiguration' has non-Sendable type 'AnyObject'
23 | /// You receive your client identifier when you upload a public key to App Store Search Ads UI.
24 | public let clientIdentifier: String
/host/spi-builder-workspace/Sources/API/APIConfiguration.swift:94:48: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
92 | return try P256.Signing.PrivateKey(derRepresentation: base64Key)
93 | case .pemURL(let privateKeyURL):
94 | let pemEncodedPrivateKey = try String(contentsOf: privateKeyURL)
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
95 | return try P256.Signing.PrivateKey(pemRepresentation: pemEncodedPrivateKey)
96 | }
/host/spi-builder-workspace/Sources/API/APIProvider.swift: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>
[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.3 wasm