Build Information
Failed to build YouVersionPlatform, reference main (db0eac), with Swift 6.3 for Wasm on 5 May 2026 22:36:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
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:76:36: error: value of type '_' expected to be instance of class or class-constrained type
74 | passageId: String,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
122 | passageId: String,
123 | accessToken providedToken: String? = nil,
124 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
125 | ) async throws -> [HighlightResponse] {
126 | try await highlights(
/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: value of type '_' expected to be instance of class or class-constrained type
151 | color: String,
152 | accessToken providedToken: String? = nil,
153 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
154 | ) async throws -> Bool {
155 | 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: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:199:36: error: value of type '_' expected to be instance of class or class-constrained type
197 | passageId: String,
198 | accessToken providedToken: String? = nil,
199 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
66 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
67 |
/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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
[495/498] 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: value of type '_' expected to be instance of class or class-constrained type
10 | public extension YouVersionAPI.Bible {
11 |
12 | static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
14 |
/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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
38 | try await version(withId: versionId, accessToken: providedToken, session: session)
39 | }
/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:56:104: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
63 |
64 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
65 | static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
66 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
67 | }
/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:69:109: error: value of type '_' expected to be instance of class or class-constrained type
67 | }
68 |
69 | private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: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/Bible/BibleVersionAPI.swift:118:131: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:23:134: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:76:32: error: value of type '_' expected to be instance of class or class-constrained type
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:28:36: error: value of type '_' expected to be instance of class or class-constrained type
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:76:36: error: value of type '_' expected to be instance of class or class-constrained type
74 | passageId: String,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
122 | passageId: String,
123 | accessToken providedToken: String? = nil,
124 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
125 | ) async throws -> [HighlightResponse] {
126 | try await highlights(
/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: value of type '_' expected to be instance of class or class-constrained type
151 | color: String,
152 | accessToken providedToken: String? = nil,
153 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
154 | ) async throws -> Bool {
155 | 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: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:199:36: error: value of type '_' expected to be instance of class or class-constrained type
197 | passageId: String,
198 | accessToken providedToken: String? = nil,
199 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
66 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
67 |
/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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
[496/498] 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: value of type '_' expected to be instance of class or class-constrained type
10 | public extension YouVersionAPI.Bible {
11 |
12 | static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
14 |
/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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
38 | try await version(withId: versionId, accessToken: providedToken, session: session)
39 | }
/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:56:104: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
63 |
64 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
65 | static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
66 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
67 | }
/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:69:109: error: value of type '_' expected to be instance of class or class-constrained type
67 | }
68 |
69 | private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: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/Bible/BibleVersionAPI.swift:118:131: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:23:134: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:76:32: error: value of type '_' expected to be instance of class or class-constrained type
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:28:36: error: value of type '_' expected to be instance of class or class-constrained type
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:76:36: error: value of type '_' expected to be instance of class or class-constrained type
74 | passageId: String,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
122 | passageId: String,
123 | accessToken providedToken: String? = nil,
124 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
125 | ) async throws -> [HighlightResponse] {
126 | try await highlights(
/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: value of type '_' expected to be instance of class or class-constrained type
151 | color: String,
152 | accessToken providedToken: String? = nil,
153 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
154 | ) async throws -> Bool {
155 | 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: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:199:36: error: value of type '_' expected to be instance of class or class-constrained type
197 | passageId: String,
198 | accessToken providedToken: String? = nil,
199 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
66 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
67 |
/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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
[497/498] 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: value of type '_' expected to be instance of class or class-constrained type
10 | public extension YouVersionAPI.Bible {
11 |
12 | static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
14 |
/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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
38 | try await version(withId: versionId, accessToken: providedToken, session: session)
39 | }
/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:56:104: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
63 |
64 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
65 | static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
66 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
67 | }
/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:69:109: error: value of type '_' expected to be instance of class or class-constrained type
67 | }
68 |
69 | private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: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/Bible/BibleVersionAPI.swift:118:131: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:23:134: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:76:32: error: value of type '_' expected to be instance of class or class-constrained type
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:28:36: error: value of type '_' expected to be instance of class or class-constrained type
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:76:36: error: value of type '_' expected to be instance of class or class-constrained type
74 | passageId: String,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
122 | passageId: String,
123 | accessToken providedToken: String? = nil,
124 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
125 | ) async throws -> [HighlightResponse] {
126 | try await highlights(
/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: value of type '_' expected to be instance of class or class-constrained type
151 | color: String,
152 | accessToken providedToken: String? = nil,
153 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
154 | ) async throws -> Bool {
155 | 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: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:199:36: error: value of type '_' expected to be instance of class or class-constrained type
197 | passageId: String,
198 | accessToken providedToken: String? = nil,
199 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
66 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
67 |
/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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
[498/498] 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: value of type '_' expected to be instance of class or class-constrained type
10 | public extension YouVersionAPI.Bible {
11 |
12 | static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
14 |
/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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
38 | try await version(withId: versionId, accessToken: providedToken, session: session)
39 | }
/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:56:104: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
63 |
64 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
65 | static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
66 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
67 | }
/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:69:109: error: value of type '_' expected to be instance of class or class-constrained type
67 | }
68 |
69 | private static func indexForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersionIndex {
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: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/Bible/BibleVersionAPI.swift:118:131: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:23:134: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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:76:32: error: value of type '_' expected to be instance of class or class-constrained type
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:28:36: error: value of type '_' expected to be instance of class or class-constrained type
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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:76:36: error: value of type '_' expected to be instance of class or class-constrained type
74 | passageId: String,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
122 | passageId: String,
123 | accessToken providedToken: String? = nil,
124 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
125 | ) async throws -> [HighlightResponse] {
126 | try await highlights(
/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: value of type '_' expected to be instance of class or class-constrained type
151 | color: String,
152 | accessToken providedToken: String? = nil,
153 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
154 | ) async throws -> Bool {
155 | 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: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:199:36: error: value of type '_' expected to be instance of class or class-constrained type
197 | passageId: String,
198 | accessToken providedToken: String? = nil,
199 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
66 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
67 |
/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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Organizations/Organizations.swift:49:76: error: value of type '_' expected to be instance of class or class-constrained type
47 | enum Organizations {
48 |
49 | public static func organization(id: String, session: URLSession = .shared) async throws -> Organization {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URLBuilder.organizationsURL(id: id) else {
51 | throw URLError(.badURL)
BUILD FAILURE 6.3 wasm