Build Information
Failed to build YouVersionPlatform, reference 5.7.0 (df14d4), with Swift 6.1 for Wasm on 11 Nov 2026 15:07:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
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: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: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: 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: 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
[114/133] 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: 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/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/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: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: 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: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: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: 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: 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
[115/133] 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: 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/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/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: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: 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: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: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: 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: 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
[116/133] 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: 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/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/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: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: 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: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: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: 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: 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
[117/133] 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: 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/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/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: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: 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: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: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: 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: 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[118/133] Emitting module YouVersionPlatformCore
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:106: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:12:120: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | extension YouVersionAPI.Bible {
11 |
12 | public static func version(withId versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | try await versionResponse(withId: versionId, accessToken: providedToken, session: session).value
14 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:19:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | withId versionId: Int,
18 | accessToken providedToken: String? = nil,
19 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> BibleContentResponse<BibleVersion> {
21 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:61:99: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 | @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
61 | public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | try await version(withId: versionId, accessToken: providedToken, session: session)
63 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:61:113: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |
60 | @available(*, deprecated, renamed: "version(withId:accessToken:session:)")
61 | public static func version(versionId: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | try await version(withId: versionId, accessToken: providedToken, session: session)
63 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:80:97: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | /// - `YouVersionAPIError.cannotDownload` if the server returns an 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:87:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | withId versionId: Int,
86 | accessToken: String?,
87 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | ) async throws -> BibleContentResponse<BibleVersion> {
89 | guard let url = URLBuilder.versionURL(versionId: versionId) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:101:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 |
100 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 | public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:101:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 |
100 | @available(*, deprecated, renamed: "metadataForVersion(withId:accessToken:session:)")
101 | public static func basicVersion(versionId: Int, accessToken: String?, session: URLSession = .shared) async throws -> BibleVersion {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | try await metadataForVersion(withId: versionId, accessToken: accessToken, session: session)
103 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:108:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | withId versionId: Int,
107 | accessToken: String?,
108 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | ) async throws -> BibleContentResponse<BibleVersionIndex> {
110 | struct BibleVersionChaptersResponse: Codable {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:128:110: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |
127 | /// Fetches the content of a single Bible chapter from the server.
128 | public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:128:124: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 |
127 | /// Fetches the content of a single Bible chapter from the server.
128 | public static func chapter(reference: BibleReference, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> String {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | try await chapterResponse(reference: reference, accessToken: providedToken, session: session).value
130 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift:135:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
133 | reference: BibleReference,
134 | accessToken providedToken: String? = nil,
135 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 | ) async throws -> BibleContentResponse<String> {
137 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersionAPI.swift: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/BibleVersions.swift:23:120: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// - `YouVersionAPIError.cannotDownload` if the server returns an error response.
22 | /// - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 | static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 | let range = languageTag == nil ? [] : [languageTag!]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:23:134: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | /// - `YouVersionAPIError.cannotDownload` if the server returns an error response.
22 | /// - `YouVersionAPIError.invalidResponse` if the server response is not valid.
23 | static func versions(forLanguageTag languageTag: String? = nil, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> [BibleVersion] {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
25 | let range = languageTag == nil ? [] : [languageTag!]
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:76:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | ) async throws -> [BibleVersionMinimalInfo] {
78 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/BibleVersions.swift:76:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
74 | forLanguageTag languageTag: String? = nil,
75 | accessToken providedToken: String? = nil,
76 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 | ) async throws -> [BibleVersionMinimalInfo] {
78 | let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:28:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | color: String,
27 | accessToken providedToken: String? = nil,
28 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | ) async throws -> Bool {
30 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:60:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 | passageId: String,
59 | accessToken providedToken: String? = nil,
60 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
61 | ) async throws -> [HighlightResponse] {
62 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:108:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | passageId: String,
107 | accessToken providedToken: String? = nil,
108 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | ) async throws -> [HighlightResponse] {
110 | try await highlights(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:137:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 | color: String,
136 | accessToken providedToken: String? = nil,
137 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 | ) async throws -> Bool {
139 | try await performHighlightRequest(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | color: String,
154 | accessToken providedToken: String?,
155 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | ) async throws -> Bool {
157 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Bible/Highlights.swift:209:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 | passageId: String,
208 | accessToken providedToken: String? = nil,
209 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | ) async throws -> Bool {
211 | guard let accessToken = await YouVersionAPI.accessToken(providedToken: providedToken, session: session) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/DataExchange/DataExchange.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | permissions: Set<String>,
29 | accessToken providedToken: String? = nil,
30 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | ) async throws -> String {
32 | guard let accessToken = providedToken ?? YouVersionPlatformConfiguration.accessToken else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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: 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/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: 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/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/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: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: 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: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: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: 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: 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
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/URLRequest+YouVersion.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | /// Creates a URLRequest with standard headers for YouVersion API calls.
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/SignInWithYouVersionPKCEAuthorizationRequest.swift:135:17: error: cannot find type 'URLRequest' in scope
133 | codeVerifier: String,
134 | redirectUri: String
135 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | guard let url = URLBuilder.authTokenURL else {
137 | throw SignInWithYouVersionPKCEAuthorizationError.unableToConstructAuthorizeURL
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | redirectUri: String,
14 | nonce: String,
15 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) async throws -> SignInWithYouVersionResult {
17 | let location = try await obtainLocation(from: callbackURL, state: state, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:15:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | redirectUri: String,
14 | nonce: String,
15 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) async throws -> SignInWithYouVersionResult {
17 | let location = try await obtainLocation(from: callbackURL, state: state, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | redirectUri: String,
29 | nonce: String,
30 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) async throws -> SignInWithYouVersionResult {
32 | try await signInResult(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:30:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | redirectUri: String,
29 | nonce: String,
30 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | ) async throws -> SignInWithYouVersionResult {
32 | try await signInResult(
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:93: error: cannot find type 'URLRequest' in scope
40 | }
41 |
42 | private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
43 | guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
44 | return
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:42:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | private static func applySessionHeaders(from session: URLSession, to request: inout URLRequest) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | guard let additionalHeaders = session.configuration.httpAdditionalHeaders else {
44 | return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:55:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 | // this checks that the state parameter matches, and then fetches /auth/callback with the same parameters
55 | static func obtainLocation(from callbackURL: URL, state: String, session: URLSession) async throws -> String {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | guard let components = URLComponents(url: callbackURL, resolvingAgainstBaseURL: false),
57 | let queryItems = components.queryItems,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:102:105: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
102 | static func obtainTokens(from code: String, codeVerifier: String, redirectUri: String, session: URLSession) async throws -> TokenResponse {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | var request = try SignInWithYouVersionPKCEAuthorizationRequestBuilder.tokenURLRequest(
104 | code: code,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:205:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | withToken refreshToken: String,
204 | idToken: String?,
205 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | ) async throws -> SignInWithYouVersionResult {
207 | guard let url = URLBuilder.authTokenURL else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:205:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
203 | withToken refreshToken: String,
204 | idToken: String?,
205 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
206 | ) async throws -> SignInWithYouVersionResult {
207 | guard let url = URLBuilder.authTokenURL else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:251:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | with refreshToken: String,
250 | idToken: String?,
251 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 | ) async throws -> SignInWithYouVersionResult {
253 | try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:251:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
249 | with refreshToken: String,
250 | idToken: String?,
251 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
252 | ) async throws -> SignInWithYouVersionResult {
253 | try await refreshSignIn(withToken: refreshToken, idToken: idToken, session: session)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:53: error: cannot find type 'URLSessionDelegate' in scope
62 | }
63 |
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
66 | newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:64:73: error: cannot find type 'URLSessionTaskDelegate' in scope
62 | }
63 |
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
66 | newRequest request: URLRequest) async -> URLRequest? {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:74: error: cannot find type 'URLRequest' in scope
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
66 | newRequest request: URLRequest) async -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
67 | if response.url?.path() == "/auth/callback" {
68 | return nil // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:66:53: error: cannot find type 'URLRequest' in scope
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
66 | newRequest request: URLRequest) async -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
67 | if response.url?.path() == "/auth/callback" {
68 | return nil // have it not follow the redirect
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | newRequest request: URLRequest) async -> URLRequest? {
67 | if response.url?.path() == "/auth/callback" {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | newRequest request: URLRequest) async -> URLRequest? {
67 | if response.url?.path() == "/auth/callback" {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:65:115: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | final class RedirectDisabler: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
65 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | newRequest request: URLRequest) async -> URLRequest? {
67 | if response.url?.path() == "/auth/callback" {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:74:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
72 | }
73 |
74 | let redirectConfiguration = session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
75 | let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
76 | var request = URLRequest(url: newURL)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
73 |
74 | let redirectConfiguration = session.configuration
75 | let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
76 | var request = URLRequest(url: newURL)
77 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:75:129: error: 'nil' requires a contextual type
73 |
74 | let redirectConfiguration = session.configuration
75 | let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
76 | var request = URLRequest(url: newURL)
77 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/Users/Users.swift:76:27: error: cannot find 'URLRequest' in scope
74 | let redirectConfiguration = session.configuration
75 | let redirectSession = URLSession(configuration: redirectConfiguration, delegate: RedirectDisabler(), delegateQueue: nil)
76 | var request = URLRequest(url: newURL)
| `- error: cannot find 'URLRequest' in scope
77 | request.httpMethod = "GET"
78 | applySessionHeaders(from: session, to: &request)
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:109: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | /// - `URLError.badURL` if the URL could not be constructed.
19 | /// - `URLError.badServerResponse` if the server response could not be decoded.
20 | public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | try await verseOfTheDay(dayOfYear: dayOfYear, languageRanges: [], accessToken: providedToken, session: session)
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:20:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | /// - `URLError.badURL` if the URL could not be constructed.
19 | /// - `URLError.badServerResponse` if the server response could not be decoded.
20 | public static func verseOfTheDay(dayOfYear: Int, accessToken providedToken: String? = nil, session: URLSession = .shared) async throws -> YouVersionVerseOfTheDay {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | try await verseOfTheDay(dayOfYear: dayOfYear, languageRanges: [], accessToken: providedToken, session: session)
22 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:42:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | languageRanges: [String],
41 | accessToken providedToken: String? = nil,
42 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) async throws -> YouVersionVerseOfTheDay {
44 | guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear, languageRanges: languageRanges) 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/VOTD/VOTD.swift:42:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 | languageRanges: [String],
41 | accessToken providedToken: String? = nil,
42 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | ) async throws -> YouVersionVerseOfTheDay {
44 | guard let url = URLBuilder.votdURL(dayOfYear: dayOfYear, languageRanges: languageRanges) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/VOTD/VOTD.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | languageRanges: [String] = [],
73 | accessToken providedToken: String? = nil,
74 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) async throws -> [YouVersionVerseOfTheDay] {
76 | guard let url = URLBuilder.votdCollectionURL(languageRanges: languageRanges) 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/VOTD/VOTD.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | languageRanges: [String] = [],
73 | accessToken providedToken: String? = nil,
74 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | ) async throws -> [YouVersionVerseOfTheDay] {
76 | guard let url = URLBuilder.votdCollectionURL(languageRanges: languageRanges) else {
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:16:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// This can cause a token refresh if an access token is present but is old.
16 | public static func hasValidToken(session: URLSession = .shared) async -> Bool {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | await accessTokenProvider.accessToken(session: session) != nil
18 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:16:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |
15 | /// This can cause a token refresh if an access token is present but is old.
16 | public static func hasValidToken(session: URLSession = .shared) async -> Bool {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | await accessTokenProvider.accessToken(session: session) != nil
18 | }
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:20:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | static func accessToken(providedToken: String?, session: URLSession) async -> String? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | if let providedToken {
22 | return providedToken
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:27:66: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | static func data(at url: URL, accessToken: String?, session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await responseData(at: url, accessToken: accessToken, session: session).value
29 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:31:75: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | static func dataIfPresent(at url: URL, accessToken: String?, session: URLSession) async throws -> Data? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | try await response(
33 | at: url,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | at url: URL,
42 | accessToken: String?,
43 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ) async throws -> BibleContentResponse<Data> {
45 | let response = try await response(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:64:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | at url: URL,
63 | accessToken: String?,
64 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | allowsNoContent: Bool
66 | ) async throws -> (data: Data?, httpResponse: HTTPURLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:66:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | session: URLSession,
65 | allowsNoContent: Bool
66 | ) async throws -> (data: Data?, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | let request = urlRequest(with: url, accessToken: accessToken, session: session)
68 | let (data, response) = try await session.data(for: request)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/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/YouVersionAPI.swift:94:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | with url: URL,
93 | accessToken: String?,
94 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
96 | omitAccessToken: Bool = false
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/APIs/YouVersionAPI.swift:182:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 | private var refreshTask: Task<String?, Never>?
181 |
182 | func accessToken(session: URLSession) async -> String? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | guard let authData = YouVersionPlatformConfiguration.authData,
184 | let accessToken = authData.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/YouVersionAPI.swift:232:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | refreshToken: String,
231 | idToken: String?,
232 | session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | ) async -> String? {
234 | guard let result = try? await YouVersionAPI.Users.refreshSignIn(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[119/133] Compiling YouVersionPlatformCore DeprecatedBibleAPI.swift
/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/YouVersionPlatformConfiguration.swift:164:9: error: cannot find 'NotificationCenter' in scope
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: cannot find 'NotificationCenter' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:164:87: error: 'nil' requires a contextual type
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: 'nil' requires a contextual type
165 | }
166 |
[120/133] Compiling YouVersionPlatformCore YouVersionPlatformLogger.swift
/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/YouVersionPlatformConfiguration.swift:164:9: error: cannot find 'NotificationCenter' in scope
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: cannot find 'NotificationCenter' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:164:87: error: 'nil' requires a contextual type
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: 'nil' requires a contextual type
165 | }
166 |
[121/133] Compiling YouVersionPlatformCore SDKVersion.swift
/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/YouVersionPlatformConfiguration.swift:164:9: error: cannot find 'NotificationCenter' in scope
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: cannot find 'NotificationCenter' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:164:87: error: 'nil' requires a contextual type
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: 'nil' requires a contextual type
165 | }
166 |
[122/133] Compiling YouVersionPlatformCore AbbreviationSplitting.swift
/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/YouVersionPlatformConfiguration.swift:164:9: error: cannot find 'NotificationCenter' in scope
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: cannot find 'NotificationCenter' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:164:87: error: 'nil' requires a contextual type
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: 'nil' requires a contextual type
165 | }
166 |
[123/133] Compiling YouVersionPlatformCore YouVersionPlatformConfiguration.swift
/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/YouVersionPlatformConfiguration.swift:164:9: error: cannot find 'NotificationCenter' in scope
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: cannot find 'NotificationCenter' in scope
165 | }
166 |
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/YouVersionPlatformConfiguration.swift:164:87: error: 'nil' requires a contextual type
162 | return
163 | }
164 | NotificationCenter.default.post(name: authStateDidChangeNotification, object: nil)
| `- error: 'nil' requires a contextual type
165 | }
166 |
[124/133] Compiling YouVersionPlatformCore BibleTextNodeParser.swift
/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/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[125/133] Compiling YouVersionPlatformCore BibleVerse.swift
/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/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[126/133] Compiling YouVersionPlatformCore BibleVersion.swift
/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/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[127/133] Compiling YouVersionPlatformCore BibleVersionRepository.swift
/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/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[128/133] Compiling YouVersionPlatformCore CachedBibleContent.swift
/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/Bible/CachedBibleContent.swift:21:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
22 | var allowsCaching: Bool {
23 | !cacheControlDirectives.contains(where: {
[129/133] Compiling YouVersionPlatformCore BibleHighlightsCache.swift
/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: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: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: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/Bible/BibleHighlightsViewModel.swift:28:34: error: cannot find 'NotificationCenter' in scope
26 | self.cache = cache
27 | self.repository = repository
28 | self.authStateObserver = NotificationCenter.default.addObserver(
| `- error: cannot find 'NotificationCenter' in scope
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:30:21: error: 'nil' requires a contextual type
28 | self.authStateObserver = NotificationCenter.default.addObserver(
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
| `- error: 'nil' requires a contextual type
31 | queue: nil
32 | ) { [weak self] _ in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:31:20: error: 'nil' requires a contextual type
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
31 | queue: nil
| `- error: 'nil' requires a contextual type
32 | ) { [weak self] _ in
33 | Task { @MainActor in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:32:25: error: cannot infer type of closure parameter '_' without a type annotation
30 | object: nil,
31 | queue: nil
32 | ) { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
33 | Task { @MainActor in
34 | self?.reset()
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:41:13: error: cannot find 'NotificationCenter' in scope
39 | deinit {
40 | if let authStateObserver {
41 | NotificationCenter.default.removeObserver(authStateObserver)
| `- error: cannot find 'NotificationCenter' in scope
42 | }
43 | }
[130/133] Compiling YouVersionPlatformCore BibleHighlightsRepository.swift
/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: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: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: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/Bible/BibleHighlightsViewModel.swift:28:34: error: cannot find 'NotificationCenter' in scope
26 | self.cache = cache
27 | self.repository = repository
28 | self.authStateObserver = NotificationCenter.default.addObserver(
| `- error: cannot find 'NotificationCenter' in scope
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:30:21: error: 'nil' requires a contextual type
28 | self.authStateObserver = NotificationCenter.default.addObserver(
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
| `- error: 'nil' requires a contextual type
31 | queue: nil
32 | ) { [weak self] _ in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:31:20: error: 'nil' requires a contextual type
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
31 | queue: nil
| `- error: 'nil' requires a contextual type
32 | ) { [weak self] _ in
33 | Task { @MainActor in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:32:25: error: cannot infer type of closure parameter '_' without a type annotation
30 | object: nil,
31 | queue: nil
32 | ) { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
33 | Task { @MainActor in
34 | self?.reset()
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:41:13: error: cannot find 'NotificationCenter' in scope
39 | deinit {
40 | if let authStateObserver {
41 | NotificationCenter.default.removeObserver(authStateObserver)
| `- error: cannot find 'NotificationCenter' in scope
42 | }
43 | }
[131/133] Compiling YouVersionPlatformCore BibleHighlightsViewModel.swift
/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: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: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: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/Bible/BibleHighlightsViewModel.swift:28:34: error: cannot find 'NotificationCenter' in scope
26 | self.cache = cache
27 | self.repository = repository
28 | self.authStateObserver = NotificationCenter.default.addObserver(
| `- error: cannot find 'NotificationCenter' in scope
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:30:21: error: 'nil' requires a contextual type
28 | self.authStateObserver = NotificationCenter.default.addObserver(
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
| `- error: 'nil' requires a contextual type
31 | queue: nil
32 | ) { [weak self] _ in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:31:20: error: 'nil' requires a contextual type
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
31 | queue: nil
| `- error: 'nil' requires a contextual type
32 | ) { [weak self] _ in
33 | Task { @MainActor in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:32:25: error: cannot infer type of closure parameter '_' without a type annotation
30 | object: nil,
31 | queue: nil
32 | ) { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
33 | Task { @MainActor in
34 | self?.reset()
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:41:13: error: cannot find 'NotificationCenter' in scope
39 | deinit {
40 | if let authStateObserver {
41 | NotificationCenter.default.removeObserver(authStateObserver)
| `- error: cannot find 'NotificationCenter' in scope
42 | }
43 | }
[132/133] Compiling YouVersionPlatformCore BibleReference.swift
/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: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: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: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/Bible/BibleHighlightsViewModel.swift:28:34: error: cannot find 'NotificationCenter' in scope
26 | self.cache = cache
27 | self.repository = repository
28 | self.authStateObserver = NotificationCenter.default.addObserver(
| `- error: cannot find 'NotificationCenter' in scope
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:30:21: error: 'nil' requires a contextual type
28 | self.authStateObserver = NotificationCenter.default.addObserver(
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
| `- error: 'nil' requires a contextual type
31 | queue: nil
32 | ) { [weak self] _ in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:31:20: error: 'nil' requires a contextual type
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
31 | queue: nil
| `- error: 'nil' requires a contextual type
32 | ) { [weak self] _ in
33 | Task { @MainActor in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:32:25: error: cannot infer type of closure parameter '_' without a type annotation
30 | object: nil,
31 | queue: nil
32 | ) { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
33 | Task { @MainActor in
34 | self?.reset()
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:41:13: error: cannot find 'NotificationCenter' in scope
39 | deinit {
40 | if let authStateObserver {
41 | NotificationCenter.default.removeObserver(authStateObserver)
| `- error: cannot find 'NotificationCenter' in scope
42 | }
43 | }
[133/133] Compiling YouVersionPlatformCore BibleTextNode.swift
/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: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: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: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/Bible/BibleHighlightsViewModel.swift:28:34: error: cannot find 'NotificationCenter' in scope
26 | self.cache = cache
27 | self.repository = repository
28 | self.authStateObserver = NotificationCenter.default.addObserver(
| `- error: cannot find 'NotificationCenter' in scope
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:30:21: error: 'nil' requires a contextual type
28 | self.authStateObserver = NotificationCenter.default.addObserver(
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
| `- error: 'nil' requires a contextual type
31 | queue: nil
32 | ) { [weak self] _ in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:31:20: error: 'nil' requires a contextual type
29 | forName: YouVersionPlatformConfiguration.authStateDidChangeNotification,
30 | object: nil,
31 | queue: nil
| `- error: 'nil' requires a contextual type
32 | ) { [weak self] _ in
33 | Task { @MainActor in
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:32:25: error: cannot infer type of closure parameter '_' without a type annotation
30 | object: nil,
31 | queue: nil
32 | ) { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
33 | Task { @MainActor in
34 | self?.reset()
/host/spi-builder-workspace/Sources/YouVersionPlatformCore/Bible/BibleHighlightsViewModel.swift:41:13: error: cannot find 'NotificationCenter' in scope
39 | deinit {
40 | if let authStateObserver {
41 | NotificationCenter.default.removeObserver(authStateObserver)
| `- error: cannot find 'NotificationCenter' in scope
42 | }
43 | }
BUILD FAILURE 6.1 wasm