The Swift Package Index logo.Swift Package Index

Build Information

Failed to build YouVersionPlatform, reference main (2deece), with Swift 6.1 for Wasm on 30 Nov 2026 19:54:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

130 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         reference: BibleReference,
134 |         accessToken providedToken: String? = nil,
135 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |     ) async throws -> BibleContentResponse<String> {
137 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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:169:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             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/Bible/BibleVersionAPI.swift:169:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             throw URLError(.badURL)
/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/Bible/BibleVersionAPI.swift:143:56: error: 'response' is inaccessible due to 'private' protection level
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                        `- error: 'response' is inaccessible due to 'private' protection level
144 |
145 |         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/Bible/BibleVersionAPI.swift:143:70: error: extra argument 'for' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                      `- error: extra argument 'for' in call
144 |
145 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:143:64: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
144 |
145 |         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/Bible/BibleVersions.swift:23:120: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:23:134: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:60: error: 'response' is inaccessible due to 'private' protection level
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
37 |
38 |             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/Bible/BibleVersions.swift:36:74: error: extra argument 'for' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
37 |
38 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
37 |
38 |             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/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |             color: String,
154 |             accessToken providedToken: String?,
155 |             session: URLSession
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         ) async throws -> Bool {
157 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:74:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 72 |                 accessToken: accessToken,
 73 |                 session: session,
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
    |                               `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:60: error: 'response' is inaccessible due to 'private' protection level
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                            `- error: 'response' is inaccessible due to 'private' protection level
 77 |
 78 |             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/Bible/Highlights.swift:76:74: error: extra argument 'for' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                          `- error: extra argument 'for' in call
 77 |
 78 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 77 |
 78 |             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/Bible/Highlights.swift:178:71: error: extra argument 'for' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:178:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:178:57: error: 'response' is inaccessible due to 'private' protection level
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:71: error: extra argument 'for' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:221:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:57: error: 'response' is inaccessible due to 'private' protection level
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken 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/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:60: error: 'response' is inaccessible due to 'private' protection level
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/DataExchange/DataExchange.swift:49:74: error: extra argument 'for' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/Images/Images.swift:34:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true 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/Images/Images.swift:34:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:70:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.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/Images/Images.swift:70:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.isEmpty else {
[128/134] Compiling YouVersionPlatformCore Images.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:106: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | extension YouVersionAPI.Bible {
 11 |
 12 |     public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
 14 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         withId versionId: Int,
 18 |         accessToken providedToken: String? = nil,
 19 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     ) async throws -> BibleContentResponse<BibleVersion> {
 21 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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:61:99: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |
 60 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 61 |     public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 63 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:61:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |
 60 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 61 |     public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 62 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 63 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:97: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
 79 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 80 |     public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
 82 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:80:111: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 78 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
 79 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 80 |     public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |         try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
 82 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:87:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         withId versionId: Int,
 86 |         accessToken: String?,
 87 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     ) async throws -> BibleContentResponse<BibleVersion> {
 89 |         guard let url = URLBuilder.versionURL(versionId: versionId) 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/Bible/BibleVersionAPI.swift:101:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |
100 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 |     public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:101:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 99 |
100 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 |     public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:108:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         withId versionId: Int,
107 |         accessToken: String?,
108 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |     ) async throws -> BibleContentResponse<BibleVersionIndex> {
110 |         struct BibleVersionChaptersResponse: Codable {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:128:110: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |
127 |     /// Fetches the content of a single Bible chapter from the server.
128 |     public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |         try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:128:124: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 |
127 |     /// Fetches the content of a single Bible chapter from the server.
128 |     public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 |         try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         reference: BibleReference,
134 |         accessToken providedToken: String? = nil,
135 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |     ) async throws -> BibleContentResponse<String> {
137 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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:169:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             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/Bible/BibleVersionAPI.swift:169:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             throw URLError(.badURL)
/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/Bible/BibleVersionAPI.swift:143:56: error: 'response' is inaccessible due to 'private' protection level
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                        `- error: 'response' is inaccessible due to 'private' protection level
144 |
145 |         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/Bible/BibleVersionAPI.swift:143:70: error: extra argument 'for' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                      `- error: extra argument 'for' in call
144 |
145 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:143:64: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
144 |
145 |         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/Bible/BibleVersions.swift:23:120: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:23:134: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:60: error: 'response' is inaccessible due to 'private' protection level
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
37 |
38 |             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/Bible/BibleVersions.swift:36:74: error: extra argument 'for' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
37 |
38 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
37 |
38 |             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/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |             color: String,
154 |             accessToken providedToken: String?,
155 |             session: URLSession
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         ) async throws -> Bool {
157 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:74:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 72 |                 accessToken: accessToken,
 73 |                 session: session,
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
    |                               `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:60: error: 'response' is inaccessible due to 'private' protection level
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                            `- error: 'response' is inaccessible due to 'private' protection level
 77 |
 78 |             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/Bible/Highlights.swift:76:74: error: extra argument 'for' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                          `- error: extra argument 'for' in call
 77 |
 78 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 77 |
 78 |             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/Bible/Highlights.swift:178:71: error: extra argument 'for' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:178:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:178:57: error: 'response' is inaccessible due to 'private' protection level
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:71: error: extra argument 'for' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:221:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:57: error: 'response' is inaccessible due to 'private' protection level
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken 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/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:60: error: 'response' is inaccessible due to 'private' protection level
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/DataExchange/DataExchange.swift:49:74: error: extra argument 'for' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/Images/Images.swift:34:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true 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/Images/Images.swift:34:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:70:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.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/Images/Images.swift:70:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.isEmpty else {
[129/134] Compiling YouVersionPlatformCore YouVersionImage.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:106: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | extension YouVersionAPI.Bible {
 11 |
 12 |     public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
 14 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         withId versionId: Int,
 18 |         accessToken providedToken: String? = nil,
 19 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     ) async throws -> BibleContentResponse<BibleVersion> {
 21 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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:61:99: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |
 60 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 61 |     public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 63 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:61:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |
 60 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 61 |     public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 62 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 63 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:97: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
 79 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 80 |     public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
 82 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:80:111: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 78 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
 79 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 80 |     public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |         try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
 82 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:87:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         withId versionId: Int,
 86 |         accessToken: String?,
 87 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     ) async throws -> BibleContentResponse<BibleVersion> {
 89 |         guard let url = URLBuilder.versionURL(versionId: versionId) 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/Bible/BibleVersionAPI.swift:101:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |
100 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 |     public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:101:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 99 |
100 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 |     public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:108:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         withId versionId: Int,
107 |         accessToken: String?,
108 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |     ) async throws -> BibleContentResponse<BibleVersionIndex> {
110 |         struct BibleVersionChaptersResponse: Codable {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:128:110: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |
127 |     /// Fetches the content of a single Bible chapter from the server.
128 |     public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |         try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersionAPI.swift:128:124: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 |
127 |     /// Fetches the content of a single Bible chapter from the server.
128 |     public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 |         try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         reference: BibleReference,
134 |         accessToken providedToken: String? = nil,
135 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |     ) async throws -> BibleContentResponse<String> {
137 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/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:169:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             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/Bible/BibleVersionAPI.swift:169:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
167 |
168 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
169 |     public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
171 |             throw URLError(.badURL)
/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/Bible/BibleVersionAPI.swift:143:56: error: 'response' is inaccessible due to 'private' protection level
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                        `- error: 'response' is inaccessible due to 'private' protection level
144 |
145 |         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/Bible/BibleVersionAPI.swift:143:70: error: extra argument 'for' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                      `- error: extra argument 'for' in call
144 |
145 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:143:64: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
141 |
142 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 |         let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
144 |
145 |         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/Bible/BibleVersions.swift:23:120: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:23:134: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an unexpected status.
22 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 |     static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
   |                                                                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 |         let range = languageTag == nil ? [] : [languageTag!]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:71:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/BibleVersions.swift:71:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
69 |         forLanguageTag languageTag: String? = nil,
70 |         accessToken providedToken: String? = nil,
71 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 |     ) async throws -> [BibleVersionMinimalInfo] {
73 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:60: error: 'response' is inaccessible due to 'private' protection level
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
37 |
38 |             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/Bible/BibleVersions.swift:36:74: error: extra argument 'for' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
37 |
38 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
34 |
35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
37 |
38 |             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/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |             color: String,
 27 |             accessToken providedToken: String? = nil,
 28 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |         ) async throws -> Bool {
 30 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             passageId: String,
 59 |             accessToken providedToken: String? = nil,
 60 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |         ) async throws -> [HighlightResponse] {
 62 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             passageId: String,
107 |             accessToken providedToken: String? = nil,
108 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         ) async throws -> [HighlightResponse] {
110 |             try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 |             color: String,
136 |             accessToken providedToken: String? = nil,
137 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 |         ) async throws -> Bool {
139 |             try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |             color: String,
154 |             accessToken providedToken: String?,
155 |             session: URLSession
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         ) async throws -> Bool {
157 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) 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/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 |             passageId: String,
208 |             accessToken providedToken: String? = nil,
209 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 |         ) async throws -> Bool {
211 |             guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:74:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 72 |                 accessToken: accessToken,
 73 |                 session: session,
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
    |                               `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:60: error: 'response' is inaccessible due to 'private' protection level
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                            `- error: 'response' is inaccessible due to 'private' protection level
 77 |
 78 |             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/Bible/Highlights.swift:76:74: error: extra argument 'for' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                          `- error: extra argument 'for' in call
 77 |
 78 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 74 |                 cachePolicy: .reloadIgnoringLocalCacheData
 75 |             )
 76 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
 77 |
 78 |             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/Bible/Highlights.swift:178:71: error: extra argument 'for' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:178:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:178:57: error: 'response' is inaccessible due to 'private' protection level
176 |             request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
179 |             guard let httpResponse = response as? HTTPURLResponse else {
180 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:71: error: extra argument 'for' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                       `- error: extra argument 'for' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:221:65: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                                 `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/Bible/Highlights.swift:221:57: error: 'response' is inaccessible due to 'private' protection level
219 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 |             let (_, response) = try await YouVersionAPI.response(for: request, session: session)
    |                                                         `- error: 'response' is inaccessible due to 'private' protection level
222 |             guard let httpResponse = response as? HTTPURLResponse else {
223 |                 throw URLError(.badServerResponse)
/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/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken 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/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |             permissions: Set<String>,
29 |             accessToken providedToken: String? = nil,
30 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 |         ) async throws -> String {
32 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:60: error: 'response' is inaccessible due to 'private' protection level
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                            `- error: 'response' is inaccessible due to 'private' protection level
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/DataExchange/DataExchange.swift:49:74: error: extra argument 'for' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                          `- error: extra argument 'for' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:68: error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
47 |             request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 |             let (data, response) = try await YouVersionAPI.response(for: request, session: session)
   |                                                                    `- error: missing arguments for parameters 'at', 'accessToken', 'allowsNoContent' in call
50 |             guard let httpResponse = response as? HTTPURLResponse else {
51 |                 throw YouVersionAPIError.invalidResponse
/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/Images/Images.swift:34:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true 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/Images/Images.swift:34:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 |             pageToken: String? = nil,
33 |             accessToken providedToken: String? = nil,
34 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |         ) async throws -> YouVersionImageCollection {
36 |             guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:70:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.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/Images/Images.swift:70:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 |             id: String,
69 |             accessToken providedToken: String? = nil,
70 |             session: URLSession = .shared
   |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
71 |         ) async throws -> YouVersionImage {
72 |             guard !id.isEmpty else {
[130/134] 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:17: 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:9: error: cannot find 'NotificationCenter' in scope
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |         `- error: cannot find 'NotificationCenter' in scope
167 |     }
168 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:87: error: 'nil' requires a contextual type
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |                                                                                       `- error: 'nil' requires a contextual type
167 |     }
168 |
[131/134] 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:17: 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:9: error: cannot find 'NotificationCenter' in scope
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |         `- error: cannot find 'NotificationCenter' in scope
167 |     }
168 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:87: error: 'nil' requires a contextual type
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |                                                                                       `- error: 'nil' requires a contextual type
167 |     }
168 |
[132/134] 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:17: 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:9: error: cannot find 'NotificationCenter' in scope
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |         `- error: cannot find 'NotificationCenter' in scope
167 |     }
168 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:87: error: 'nil' requires a contextual type
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |                                                                                       `- error: 'nil' requires a contextual type
167 |     }
168 |
[133/134] 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:17: 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:9: error: cannot find 'NotificationCenter' in scope
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |         `- error: cannot find 'NotificationCenter' in scope
167 |     }
168 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:87: error: 'nil' requires a contextual type
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |                                                                                       `- error: 'nil' requires a contextual type
167 |     }
168 |
[134/134] 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:17: 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:9: error: cannot find 'NotificationCenter' in scope
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |         `- error: cannot find 'NotificationCenter' in scope
167 |     }
168 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:166:87: error: 'nil' requires a contextual type
164 |             return
165 |         }
166 |         NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
    |                                                                                       `- error: 'nil' requires a contextual type
167 |     }
168 |
BUILD FAILURE 6.1 wasm