Build Information
Failed to build SwiftySpot, reference 0.8.0 (3c2786), with Swift 6.4 for Wasm on 24 Sep 2026 21:38:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mIwr/SwiftySpot.git
Reference: 0.8.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/mIwr/SwiftySpot
* tag 0.8.0 -> FETCH_HEAD
HEAD is now at 3c27861 feat: login/v4 flow; fix: guest auth, web search, hashcash solve
Cloned https://github.com/mIwr/SwiftySpot.git
Revision (git rev-parse @):
3c27861756af786cde610298e3e5fec6fbdf0e80
SUCCESS checkout https://github.com/mIwr/SwiftySpot.git at 0.8.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/mIwr/SwiftySpot.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:29:52: warning: 'v11' is deprecated: iOS 15.0 is the oldest supported version [#DeprecatedDeclaration]
27 | name: "SwiftySpot",
28 | platforms: [
29 | .macOS(.v10_13), .macCatalyst(.v13), .iOS(.v11), .tvOS(.v11), .watchOS(.v5), .visionOS(.v1)
| `- warning: 'v11' is deprecated: iOS 15.0 is the oldest supported version [#DeprecatedDeclaration]
30 | ],
31 | products: [
/host/spi-builder-workspace/Package.swift:29:65: warning: 'v11' is deprecated: tvOS 15.0 is the oldest supported version [#DeprecatedDeclaration]
27 | name: "SwiftySpot",
28 | platforms: [
29 | .macOS(.v10_13), .macCatalyst(.v13), .iOS(.v11), .tvOS(.v11), .watchOS(.v5), .visionOS(.v1)
| `- warning: 'v11' is deprecated: tvOS 15.0 is the oldest supported version [#DeprecatedDeclaration]
30 | ],
31 | products: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/apple/swift-protobuf.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/13439] Fetching cryptoswift
[13440/67725] Fetching cryptoswift, swift-protobuf
Fetched https://github.com/krzyzanowskim/CryptoSwift.git (1.13s)
[5972/54286] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git (4.60s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.10.0 (5.65s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.38.1 (0.24s)
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.38.1
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.10.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 213]
[Planning deferred tasks]
[67 / 89] SwiftProtobuf
[76 / 107] SwiftProtobuf
[87 / 107] SwiftProtobuf
[90 / 107] SwiftProtobuf-product
[91 / 107] SwiftProtobuf-product
[92 / 107] CryptoSwift-product
[94 / 107] SwiftySpot
[95 / 107]
[96 / 108]
[98 / 117] SwiftySpot
[99 / 117] SwiftySpot
[100 / 117] SwiftySpot
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiArtist.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiArtist.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiAuth.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiCollection.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiCollection.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiDownload.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLanding.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiLanding.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLyrics.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiLyrics.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiMetadata.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiMetadata.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiPlaylist.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiPlaylist.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiProfile.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSearch.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiSearch.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiSession.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSignup.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile ApiSignup.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Client.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftySpot/Network/Downloader.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Downloader.swift
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiArtist.swift:13:353: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getArtistUIInfoByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, id: String, locale: String, application: String, video: Bool, podcast: Bool, deviceId: String, timezone: String, timeFormat: String, onDemandUris: [String], completion: @escaping (_ result: Result<SPArtist, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m var signal = ""
[0;36m15 |[0;0m if (!onDemandUris.isEmpty) {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiArtist.swift:49:242: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m47 |[0;0m }
[0;36m48 |[0;0m
[0;36m49 |[0;0m func getArtistInfoByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, uri: String, fields: [String], imgSize: String, completion: @escaping (_ result: Result<SPArtist, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m50 |[0;0m if (clToken.isEmpty) {
[0;36m51 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:14:45: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m
[0;36m13 |[0;0m ///Initializes request for predefined api methods
[0;36m14 |[0;0m func buildRequest(for method: ApiTarget) -> [4;39mURLRequest[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m let pathEncoded = method.path.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
[0;36m16 |[0;0m guard let url: URL = URL(string: method.baseURL + pathEncoded) else {return nil}
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:123:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m121 |[0;0m
[0;36m122 |[0;0m ///Send request and try parse as json
[0;36m123 |[0;0m func requestJson(_ request: [4;39mURLRequest[0;0m, completion: @escaping (_ result: Result<[String: Any], SPError>) -> Void) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m124 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m125 |[0;0m {
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:13:94: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getServerTimeByApi(completion: @escaping (_ result: Result<Int64, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m guard let req = buildRequest(for: .serverTime) else {
[0;36m15 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Unable to build server time retrieve request")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:34:186: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m }
[0;36m33 |[0;0m
[0;36m34 |[0;0m func getGuestAuthByApi(userAgent: String, os: String, appVer: String, totp: String, totpVer: UInt8, completion: @escaping (_ result: Result<SPGuestWebAuthSession, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m if (totp.isEmpty) {
[0;36m36 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Empty TOTP")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:58:245: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m56 |[0;0m }
[0;36m57 |[0;0m
[0;36m58 |[0;0m func initAuthChallengeByApi(userAgent: String, clToken: String, clientInfo: SPShortClientInfo, cred: SPPassword, nonce: String, callbackUrl: String, locale: String, completion: @escaping (_ result: Result<SPLoginResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m59 |[0;0m if (clToken.isEmpty) {
[0;36m60 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:100:208: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m98 |[0;0m }
[0;36m99 |[0;0m
[0;36m100 |[0;0m func initAuthMagicLinkByApi(userAgent: String, clToken: String, clId: String, os: String, appVer: String, login: String, deviceId: String, completion: @escaping (_ result: Result<Bool, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m101 |[0;0m if (clToken.isEmpty) {
[0;36m102 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:125:301: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m123 |[0;0m }
[0;36m124 |[0;0m
[0;36m125 |[0;0m func authSolveChallengeByApi(userAgent: String, clToken: String, loginContext: Data, interactionNonce: String, callbackUrl: String, clientInfo: SPShortClientInfo, answerData: SPLoginChallengeAnswerData, cred: SPPassword, completion: @escaping (_ result: Result<SPLoginResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m126 |[0;0m if (clToken.isEmpty) {
[0;36m127 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:170:253: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m168 |[0;0m }
[0;36m169 |[0;0m
[0;36m170 |[0;0m func authApplyMagicLinkByApi(userAgent: String, clToken: String, interactionNonce: String, callbackUrl: String, clientInfo: SPShortClientInfo, oneTimeToken: SPOneTimeToken, completion: @escaping (_ result: Result<SPLoginResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m171 |[0;0m if (clToken.isEmpty) {
[0;36m172 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift:209:197: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m207 |[0;0m }
[0;36m208 |[0;0m
[0;36m209 |[0;0m func refreshAuthByApi(userAgent: String, clToken: String, clientInfo: SPShortClientInfo, stored: SPStoredCredential, completion: @escaping (_ result: Result<SPLoginResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m210 |[0;0m if (clToken.isEmpty) {
[0;36m211 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:38:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m ///Send request and try parse as base SPResponse
[0;36m38 |[0;0m func requestSPResponse(_ request: [4;39mURLRequest[0;0m, completion: @escaping (_ result: Result<SPResponse, SPError>) -> Void) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m39 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m40 |[0;0m {
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:64:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m ///Send request and try parse as Data instance
[0;36m64 |[0;0m func requestData(_ request: [4;39mURLRequest[0;0m, completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m65 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m66 |[0;0m {
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiCollection.swift:13:267: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getCollectionByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, username: String, collectionName: String, paginationToken: String?, limit: UInt, completion: @escaping (_ result: Result<SPPageResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m if (limit == 0) {
[0;36m15 |[0;0m completion(.success(SPPageResponse()))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiCollection.swift:54:273: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m52 |[0;0m }
[0;36m53 |[0;0m
[0;36m54 |[0;0m func getCollectionDeltaByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, username: String, collectionName: String, lastSyncToken: String, completion: @escaping (_ result: Result<SPDeltaResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m55 |[0;0m if (apHost.isEmpty) {
[0;36m56 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiCollection.swift:92:294: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[0;0m func collectionUpdateByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, username: String, collectionName: String, updItems: [SPCollectionPageItem], clienUpdateId: String, completion: @escaping (_ result: Result<Bool, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m93 |[0;0m if (updItems.isEmpty) {
[0;36m94 |[0;0m completion(.success(true))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:13:90: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getWdvCertByApi(completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m let apiFunc = ApiTarget.wdvCert
[0;36m15 |[0;0m return download(headers: apiFunc.headers, fullPath: apiFunc.baseURL + apiFunc.path, completion: completion)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:18:124: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m }
[0;36m17 |[0;0m
[0;36m18 |[0;0m func getWdvSeektableByApi(fileHexId: String, completion: @escaping (_ result: Result<SPWDVSeektable, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m if (fileHexId.isEmpty) {
[0;36m20 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Empty file ID")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:41:219: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m39 |[0;0m }
[0;36m40 |[0;0m
[0;36m41 |[0;0m func getWdvIntentUrlByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, fileType: String, completion: @escaping (_ result: Result<SPWDVLicUrl, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m if (apHost.isEmpty) {
[0;36m43 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:72:230: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m70 |[0;0m }
[0;36m71 |[0;0m
[0;36m72 |[0;0m func postWdvIntentByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, fileType: String, challenge: [UInt8], completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m73 |[0;0m if (apHost.isEmpty) {
[0;36m74 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:105:261: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m103 |[0;0m }
[0;36m104 |[0;0m
[0;36m105 |[0;0m func postPlayIntentByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, audioFileHexId: String, proto: SPPlayIntentRequest, completion: @escaping (_ result: Result<SPPlayIntentResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m106 |[0;0m if (apHost.isEmpty) {
[0;36m107 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift:160:254: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m158 |[0;0m }
[0;36m159 |[0;0m
[0;36m160 |[0;0m func getDownloadInfoByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, audioFileHexId: String, productType: Int, completion: @escaping (_ result: Result<SPDownloadInfoResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m161 |[0;0m if (apHost.isEmpty) {
[0;36m162 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLanding.swift:14:269: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m import SwiftProtobuf
[0;36m13 |[0;0m
[0;36m14 |[0;0m func getLandingByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, clientInfo: SPDacRequest.ClientInfo, facetUri: String, timezone: String, completion: @escaping (_ result: Result<SPDacResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m if (clToken.isEmpty) {
[0;36m16 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLyrics.swift:14:293: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m import SwiftProtobuf
[0;36m13 |[0;0m
[0;36m14 |[0;0m func getLyricsByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, type: String, id: String, vocalRemove: Bool, syllableSync: Bool, clientLangCode: String, completion: @escaping (_ result: Result<SPColorLyricsResponse?, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m if (type.isEmpty || id.isEmpty) {
[0;36m16 |[0;0m completion(.success(nil))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiMetadata.swift:14:288: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m import SwiftProtobuf
[0;36m13 |[0;0m
[0;36m14 |[0;0m func getMetadataByApi(apHost: String, userAgent: String, clToken: String, authToken: String, os: String, appVer: String, header: SPMetaBatchedEntityRequestHeader, items: [SPMetaEntityRequest], completion: @escaping (_ result: Result<SPMetaBatchedExtensionResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m if (items.isEmpty) {
[0;36m16 |[0;0m let emptyRes = SPMetaBatchedExtensionResponse()
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiPlaylist.swift:13:216: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getPlaylistInfoByApi(apHost: String, userAgent: String, clToken: String, authToken: String, id: String, os: String, appVer: String, completion: @escaping (_ result: Result<SPPlaylistInfo, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m if (apHost.isEmpty) {
[0;36m15 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Private back-end is empty. Retrieve access points first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiPlaylist.swift:48:223: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m46 |[0;0m }
[0;36m47 |[0;0m
[0;36m48 |[0;0m func getPlaylistFromSeedByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, uri: String, completion: @escaping (_ result: Result<SPPlaylistFromSeed, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m49 |[0;0m if (clToken.isEmpty) {
[0;36m50 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift:13:185: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getWebProfileInfoByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, completion: @escaping (_ result: Result<SPProfile, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m if (clToken.isEmpty) {
[0;36m15 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift:40:209: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m }
[0;36m39 |[0;0m
[0;36m40 |[0;0m func getWebProfileCustomByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, username: String, completion: @escaping (_ result: Result<[String: Any], SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m if (authToken.isEmpty) {
[0;36m42 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Auth Token is empty. Authorize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift:65:217: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m63 |[0;0m }
[0;36m64 |[0;0m
[0;36m65 |[0;0m func getWebProfileCustom2ByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, username: String, completion: @escaping (_ result: Result<SPWebProfileResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m if (authToken.isEmpty) {
[0;36m67 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Auth Token is empty. Authorize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift:95:182: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m93 |[0;0m }
[0;36m94 |[0;0m
[0;36m95 |[0;0m func getProfileInfoByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, completion: @escaping (_ result: Result<SPProfile, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m96 |[0;0m if (clToken.isEmpty) {
[0;36m97 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSearch.swift:13:351: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func searchSuggestionByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, reqId: UUID, query: String, catalogue: String, locale: String, entityTypes: [String], ts: Int64, onDemandSets: Bool, limit: UInt, completion: @escaping (_ result: Result<SPSearchAutocompleteViewResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m if (query.isEmpty || limit == 0) {
[0;36m15 |[0;0m completion(.success(SPSearchAutocompleteViewResponse()))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSearch.swift:47:352: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m }
[0;36m46 |[0;0m
[0;36m47 |[0;0m func searchByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, clId: String, reqId: UUID, query: String, catalogue: String, locale: String, entityTypes: [String], ts: Int64, onDemandSets: Bool, limit: UInt, pageToken: String, completion: @escaping (_ result: Result<SPSearchMainViewResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m48 |[0;0m if (query.isEmpty || limit == 0) {
[0;36m49 |[0;0m completion(.success(SPSearchMainViewResponse()))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSearch.swift:81:273: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m79 |[0;0m }
[0;36m80 |[0;0m
[0;36m81 |[0;0m func webSearchByApi(userAgent: String, clToken: String, authToken: String, os: String, appVer: String, query: String, opName: String, opQueryHashHexString: String, limit: UInt, offset: UInt, completion: @escaping (_ result: Result<SPWebSearchResult, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m82 |[0;0m if (query.isEmpty || limit == 0) {
[0;36m83 |[0;0m completion(.success(SPWebSearchResult()))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift:13:181: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func getWebSessionByApi(userAgent: String, clId: String, os: String, appVer: String, deviceId: String, completion: @escaping (_ result: Result<SPClientToken, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m guard let req = buildRequest(for: .webClToken(userAgent: userAgent, clId: clId, os: os, appVer: appVer, deviceId: deviceId)) else {
[0;36m15 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Unable to build get client session request")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift:56:166: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m54 |[0;0m }
[0;36m55 |[0;0m
[0;36m56 |[0;0m func initSessionChallengeByApi(userAgent: String, initData: SPClientInfo, completion: @escaping (_ result: Result<SPClientTokenChallengesData, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m57 |[0;0m var reqProtobuf = SPClientTokenRequest()
[0;36m58 |[0;0m reqProtobuf.type = .requestClientDataRequest
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift:86:179: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m84 |[0;0m }
[0;36m85 |[0;0m
[0;36m86 |[0;0m func initSessionSolveChallengeByApi(userAgent: String, answerData: SPClientTokenChallengeAnswerData, completion: @escaping (_ result: Result<SPClientToken, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m87 |[0;0m var reqProtobuf = SPClientTokenRequest()
[0;36m88 |[0;0m reqProtobuf.type = .requestChallengeAnswersRequest
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift:121:122: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m119 |[0;0m }
[0;36m120 |[0;0m
[0;36m121 |[0;0m func getAccessPointsByApi(clToken: String?, completion: @escaping (_ result: Result<SPAccessPoint, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m122 |[0;0m guard let req = buildRequest(for: .acessPoints(clToken: clToken)) else {
[0;36m123 |[0;0m completion(.failure(.badRequest(errCode: -1, description: "Unable to build access points retrieve request")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSignup.swift:13:203: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m
[0;36m13 |[0;0m func validateSignupByApi(userAgent: String, clToken: String, os: String, appVer: String, validatorKey: String, password: String?, completion: @escaping (Result<SPSignupValidation, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m if (clToken.isEmpty) {
[0;36m15 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSignup.swift:36:204: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m }
[0;36m35 |[0;0m
[0;36m36 |[0;0m func signupByApi(userAgent: String, clToken: String, os: String, appVer: String, clId: String, proto: SPCreateAccountRequest, completion: @escaping (Result<SPCreateAccountResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m if (clToken.isEmpty) {
[0;36m38 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Client Token is empty. Initialize session first")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:38:121: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m ///Send request and try parse as base SPResponse
[0;36m38 |[0;0m func requestSPResponse(_ request: URLRequest, completion: @escaping (_ result: Result<SPResponse, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m39 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m40 |[0;0m {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:64:109: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m ///Send request and try parse as Data instance
[0;36m64 |[0;0m func requestData(_ request: URLRequest, completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m65 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m66 |[0;0m {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:93:40: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m ///Send request and try parse as pair of Data instance and response headers
[0;36m93 |[0;0m func requestDataWithHeaders(_ request: [4;39mURLRequest[0;0m, completion: @escaping (_ result: Result<(Data, [String: String]), SPError>) -> Void) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m95 |[0;0m {
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:93:140: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m ///Send request and try parse as pair of Data instance and response headers
[0;36m93 |[0;0m func requestDataWithHeaders(_ request: URLRequest, completion: @escaping (_ result: Result<(Data, [String: String]), SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m95 |[0;0m {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:123:118: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m121 |[0;0m
[0;36m122 |[0;0m ///Send request and try parse as json
[0;36m123 |[0;0m func requestJson(_ request: URLRequest, completion: @escaping (_ result: Result<[String: Any], SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m124 |[0;0m let task = URLSession.shared.dataTask(with: request)
[0;36m125 |[0;0m {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:17:18: [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m let pathEncoded = method.path.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
[0;36m16 |[0;0m guard let url: URL = URL(string: method.baseURL + pathEncoded) else {return nil}
[0;36m17 |[0;0m var urlReq = [4;39mURLRequest[0;0m(url: url)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m urlReq.httpMethod = method.method
[0;36m19 |[0;0m urlReq.allHTTPHeaderFields = method.headers
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:39:27: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m37 |[0;0m ///Send request and try parse as base SPResponse
[0;36m38 |[0;0m func requestSPResponse(_ request: URLRequest, completion: @escaping (_ result: Result<SPResponse, SPError>) -> Void) -> URLSessionDataTask {
[0;36m39 |[0;0m let task = [4;39mURLSession[0;0m.[4;39mshared[0;0m.dataTask(with: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m40 |[0;0m {
[0;36m41 |[0;0m (data, response, error) in
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:65:27: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m63 |[0;0m ///Send request and try parse as Data instance
[0;36m64 |[0;0m func requestData(_ request: URLRequest, completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> URLSessionDataTask {
[0;36m65 |[0;0m let task = [4;39mURLSession[0;0m.[4;39mshared[0;0m.dataTask(with: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m66 |[0;0m {
[0;36m67 |[0;0m (data, response, error) in
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:94:27: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m92 |[0;0m ///Send request and try parse as pair of Data instance and response headers
[0;36m93 |[0;0m func requestDataWithHeaders(_ request: URLRequest, completion: @escaping (_ result: Result<(Data, [String: String]), SPError>) -> Void) -> URLSessionDataTask {
[0;36m94 |[0;0m let task = [4;39mURLSession[0;0m.[4;39mshared[0;0m.dataTask(with: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m95 |[0;0m {
[0;36m96 |[0;0m (data, response, error) in
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift:124:27: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m122 |[0;0m ///Send request and try parse as json
[0;36m123 |[0;0m func requestJson(_ request: URLRequest, completion: @escaping (_ result: Result<[String: Any], SPError>) -> Void) -> URLSessionDataTask {
[0;36m124 |[0;0m let task = [4;39mURLSession[0;0m.[4;39mshared[0;0m.dataTask(with: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m125 |[0;0m {
[0;36m126 |[0;0m (data, response, error) in
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Downloader.swift:14:128: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m
[0;36m13 |[0;0m ///Downloads any resource
[0;36m14 |[0;0m func download(headers: [String: String], fullPath: String, completion: @escaping (_ result: Result<Data, SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m guard let req = buildRequest(for: .download(headers: headers, fullPath: fullPath)) else {
[0;36m16 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Unable to build downloader request")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SwiftySpot/Network/Downloader.swift:24:159: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m22 |[0;0m
[0;36m23 |[0;0m ///Downloads any resource with response headers
[0;36m24 |[0;0m func downloadWithHeaders(headers: [String: String], fullPath: String, completion: @escaping (_ result: Result<(Data, [String: String]), SPError>) -> Void) -> [4;39mURLSessionDataTask[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m guard let req = buildRequest(for: .download(headers: headers, fullPath: fullPath)) else {
[0;36m26 |[0;0m completion(.failure(.badRequest(errCode: SPError.GeneralErrCode, description: "Unable to build downloader request")))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -filelist /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/sources-1 -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Model/Web/SPWebDuration.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Model/Web/SPWebPlayability.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Model/Web/SPWebPublisher.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiArtist.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiAuth.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiCollection.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiDownload.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLanding.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiLyrics.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiMetadata.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiPlaylist.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiProfile.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSearch.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSession.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/ApiSignup.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Client.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Downloader.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Error/ResponseError.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Error/SPError.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/SPResponse.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Target/ApiTarget+BaseUrl.swift -primary-file /host/spi-builder-workspace/Sources/SwiftySpot/Network/Target/ApiTarget+Body.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/supplementaryOutputs-21 -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftySpot -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SwiftySpot_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebDuration.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebPlayability.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebPublisher.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiArtist.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiAuth.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiCollection.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiDownload.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiLanding.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiLyrics.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiMetadata.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiPlaylist.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiProfile.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSearch.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSession.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSignup.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/Client.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/Downloader.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ResponseError.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPError.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPResponse.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiTarget+BaseUrl.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiTarget+Body.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebDuration.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebPlayability.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPWebPublisher.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiArtist.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiAuth.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiCollection.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiDownload.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiLanding.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiLyrics.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiMetadata.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiPlaylist.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiProfile.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSearch.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSession.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiSignup.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/Client.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/Downloader.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ResponseError.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPError.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/SPResponse.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiTarget+BaseUrl.o -index-unit-output-path /SwiftySpot.build/Debug-webassembly-wasm32/SwiftySpot-t.build/Objects-normal/wasm32/ApiTarget+Body.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm