Build Information
Failed to build YouVersionPlatform, reference main (2deece), with Swift 6.3 for Wasm on 30 Nov 2026 19:53:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -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
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:16:10: error: cannot find type 'URLRequest' in scope
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
18 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
[487/505] Compiling YouVersionPlatformCore Organizations.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:174:10: error: cannot find type 'URLRequest' in scope
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
176 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:172:22: error: cannot find type 'URLRequest' in scope
170 | accessToken: String?,
171 | session: URLSession,
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:64: error: 'response' is inaccessible due to 'private' protection level
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: 'response' is inaccessible due to 'private' protection level
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:78: error: extra argument 'for' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: extra argument 'for' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:72: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:16:10: error: cannot find type 'URLRequest' in scope
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
18 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
[488/505] Compiling YouVersionPlatformCore Search.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:174:10: error: cannot find type 'URLRequest' in scope
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
176 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:172:22: error: cannot find type 'URLRequest' in scope
170 | accessToken: String?,
171 | session: URLSession,
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:64: error: 'response' is inaccessible due to 'private' protection level
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: 'response' is inaccessible due to 'private' protection level
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:78: error: extra argument 'for' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: extra argument 'for' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:72: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:16:10: error: cannot find type 'URLRequest' in scope
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
18 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
[489/505] Compiling YouVersionPlatformCore URLBuilder.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:174:10: error: cannot find type 'URLRequest' in scope
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
176 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:172:22: error: cannot find type 'URLRequest' in scope
170 | accessToken: String?,
171 | session: URLSession,
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:64: error: 'response' is inaccessible due to 'private' protection level
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: 'response' is inaccessible due to 'private' protection level
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:78: error: extra argument 'for' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: extra argument 'for' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:72: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:16:10: error: cannot find type 'URLRequest' in scope
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
18 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
[490/505] Compiling YouVersionPlatformCore URLRequest+YouVersion.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:174:10: error: cannot find type 'URLRequest' in scope
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
175 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
176 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:172:22: error: cannot find type 'URLRequest' in scope
170 | accessToken: String?,
171 | session: URLSession,
172 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
173 | omitAccessToken: Bool = false
174 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:64: error: 'response' is inaccessible due to 'private' protection level
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: 'response' is inaccessible due to 'private' protection level
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:78: error: extra argument 'for' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: extra argument 'for' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:72: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await YouVersionAPI.response(for: request, session: session)
| `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
112 |
113 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:69:25: note: 'response(at:accessToken:session:allowsNoContent:)' declared here
67 | }
68 |
69 | private static func response(
| `- note: 'response(at:accessToken:session:allowsNoContent:)' declared here
70 | at url: URL,
71 | accessToken: String?,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:16:10: error: cannot find type 'URLRequest' in scope
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
18 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
15 | omitAccessToken: Bool = false
16 | ) -> URLRequest {
[491/505] Compiling YouVersionPlatformCore BibleVerse.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[492/505] Compiling YouVersionPlatformCore BibleVersion.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[493/505] Compiling YouVersionPlatformCore BibleVersionRepository.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[494/505] Compiling YouVersionPlatformCore CachedBibleContent.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[495/505] Compiling YouVersionPlatformCore DeprecatedBibleAPI.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[496/505] Compiling YouVersionPlatformCore BibleChapter.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleContentStorage.swift:152:58: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
150 | }
151 |
152 | try data.write(to: url(for: resource), options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
153 | }
154 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[497/505] Compiling YouVersionPlatformCore BibleChapterRepository.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleContentStorage.swift:152:58: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
150 | }
151 |
152 | try data.write(to: url(for: resource), options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
153 | }
154 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[498/505] Compiling YouVersionPlatformCore BibleContentStorage.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleContentStorage.swift:152:58: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
150 | }
151 |
152 | try data.write(to: url(for: resource), options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
153 | }
154 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[499/505] Compiling YouVersionPlatformCore BibleHighlight.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleContentStorage.swift:152:58: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
150 | }
151 |
152 | try data.write(to: url(for: resource), options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
153 | }
154 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[500/505] Compiling YouVersionPlatformCore BibleHighlightsCache.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleContentStorage.swift:152:58: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
150 | }
151 |
152 | try data.write(to: url(for: resource), options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
153 | }
154 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[501/505] Compiling YouVersionPlatformCore APIRequestDiagnostics.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:23:43: error: cannot find type 'URLRequest' in scope
21 | struct APIRequestDiagnostics {
22 | /// Identifies the request without exposing credentials in its URL or headers.
23 | static func requestSummary(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
24 | var components = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false) }
25 | components?.user = nil
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:44: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: cannot find type 'URLRequest' in scope
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:11:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
11 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 | YouVersionPlatformLogger.debug(APIRequestDiagnostics.responseSummary(request, data: data, response: response), category: "API")
13 | return (data, response)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:54:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:56:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | message += " \(field)=\(value)"
58 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:60:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | }
59 | }
60 | if !(200..<300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
62 | let parts = value.split(separator: " ", maxSplits: 1)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:61:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
59 | }
60 | if !(200..<300).contains(response.statusCode) {
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
62 | let parts = value.split(separator: " ", maxSplits: 1)
63 | return parts.count == 2 && ["bearer", "basic"].contains(parts[0].lowercased()) ? [value, String(parts[1])] : [value]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:36: error: no exact matches in call to instance method 'post'
164 | return
165 | }
166 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| |- error: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
167 | }
168 |
[502/505] Compiling YouVersionPlatformCore YouVersionPlatformLogger.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:23:43: error: cannot find type 'URLRequest' in scope
21 | struct APIRequestDiagnostics {
22 | /// Identifies the request without exposing credentials in its URL or headers.
23 | static func requestSummary(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
24 | var components = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false) }
25 | components?.user = nil
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:44: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: cannot find type 'URLRequest' in scope
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:11:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
11 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 | YouVersionPlatformLogger.debug(APIRequestDiagnostics.responseSummary(request, data: data, response: response), category: "API")
13 | return (data, response)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:54:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:56:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | message += " \(field)=\(value)"
58 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:60:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | }
59 | }
60 | if !(200..<300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
62 | let parts = value.split(separator: " ", maxSplits: 1)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:61:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
59 | }
60 | if !(200..<300).contains(response.statusCode) {
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
62 | let parts = value.split(separator: " ", maxSplits: 1)
63 | return parts.count == 2 && ["bearer", "basic"].contains(parts[0].lowercased()) ? [value, String(parts[1])] : [value]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:36: error: no exact matches in call to instance method 'post'
164 | return
165 | }
166 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| |- error: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
167 | }
168 |
[503/505] Compiling YouVersionPlatformCore SDKVersion.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:23:43: error: cannot find type 'URLRequest' in scope
21 | struct APIRequestDiagnostics {
22 | /// Identifies the request without exposing credentials in its URL or headers.
23 | static func requestSummary(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
24 | var components = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false) }
25 | components?.user = nil
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:44: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: cannot find type 'URLRequest' in scope
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:11:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
11 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 | YouVersionPlatformLogger.debug(APIRequestDiagnostics.responseSummary(request, data: data, response: response), category: "API")
13 | return (data, response)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:54:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:56:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | message += " \(field)=\(value)"
58 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:60:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | }
59 | }
60 | if !(200..<300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
62 | let parts = value.split(separator: " ", maxSplits: 1)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:61:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
59 | }
60 | if !(200..<300).contains(response.statusCode) {
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
62 | let parts = value.split(separator: " ", maxSplits: 1)
63 | return parts.count == 2 && ["bearer", "basic"].contains(parts[0].lowercased()) ? [value, String(parts[1])] : [value]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:36: error: no exact matches in call to instance method 'post'
164 | return
165 | }
166 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| |- error: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
167 | }
168 |
[504/505] Compiling YouVersionPlatformCore AbbreviationSplitting.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:23:43: error: cannot find type 'URLRequest' in scope
21 | struct APIRequestDiagnostics {
22 | /// Identifies the request without exposing credentials in its URL or headers.
23 | static func requestSummary(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
24 | var components = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false) }
25 | components?.user = nil
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:44: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: cannot find type 'URLRequest' in scope
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:11:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
11 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 | YouVersionPlatformLogger.debug(APIRequestDiagnostics.responseSummary(request, data: data, response: response), category: "API")
13 | return (data, response)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:54:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:56:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | message += " \(field)=\(value)"
58 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:60:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | }
59 | }
60 | if !(200..<300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
62 | let parts = value.split(separator: " ", maxSplits: 1)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:61:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
59 | }
60 | if !(200..<300).contains(response.statusCode) {
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
62 | let parts = value.split(separator: " ", maxSplits: 1)
63 | return parts.count == 2 && ["bearer", "basic"].contains(parts[0].lowercased()) ? [value, String(parts[1])] : [value]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:36: error: no exact matches in call to instance method 'post'
164 | return
165 | }
166 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| |- error: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
167 | }
168 |
[505/505] Compiling YouVersionPlatformCore YouVersionPlatformConfiguration.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:39: error: cannot find type 'URLRequest' in scope
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:8:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension YouVersionAPI {
7 | /// Performs an SDK request with debug-only diagnostics, preserving responses and thrown errors.
8 | static func response(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:23:43: error: cannot find type 'URLRequest' in scope
21 | struct APIRequestDiagnostics {
22 | /// Identifies the request without exposing credentials in its URL or headers.
23 | static func requestSummary(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
24 | var components = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false) }
25 | components?.user = nil
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:44: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: cannot find type 'URLRequest' in scope
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:49:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | /// Includes redacted error bodies and correlation IDs, but never successful response bodies.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:11:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
9 | YouVersionPlatformLogger.debug("Sending \(APIRequestDiagnostics.requestSummary(request))", category: "API")
10 | do {
11 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 | YouVersionPlatformLogger.debug(APIRequestDiagnostics.responseSummary(request, data: data, response: response), category: "API")
13 | return (data, response)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:51:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | static func responseSummary(_ request: URLRequest, data: Data, response: URLResponse) -> String {
50 | let summary = requestSummary(request)
51 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:54:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return "Received non-HTTP response for \(summary): \(type(of: response))"
53 | }
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:56:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 | var message = "Received HTTP \(response.statusCode) for \(summary) (\(data.count) bytes)"
55 | for field in ["content-type", "x-request-id", "x-correlation-id", "x-cloud-trace-context", "traceparent"] {
56 | if let value = response.value(forHTTPHeaderField: field) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | message += " \(field)=\(value)"
58 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:60:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | }
59 | }
60 | if !(200..<300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
62 | let parts = value.split(separator: " ", maxSplits: 1)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Logging/APIRequestDiagnostics.swift:61:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
59 | }
60 | if !(200..<300).contains(response.statusCode) {
61 | let secrets = (request.allHTTPHeaderFields ?? [:]).filter { isSensitive($0.key) }.values.flatMap { value in
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
62 | let parts = value.split(separator: " ", maxSplits: 1)
63 | return parts.count == 2 && ["bearer", "basic"].contains(parts[0].lowercased()) ? [value, String(parts[1])] : [value]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:36: error: no exact matches in call to instance method 'post'
164 | return
165 | }
166 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| |- error: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
167 | }
168 |
BUILD FAILURE 6.3 wasm