The Swift Package Index logo.Swift Package Index

Build Information

Failed to build YouVersionPlatform, reference main (db0eac), with Swift 6.1 for Wasm on 5 May 2026 22:45:09 UTC.

Build Command

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

Build Log

    |                                                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         struct BibleVersionChaptersResponse: Codable {
 71 |             let data: [BibleChapter]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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:69:109: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 67 |     }
 68 |
 69 |     private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
    |                                                                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |         struct BibleVersionChaptersResponse: Codable {
 71 |             let data: [BibleChapter]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:84:103: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |
 83 |     /// Fetches the content of a single Bible chapter from the server.
 84 |     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.
 85 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 86 |         guard let url = URLBuilder.passageURL(reference: reference, format: "html") 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:84:117: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |
 83 |     /// Fetches the content of a single Bible chapter from the server.
 84 |     static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 85 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 86 |         guard let url = URLBuilder.passageURL(reference: reference, format: "html") else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:118:117: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |
117 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
118 |     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.
119 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
120 |             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:118:131: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
116 |
117 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
118 |     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'
119 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
120 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:91:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 89 |
 90 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 91 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 92 |
 93 |         guard let httpResponse = response as? HTTPURLResponse else {
/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 error response.
 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 error response.
 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:76:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         forLanguageTag languageTag: String? = nil,
 75 |         accessToken providedToken: String? = nil,
 76 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     ) async throws -> [BibleVersionMinimalInfo] {
 78 |         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:76:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |         forLanguageTag languageTag: String? = nil,
 75 |         accessToken providedToken: String? = nil,
 76 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |     ) async throws -> [BibleVersionMinimalInfo] {
 78 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |
 35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 36 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |             guard let httpResponse = response as? HTTPURLResponse else {
/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 |             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/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         ) async throws -> [HighlightResponse] {
 78 |             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/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:124:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |             passageId: String,
123 |             accessToken providedToken: String? = nil,
124 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |         ) async throws -> [HighlightResponse] {
126 |             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:124:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
122 |             passageId: String,
123 |             accessToken providedToken: String? = nil,
124 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 |         ) async throws -> [HighlightResponse] {
126 |             try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |         ) async throws -> Bool {
155 |             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/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> Bool {
201 |             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/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:48:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 46 |             request.httpBody = try JSONEncoder().encode(requestBody)
 47 |
 48 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 49 |             guard let httpResponse = response as? HTTPURLResponse else {
 50 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:90:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 88 |                 accessToken: accessToken,
 89 |                 session: session,
 90 |                 cachePolicy: .reloadIgnoringLocalCacheData
    |                               `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 91 |             )
 92 |             let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:92:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 90 |                 cachePolicy: .reloadIgnoringLocalCacheData
 91 |             )
 92 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 93 |
 94 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:173:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 |             request.httpBody = try JSONEncoder().encode(requestBody)
172 |
173 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 |             guard let httpResponse = response as? HTTPURLResponse else {
175 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:211:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
209 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
210 |
211 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
212 |             guard let httpResponse = response as? HTTPURLResponse else {
213 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:65:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         ///   - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
 64 |         /// - Returns: An array of LanguageOverview objects.
 65 |         public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
    |                                                                                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 67 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:65:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 63 |         ///   - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
 64 |         /// - Returns: An array of LanguageOverview objects.
 65 |         public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
    |                                                                                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |             let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:83:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 81 |
 82 |                 let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 83 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 84 |
 85 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     enum Organizations {
48 |
49 |         public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
   |                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |             guard let url = URLBuilder.organizationsURL(id: id) else {
51 |                 throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     enum Organizations {
48 |
49 |         public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
   |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 |             guard let url = URLBuilder.organizationsURL(id: id) else {
51 |                 throw URLError(.badURL)
[111/127] Compiling YouVersionPlatformCore Organizations.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:99: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 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:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 14 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:37:92: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 37 |     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.
 38 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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:37:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |
 36 |     @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
 37 |     static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         try await version(withId: versionId, accessToken: providedToken, session: session)
 39 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:56:90: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an error response.
 55 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 56 |     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.
 57 |         guard let url = URLBuilder.versionURL(versionId: versionId) else {
 58 |             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:56:104: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     ///   - `YouVersionAPIError.cannotDownload` if the server returns an error response.
 55 |     ///   - `YouVersionAPIError.invalidResponse` if the server response is not valid.
 56 |     static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         guard let url = URLBuilder.versionURL(versionId: versionId) else {
 58 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:65:77: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
 65 |     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.
 66 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
 67 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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:65:91: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 63 |
 64 |     @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
 65 |     static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
    |                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |         try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
 67 |     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:69:95: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
    |                                                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         struct BibleVersionChaptersResponse: Codable {
 71 |             let data: [BibleChapter]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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:69:109: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 67 |     }
 68 |
 69 |     private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
    |                                                                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |         struct BibleVersionChaptersResponse: Codable {
 71 |             let data: [BibleChapter]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:84:103: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |
 83 |     /// Fetches the content of a single Bible chapter from the server.
 84 |     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.
 85 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 86 |         guard let url = URLBuilder.passageURL(reference: reference, format: "html") 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:84:117: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |
 83 |     /// Fetches the content of a single Bible chapter from the server.
 84 |     static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
    |                                                                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 85 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 86 |         guard let url = URLBuilder.passageURL(reference: reference, format: "html") else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:118:117: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |
117 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
118 |     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.
119 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
120 |             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:118:131: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
116 |
117 |     /// Fetches the html content of the "intro" (introductory material) for a book from the server.
118 |     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'
119 |         guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
120 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:91:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 89 |
 90 |         let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 91 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 92 |
 93 |         guard let httpResponse = response as? HTTPURLResponse else {
/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 error response.
 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 error response.
 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:76:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         forLanguageTag languageTag: String? = nil,
 75 |         accessToken providedToken: String? = nil,
 76 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     ) async throws -> [BibleVersionMinimalInfo] {
 78 |         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:76:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |         forLanguageTag languageTag: String? = nil,
 75 |         accessToken providedToken: String? = nil,
 76 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |     ) async throws -> [BibleVersionMinimalInfo] {
 78 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |
 35 |             let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 36 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |             guard let httpResponse = response as? HTTPURLResponse else {
/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 |             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/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         ) async throws -> [HighlightResponse] {
 78 |             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/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:124:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |             passageId: String,
123 |             accessToken providedToken: String? = nil,
124 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |         ) async throws -> [HighlightResponse] {
126 |             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:124:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
122 |             passageId: String,
123 |             accessToken providedToken: String? = nil,
124 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 |         ) async throws -> [HighlightResponse] {
126 |             try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |         ) async throws -> Bool {
155 |             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/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> Bool {
201 |             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/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:48:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 46 |             request.httpBody = try JSONEncoder().encode(requestBody)
 47 |
 48 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 49 |             guard let httpResponse = response as? HTTPURLResponse else {
 50 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:90:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 88 |                 accessToken: accessToken,
 89 |                 session: session,
 90 |                 cachePolicy: .reloadIgnoringLocalCacheData
    |                               `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 91 |             )
 92 |             let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:92:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 90 |                 cachePolicy: .reloadIgnoringLocalCacheData
 91 |             )
 92 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 93 |
 94 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:173:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 |             request.httpBody = try JSONEncoder().encode(requestBody)
172 |
173 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 |             guard let httpResponse = response as? HTTPURLResponse else {
175 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:211:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
209 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
210 |
211 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
212 |             guard let httpResponse = response as? HTTPURLResponse else {
213 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:65:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         ///   - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
 64 |         /// - Returns: An array of LanguageOverview objects.
 65 |         public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
    |                                                                                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 67 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:65:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 63 |         ///   - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
 64 |         /// - Returns: An array of LanguageOverview objects.
 65 |         public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
    |                                                                                                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |             let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:83:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 81 |
 82 |                 let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
 83 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 84 |
 85 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     enum Organizations {
48 |
49 |         public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
   |                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |             guard let url = URLBuilder.organizationsURL(id: id) else {
51 |                 throw URLError(.badURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     enum Organizations {
48 |
49 |         public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
   |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 |             guard let url = URLBuilder.organizationsURL(id: id) else {
51 |                 throw URLError(.badURL)
[112/127] Compiling YouVersionPlatformCore DeprecatedBibleAPI.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 14 |
[113/127] Compiling YouVersionPlatformCore YouVersionPlatformLogger.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 14 |
[114/127] Compiling YouVersionPlatformCore AbbreviationSplitting.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 14 |
[115/127] Compiling YouVersionPlatformCore YouVersionPlatformConfiguration.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 | public extension YouVersionAPI.Bible {
 11 |
 12 |     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 |         let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
 14 |
[116/127] Compiling YouVersionPlatformCore Users.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:15:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |             redirectUri: String,
 29 |             nonce: String,
 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 -> SignInWithYouVersionResult {
 32 |             try await signInResult(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |             redirectUri: String,
 29 |             nonce: String,
 30 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         ) async throws -> SignInWithYouVersionResult {
 32 |             try await signInResult(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:93: error: cannot find type 'URLRequest' in scope
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:55:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         // this checks that the state parameter matches, and then fetches /auth/callback with the same parameters
 55 |         static func obtainLocation(from callbackURL: URL, state: String, session: URLSession) async throws -> String {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |             guard let components = URLComponents(url: callbackURL, resolvingAgainstBaseURL: false),
 57 |                   let queryItems = components.queryItems,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:102:105: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         }
101 |
102 |         static func obtainTokens(from code: String, codeVerifier: String, redirectUri: String, session: URLSession) async throws -> TokenResponse {
    |                                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |             var request = try SignInWithYouVersionPKCEAuthorizationRequestBuilder.tokenURLRequest(
104 |                 code: code,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL 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/Users/Users.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:244:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:244:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:43:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 44 |                 return
 45 |             }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:53: error: cannot find type 'URLSessionDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                     `- error: cannot find type 'URLSessionDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:73: error: cannot find type 'URLSessionTaskDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:74: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:53: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:65:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:115: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
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/APIs/Users/Users.swift:74:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |             }
 73 |
 74 |             let redirectConfiguration = session.configuration
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:129: error: 'nil' requires a contextual type
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                                                                                                                 `- error: 'nil' requires a contextual type
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:76:27: error: cannot find 'URLRequest' in scope
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
    |                           `- error: cannot find 'URLRequest' in scope
 77 |             request.httpMethod = "GET"
 78 |             applySessionHeaders(from: session, to: &request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/SignInWithYouVersionPKCEAuthorizationRequest.swift:96:17: error: cannot find type 'URLRequest' in scope
 94 |         codeVerifier: String,
 95 |         redirectUri: String
 96 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 97 |         guard let url = URLBuilder.authTokenURL else {
 98 |             throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:110:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
108 |             applySessionHeaders(from: session, to: &request)
109 |
110 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 |             guard let httpResponse = response as? HTTPURLResponse else {
112 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:214:76: error: 'nil' requires a contextual type
212 |             ])
213 |
214 |             var request = YouVersionAPI.urlRequest(with: url, accessToken: nil, session: session)
    |                                                                            `- error: 'nil' requires a contextual type
215 |             request.httpMethod = "POST"
216 |             request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:220:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
218 |             applySessionHeaders(from: session, to: &request)
219 |
220 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
221 |             guard let httpResponse = response as? HTTPURLResponse else {
222 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:67:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 68 |                         return nil  // have it not follow the redirect
 69 |                     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:109: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 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/VOTD/VOTD.swift:20:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 throw URLError(.badURL)
[117/127] Compiling YouVersionPlatformCore YouVersionUserInfo.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:15:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |             redirectUri: String,
 29 |             nonce: String,
 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 -> SignInWithYouVersionResult {
 32 |             try await signInResult(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |             redirectUri: String,
 29 |             nonce: String,
 30 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         ) async throws -> SignInWithYouVersionResult {
 32 |             try await signInResult(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:93: error: cannot find type 'URLRequest' in scope
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:55:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         // this checks that the state parameter matches, and then fetches /auth/callback with the same parameters
 55 |         static func obtainLocation(from callbackURL: URL, state: String, session: URLSession) async throws -> String {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |             guard let components = URLComponents(url: callbackURL, resolvingAgainstBaseURL: false),
 57 |                   let queryItems = components.queryItems,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:102:105: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         }
101 |
102 |         static func obtainTokens(from code: String, codeVerifier: String, redirectUri: String, session: URLSession) async throws -> TokenResponse {
    |                                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |             var request = try SignInWithYouVersionPKCEAuthorizationRequestBuilder.tokenURLRequest(
104 |                 code: code,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL 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/Users/Users.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:244:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:244:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:43:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 44 |                 return
 45 |             }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:53: error: cannot find type 'URLSessionDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                     `- error: cannot find type 'URLSessionDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:73: error: cannot find type 'URLSessionTaskDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:74: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:53: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:65:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:115: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
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/APIs/Users/Users.swift:74:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |             }
 73 |
 74 |             let redirectConfiguration = session.configuration
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:129: error: 'nil' requires a contextual type
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                                                                                                                 `- error: 'nil' requires a contextual type
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:76:27: error: cannot find 'URLRequest' in scope
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
    |                           `- error: cannot find 'URLRequest' in scope
 77 |             request.httpMethod = "GET"
 78 |             applySessionHeaders(from: session, to: &request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/SignInWithYouVersionPKCEAuthorizationRequest.swift:96:17: error: cannot find type 'URLRequest' in scope
 94 |         codeVerifier: String,
 95 |         redirectUri: String
 96 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 97 |         guard let url = URLBuilder.authTokenURL else {
 98 |             throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:110:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
108 |             applySessionHeaders(from: session, to: &request)
109 |
110 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 |             guard let httpResponse = response as? HTTPURLResponse else {
112 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:214:76: error: 'nil' requires a contextual type
212 |             ])
213 |
214 |             var request = YouVersionAPI.urlRequest(with: url, accessToken: nil, session: session)
    |                                                                            `- error: 'nil' requires a contextual type
215 |             request.httpMethod = "POST"
216 |             request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:220:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
218 |             applySessionHeaders(from: session, to: &request)
219 |
220 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
221 |             guard let httpResponse = response as? HTTPURLResponse else {
222 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:67:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 68 |                         return nil  // have it not follow the redirect
 69 |                     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:109: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 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/VOTD/VOTD.swift:20:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 throw URLError(.badURL)
[118/127] Compiling YouVersionPlatformCore VOTD.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:15:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |             redirectUri: String,
 29 |             nonce: String,
 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 -> SignInWithYouVersionResult {
 32 |             try await signInResult(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |             redirectUri: String,
 29 |             nonce: String,
 30 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         ) async throws -> SignInWithYouVersionResult {
 32 |             try await signInResult(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:93: error: cannot find type 'URLRequest' in scope
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:55:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         // this checks that the state parameter matches, and then fetches /auth/callback with the same parameters
 55 |         static func obtainLocation(from callbackURL: URL, state: String, session: URLSession) async throws -> String {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |             guard let components = URLComponents(url: callbackURL, resolvingAgainstBaseURL: false),
 57 |                   let queryItems = components.queryItems,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:102:105: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         }
101 |
102 |         static func obtainTokens(from code: String, codeVerifier: String, redirectUri: String, session: URLSession) async throws -> TokenResponse {
    |                                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |             var request = try SignInWithYouVersionPKCEAuthorizationRequestBuilder.tokenURLRequest(
104 |                 code: code,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL 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/Users/Users.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:244:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:244:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:43:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 44 |                 return
 45 |             }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:53: error: cannot find type 'URLSessionDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                     `- error: cannot find type 'URLSessionDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:73: error: cannot find type 'URLSessionTaskDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:74: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:53: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:65:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:115: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
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/APIs/Users/Users.swift:74:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |             }
 73 |
 74 |             let redirectConfiguration = session.configuration
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:129: error: 'nil' requires a contextual type
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                                                                                                                 `- error: 'nil' requires a contextual type
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:76:27: error: cannot find 'URLRequest' in scope
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
    |                           `- error: cannot find 'URLRequest' in scope
 77 |             request.httpMethod = "GET"
 78 |             applySessionHeaders(from: session, to: &request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/SignInWithYouVersionPKCEAuthorizationRequest.swift:96:17: error: cannot find type 'URLRequest' in scope
 94 |         codeVerifier: String,
 95 |         redirectUri: String
 96 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 97 |         guard let url = URLBuilder.authTokenURL else {
 98 |             throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:110:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
108 |             applySessionHeaders(from: session, to: &request)
109 |
110 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 |             guard let httpResponse = response as? HTTPURLResponse else {
112 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:214:76: error: 'nil' requires a contextual type
212 |             ])
213 |
214 |             var request = YouVersionAPI.urlRequest(with: url, accessToken: nil, session: session)
    |                                                                            `- error: 'nil' requires a contextual type
215 |             request.httpMethod = "POST"
216 |             request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:220:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
218 |             applySessionHeaders(from: session, to: &request)
219 |
220 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
221 |             guard let httpResponse = response as? HTTPURLResponse else {
222 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:67:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 68 |                         return nil  // have it not follow the redirect
 69 |                     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:109: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 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/VOTD/VOTD.swift:20:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 throw URLError(.badURL)
[119/127] Compiling YouVersionPlatformCore YouVersionVerseOfTheDay.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:15:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |             redirectUri: String,
 14 |             nonce: String,
 15 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         ) async throws -> SignInWithYouVersionResult {
 17 |             let location = try await obtainLocation(from: callbackURL, state: state, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |             redirectUri: String,
 29 |             nonce: String,
 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 -> SignInWithYouVersionResult {
 32 |             try await signInResult(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |             redirectUri: String,
 29 |             nonce: String,
 30 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         ) async throws -> SignInWithYouVersionResult {
 32 |             try await signInResult(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:93: error: cannot find type 'URLRequest' in scope
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         }
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
    |                                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
 44 |                 return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:55:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         // this checks that the state parameter matches, and then fetches /auth/callback with the same parameters
 55 |         static func obtainLocation(from callbackURL: URL, state: String, session: URLSession) async throws -> String {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |             guard let components = URLComponents(url: callbackURL, resolvingAgainstBaseURL: false),
 57 |                   let queryItems = components.queryItems,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:102:105: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         }
101 |
102 |         static func obtainTokens(from code: String, codeVerifier: String, redirectUri: String, session: URLSession) async throws -> TokenResponse {
    |                                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |             var request = try SignInWithYouVersionPKCEAuthorizationRequestBuilder.tokenURLRequest(
104 |                 code: code,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:199:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL 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/Users/Users.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             withToken refreshToken: String,
198 |             idToken: String?,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> SignInWithYouVersionResult {
201 |             guard let url = URLBuilder.authTokenURL else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:244:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:244:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 |             with refreshToken: String,
243 |             idToken: String?,
244 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
245 |         ) async throws -> SignInWithYouVersionResult {
246 |             try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:43:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 41 |
 42 |         private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
 43 |             guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 44 |                 return
 45 |             }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:53: error: cannot find type 'URLSessionDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                     `- error: cannot find type 'URLSessionDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:73: error: cannot find type 'URLSessionTaskDelegate' in scope
 62 |             }
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:74: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:53: error: cannot find type 'URLRequest' in scope
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 67 |                     if response.url?.path() == "/auth/callback" {
 68 |                         return nil  // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/Users/Users.swift:65:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:115: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |             final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
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/APIs/Users/Users.swift:74:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |             }
 73 |
 74 |             let redirectConfiguration = session.configuration
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:129: error: 'nil' requires a contextual type
 73 |
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
    |                                                                                                                                 `- error: 'nil' requires a contextual type
 76 |             var request = URLRequest(url: newURL)
 77 |             request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:76:27: error: cannot find 'URLRequest' in scope
 74 |             let redirectConfiguration = session.configuration
 75 |             let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
 76 |             var request = URLRequest(url: newURL)
    |                           `- error: cannot find 'URLRequest' in scope
 77 |             request.httpMethod = "GET"
 78 |             applySessionHeaders(from: session, to: &request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/SignInWithYouVersionPKCEAuthorizationRequest.swift:96:17: error: cannot find type 'URLRequest' in scope
 94 |         codeVerifier: String,
 95 |         redirectUri: String
 96 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 97 |         guard let url = URLBuilder.authTokenURL else {
 98 |             throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:110:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
108 |             applySessionHeaders(from: session, to: &request)
109 |
110 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 |             guard let httpResponse = response as? HTTPURLResponse else {
112 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:214:76: error: 'nil' requires a contextual type
212 |             ])
213 |
214 |             var request = YouVersionAPI.urlRequest(with: url, accessToken: nil, session: session)
    |                                                                            `- error: 'nil' requires a contextual type
215 |             request.httpMethod = "POST"
216 |             request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:220:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
218 |             applySessionHeaders(from: session, to: &request)
219 |
220 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
221 |             guard let httpResponse = response as? HTTPURLResponse else {
222 |                 throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:67:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 65 |                 func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 66 |                                 newRequest request: URLRequest) async -> URLRequest? {
 67 |                     if response.url?.path() == "/auth/callback" {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 68 |                         return nil  // have it not follow the redirect
 69 |                     }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:109: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 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/VOTD/VOTD.swift:20:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         ///   - `URLError.badURL` if the URL could not be constructed.
19 |         ///   - `URLError.badServerResponse` if the server response could not be decoded.
20 |         public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
   |                                                                                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |             guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear) else {
22 |                 throw URLError(.badURL)
[120/127] Compiling YouVersionPlatformCore BibleHighlightsRepository.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
[121/127] Compiling YouVersionPlatformCore BibleHighlightsViewModel.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
[122/127] Compiling YouVersionPlatformCore BibleReference.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
[123/127] Compiling YouVersionPlatformCore BibleTextNode.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |             passageId: String,
 75 |             accessToken providedToken: String? = nil,
 76 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         ) async throws -> [HighlightResponse] {
 78 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/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 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:153:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
151 |             color: String,
152 |             accessToken providedToken: String? = nil,
153 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         ) async throws -> Bool {
155 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:199:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
197 |             passageId: String,
198 |             accessToken providedToken: String? = nil,
199 |             session: URLSession = .shared
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
200 |         ) async throws -> Bool {
201 |             guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
[124/127] Compiling YouVersionPlatformCore YouVersionAPI.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:14:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:14:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:39:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
    |                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:63:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         with url: URL,
 62 |         accessToken: String?,
 63 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 42 |
 43 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:66:23: error: cannot find 'URLRequest' in scope
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
    |                       `- error: cannot find 'URLRequest' in scope
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:68:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 69 |             for (key, value) in additionalHeaders {
 70 |                 guard let headerField = key as? String else { continue }
[125/127] Compiling YouVersionPlatformCore BibleBook.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:14:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:14:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:39:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
    |                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:63:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         with url: URL,
 62 |         accessToken: String?,
 63 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 42 |
 43 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:66:23: error: cannot find 'URLRequest' in scope
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
    |                       `- error: cannot find 'URLRequest' in scope
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:68:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 69 |             for (key, value) in additionalHeaders {
 70 |                 guard let headerField = key as? String else { continue }
[126/127] Compiling YouVersionPlatformCore BibleBookIntro.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:14:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:14:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:39:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
    |                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:63:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         with url: URL,
 62 |         accessToken: String?,
 63 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 42 |
 43 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:66:23: error: cannot find 'URLRequest' in scope
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
    |                       `- error: cannot find 'URLRequest' in scope
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:68:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 69 |             for (key, value) in additionalHeaders {
 70 |                 guard let headerField = key as? String else { continue }
[127/127] Compiling YouVersionPlatformCore BibleChapter.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:14:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:14:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |
 13 |     /// This can cause a token refresh if an access token is present but is old.
 14 |     public static func hasValidToken(session: URLSession = .shared) async -> Bool {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |         guard let data = YouVersionPlatformConfiguration.authData,
 16 |               let expiry = data.expiryDate
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:39:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
    |                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:65:10: error: cannot find type 'URLRequest' in scope
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:22: error: cannot find type 'URLRequest' in scope
 62 |         accessToken: String?,
 63 |         session: URLSession,
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                      `- error: cannot find type 'URLRequest' in scope
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:63:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         with url: URL,
 62 |         accessToken: String?,
 63 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. 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/YouVersionAPI.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 39 |     static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
 40 |         let request = urlRequest(with: url, accessToken: accessToken, session: session)
 41 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 42 |
 43 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:66:23: error: cannot find 'URLRequest' in scope
 64 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
 65 |     ) -> URLRequest {
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
    |                       `- error: cannot find 'URLRequest' in scope
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:68:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 66 |         var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy)
 67 |
 68 |         if let additionalHeaders = session.configuration.httpAdditionalHeaders {
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 69 |             for (key, value) in additionalHeaders {
 70 |                 guard let headerField = key as? String else { continue }
BUILD FAILURE 6.1 wasm