Build Information
Failed to build YouVersionPlatform, reference 4.10.0 (2ff470), with Swift 6.1 for Wasm on 6 May 2026 08:48:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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>&1Build Log
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)
/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
[107/128] Compiling YouVersionPlatformCore BibleVersionAPI.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)
[108/128] Compiling YouVersionPlatformCore BibleVersions.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)
[109/128] Compiling YouVersionPlatformCore Highlights.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)
[110/128] Compiling YouVersionPlatformCore Languages.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)
[111/128] 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/128] Compiling YouVersionPlatformCore BibleContentStorage.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 {
[113/128] Compiling YouVersionPlatformCore BibleHighlight.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 {
[114/128] Compiling YouVersionPlatformCore BibleHighlightsCache.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 {
[115/128] 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 {
[116/128] Compiling YouVersionPlatformCore YouVersionPlatformLogger.swift
[117/128] Compiling YouVersionPlatformCore SDKVersion.swift
[118/128] Compiling YouVersionPlatformCore AbbreviationSplitting.swift
[119/128] Compiling YouVersionPlatformCore YouVersionPlatformConfiguration.swift
[120/128] Compiling YouVersionPlatformCore BibleHighlightsViewModel.swift
[121/128] Compiling YouVersionPlatformCore BibleReference.swift
[122/128] Compiling YouVersionPlatformCore BibleTextNode.swift
[123/128] Compiling YouVersionPlatformCore BibleTextNodeParser.swift
[124/128] Compiling YouVersionPlatformCore URLBuilder.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/SignInWithYouVersionPKCEAuthorizationRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
99 | }
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = "POST"
102 | let parameters: [String: String] = [
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:15:10: error: cannot find type 'URLRequest' in scope
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
15 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
17 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
15 | ) -> URLRequest {
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
[125/128] Compiling YouVersionPlatformCore URLRequest+YouVersion.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/SignInWithYouVersionPKCEAuthorizationRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
99 | }
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = "POST"
102 | let parameters: [String: String] = [
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:15:10: error: cannot find type 'URLRequest' in scope
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
15 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
17 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
15 | ) -> URLRequest {
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
[126/128] Compiling YouVersionPlatformCore SignInWithYouVersionPKCEAuthorizationRequest.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/SignInWithYouVersionPKCEAuthorizationRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
99 | }
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = "POST"
102 | let parameters: [String: String] = [
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:15:10: error: cannot find type 'URLRequest' in scope
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
15 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
17 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
15 | ) -> URLRequest {
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
[127/128] Compiling YouVersionPlatformCore SignInWithYouVersionPermission.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/SignInWithYouVersionPKCEAuthorizationRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
99 | }
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = "POST"
102 | let parameters: [String: String] = [
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:15:10: error: cannot find type 'URLRequest' in scope
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
15 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
17 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
15 | ) -> URLRequest {
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
[128/128] Compiling YouVersionPlatformCore SignInWithYouVersionResult.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/SignInWithYouVersionPKCEAuthorizationRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
99 | }
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = "POST"
102 | let parameters: [String: String] = [
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:15:10: error: cannot find type 'URLRequest' in scope
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
15 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
17 | if let appKey = YouVersionPlatformConfiguration.appKey {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:14:22: error: cannot find type 'URLRequest' in scope
12 | _ url: URL,
13 | accessToken providedToken: String? = nil,
14 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
15 | ) -> URLRequest {
16 | var request = URLRequest(url: url, cachePolicy: cachePolicy)
BUILD FAILURE 6.1 wasm