Build Information
Failed to build YouVersionPlatform, reference 5.7.0 (df14d4), with Swift 6.2 for Wasm on 11 Nov 2026 15:06:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:174:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | 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:174:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:174:138: error: value of type '_' expected to be instance of class or class-constrained type
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public 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
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:143:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
141 |
142 | let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
144 |
145 | 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: 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:76:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 | ) async throws -> [BibleVersionMinimalInfo] {
78 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
34 |
35 | let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
37 |
38 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift: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 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:36: error: value of type '_' expected to be instance of class or class-constrained type
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:36: error: value of type '_' expected to be instance of class or class-constrained type
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:36: error: value of type '_' expected to be instance of class or class-constrained type
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | color: String,
154 | accessToken providedToken: String?,
155 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | ) async throws -> Bool {
157 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:36: error: value of type '_' expected to be instance of class or class-constrained type
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:74:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
72 | accessToken: accessToken,
73 | session: session,
74 | cachePolicy: .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
75 | )
76 | let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
74 | cachePolicy: .reloadIgnoringLocalCacheData
75 | )
76 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
77 |
78 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:178:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
176 | request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
179 | guard let httpResponse = response as? HTTPURLResponse else {
180 | throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:221:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
219 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
222 | guard let httpResponse = response as? HTTPURLResponse else {
223 | throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:36: error: value of type '_' expected to be instance of class or class-constrained type
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
47 | request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 | guard let httpResponse = response as? HTTPURLResponse else {
51 | throw YouVersionAPIError.invalidResponse
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:36: error: value of type '_' expected to be instance of class or class-constrained type
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:36: error: value of type '_' expected to be instance of class or class-constrained type
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
[499/504] Compiling YouVersionPlatformCore Images.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:106: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: value of type '_' expected to be instance of class or class-constrained type
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: value of type '_' expected to be instance of class or class-constrained type
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:61:99: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
61 | public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | try await version(withId: versionId, accessToken: providedToken, session: session)
63 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:61:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |
60 | @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
61 | public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | try await version(withId: versionId, accessToken: providedToken, session: session)
63 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:61:113: error: value of type '_' expected to be instance of class or class-constrained type
59 |
60 | @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
61 | public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
62 | try await version(withId: versionId, accessToken: providedToken, session: session)
63 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:97: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | /// - `YouVersionAPIError.cannotDownload` if the server returns an error response.
79 | /// - `YouVersionAPIError.invalidResponse` if the server response is not valid.
80 | public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
82 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:111: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
78 | /// - `YouVersionAPIError.cannotDownload` if the server returns an error response.
79 | /// - `YouVersionAPIError.invalidResponse` if the server response is not valid.
80 | public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
81 | try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
82 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:111: error: value of type '_' expected to be instance of class or class-constrained type
78 | /// - `YouVersionAPIError.cannotDownload` if the server returns an error response.
79 | /// - `YouVersionAPIError.invalidResponse` if the server response is not valid.
80 | public static func metadataForVersion(withId versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
81 | try await metadataResponseForVersion(withId: versionId, accessToken: accessToken, session: session).value
82 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:87:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | withId versionId: Int,
86 | accessToken: String?,
87 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | ) async throws -> BibleContentResponse<BibleVersion> {
89 | guard let url = URLBuilder.versionURL(versionId: versionId) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:101:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 |
100 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 | public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:101:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 |
100 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 | public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:101:98: error: value of type '_' expected to be instance of class or class-constrained type
99 |
100 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 | public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: value of type '_' expected to be instance of class or class-constrained type
102 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:108:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | withId versionId: Int,
107 | accessToken: String?,
108 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | ) async throws -> BibleContentResponse<BibleVersionIndex> {
110 | struct BibleVersionChaptersResponse: Codable {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:128:110: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |
127 | /// Fetches the content of a single Bible chapter from the server.
128 | public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:128:124: error: value of type '_' expected to be instance of class or class-constrained type
126 |
127 | /// Fetches the content of a single Bible chapter from the server.
128 | public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: value of type '_' expected to be instance of class or class-constrained type
129 | try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:128:124: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 |
127 | /// Fetches the content of a single Bible chapter from the server.
128 | public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: value of type '_' expected to be instance of class or class-constrained type
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:174:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | 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:174:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public static func introMaterial(versionId: Int, passageId: String, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:174:138: error: value of type '_' expected to be instance of class or class-constrained type
172 |
173 | /// Fetches the html content of the "intro" (introductory material) for a book from the server.
174 | public 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
175 | guard let url = URLBuilder.passageIntroURL(versionId: versionId, passageId: passageId) else {
176 | throw URLError(.badURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:143:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
141 |
142 | let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
143 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
144 |
145 | 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: 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:76:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 | ) async throws -> [BibleVersionMinimalInfo] {
78 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:36:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
34 |
35 | let request = YouVersionAPI.urlRequest(with: url, accessToken: accessToken, session: session)
36 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
37 |
38 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift: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 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:36: error: value of type '_' expected to be instance of class or class-constrained type
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:36: error: value of type '_' expected to be instance of class or class-constrained type
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:36: error: value of type '_' expected to be instance of class or class-constrained type
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | color: String,
154 | accessToken providedToken: String?,
155 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | ) async throws -> Bool {
157 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:36: error: value of type '_' expected to be instance of class or class-constrained type
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:74:31: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
72 | accessToken: accessToken,
73 | session: session,
74 | cachePolicy: .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
75 | )
76 | let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:76:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
74 | cachePolicy: .reloadIgnoringLocalCacheData
75 | )
76 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
77 |
78 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:178:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
176 | request.httpBody = try JSONEncoder().encode(highlightRequest)
177 |
178 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
179 | guard let httpResponse = response as? HTTPURLResponse else {
180 | throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:221:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
219 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
220 |
221 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
222 | guard let httpResponse = response as? HTTPURLResponse else {
223 | throw URLError(.badServerResponse)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:36: error: value of type '_' expected to be instance of class or class-constrained type
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:49:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
47 | request.httpBody = try JSONEncoder().encode(requestBody)
48 |
49 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 | guard let httpResponse = response as? HTTPURLResponse else {
51 | throw YouVersionAPIError.invalidResponse
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:36: error: value of type '_' expected to be instance of class or class-constrained type
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:33:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | pageToken: String? = nil,
32 | accessToken providedToken: String? = nil,
33 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | ) async throws -> YouVersionImageCollection {
35 | guard pageSize.map({ (1...99).contains($0) }) ?? true else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Images/Images.swift:69:36: error: value of type '_' expected to be instance of class or class-constrained type
67 | id: String,
68 | accessToken providedToken: String? = nil,
69 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
70 | ) async throws -> YouVersionImage {
71 | guard !id.isEmpty else {
[500/504] Compiling YouVersionPlatformCore YouVersionImage.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
112 |
113 | 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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[501/504] Compiling YouVersionPlatformCore Languages.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
112 |
113 | 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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[502/504] Compiling YouVersionPlatformCore Organizations.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
112 |
113 | 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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[503/504] Compiling YouVersionPlatformCore Search.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
112 |
113 | 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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[504/504] Compiling YouVersionPlatformCore URLBuilder.swift
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:136: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | try await languages(
69 | country: country,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: value of type '_' expected to be instance of class or class-constrained type
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:67:150: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
66 | /// - Returns: An array of LanguageOverview objects.
67 | public static func languages(country: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | try await languages(
69 | country: country,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:170: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:90:184: error: value of type '_' expected to be instance of class or class-constrained type
88 | /// - session: The URLSession used to perform the request. Defaults to `URLSession.shared`.
89 | /// - Returns: An array of LanguageOverview objects.
90 | public static func languages(country: String? = nil, preferredLanguage: String? = nil, fields: [String] = [], accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [LanguageOverview] {
| `- error: value of type '_' expected to be instance of class or class-constrained type
91 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
92 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:97:10: error: cannot find type 'URLRequest' in scope
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest.youVersion(url, accessToken: accessToken, cachePolicy: cachePolicy, omitAccessToken: omitAccessToken)
99 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:95:22: error: cannot find type 'URLRequest' in scope
93 | accessToken: String?,
94 | session: URLSession,
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
96 | omitAccessToken: Bool = false
97 | ) -> URLRequest {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Languages/Languages.swift:111:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
109 | request.setValue(preferredLanguage, forHTTPHeaderField: "Accept-Language")
110 | }
111 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
112 |
113 | 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)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:194:32: error: value of type '_' expected to be instance of class or class-constrained type
192 | languageRanges: [String],
193 | accessToken providedToken: String? = nil,
194 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
195 | ) async throws -> [YouVersionSearchQuery] {
196 | guard !query.isEmpty else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: value of type '_' expected to be instance of class or class-constrained type
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:215:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | languageRanges: [String],
214 | accessToken providedToken: String? = nil,
215 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | ) async throws -> [YouVersionSearchQuery] {
217 | try await queries(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:253:32: error: value of type '_' expected to be instance of class or class-constrained type
251 | fields: [String] = [],
252 | accessToken providedToken: String? = nil,
253 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
254 | ) async throws -> YouVersionSearchResults {
255 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:321:32: error: value of type '_' expected to be instance of class or class-constrained type
319 | languageRanges: [String],
320 | accessToken providedToken: String? = nil,
321 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
322 | ) async throws -> YouVersionTopicSearchResults {
323 | guard (1...100).contains(query.count) &&
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: value of type '_' expected to be instance of class or class-constrained type
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:376:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
374 | pageToken: String? = nil,
375 | accessToken providedToken: String? = nil,
376 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 | ) async throws -> YouVersionVerseSearchResults {
378 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: value of type '_' expected to be instance of class or class-constrained type
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:443:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
441 | pageToken: String? = nil,
442 | accessToken providedToken: String? = nil,
443 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
444 | ) async throws -> YouVersionImageSearchResults {
445 | guard hasValidSearchParameters(query: query, bibleID: bibleID, pageSize: pageSize) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Search/Search.swift:485:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
483 | isTrending: Bool,
484 | accessToken providedToken: String?,
485 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | ) async throws -> [YouVersionSearchQuery] {
487 | guard !languageRanges.isEmpty else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
BUILD FAILURE 6.2 wasm