Build Information
Failed to build KKBOXOpenAPISwift, reference 1.1.7 (91650c), with Swift 6.4 for Wasm on 16 Sep 2026 07:46:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.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/KKBOX/OpenAPI-Swift.git
Reference: 1.1.7
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/KKBOX/OpenAPI-Swift
* tag 1.1.7 -> FETCH_HEAD
HEAD is now at 91650c3 Bumps to 1.1.7.
Cloned https://github.com/KKBOX/OpenAPI-Swift.git
Revision (git rev-parse @):
91650c30e578854e1815a0119e6da8c735c02ba9
SUCCESS checkout https://github.com/KKBOX/OpenAPI-Swift.git at 1.1.7
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/KKBOX/OpenAPI-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.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
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
[22 / 30] KKBOXOpenAPISwift
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:83:20: [1;33mwarning: [1;39mstatic property 'none' produces an empty option set[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m public let rawValue: Int
[0;36m83 |[0;0m public static let none = KKSearchType(rawValue: 0)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'none' produces an empty option set[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39muse [] to silence this warning[0;0m
[0;36m84 |[0;0m /// Specify that we are searching for artists.
[0;36m85 |[0;0m public static let artist = KKSearchType(rawValue: 1 << 0)
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:142:20: [1;33mwarning: [1;39mstatic property 'none' produces an empty option set[0;0m
[0;36m140 |[0;0m public let rawValue: Int
[0;36m141 |[0;0m /// Your client does not request any additional permission.
[0;36m142 |[0;0m public static let none = KKScope(rawValue: 0)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'none' produces an empty option set[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39muse [] to silence this warning[0;0m
[0;36m143 |[0;0m /// Your client requests the permission to access user profiles.
[0;36m144 |[0;0m public static let userProfile = KKScope(rawValue: 1 << 0)
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:247:32: [1;31merror: [1;39mno exact matches in call to instance method 'post'[0;0m
[0;36m245 |[0;0m didSet {
[0;36m246 |[0;0m if self.accessToken == nil {
[0;36m247 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogout, object: self)
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to instance method 'post'[0;0m
[0;36m248 |[0;0m } else {
[0;36m249 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogin, object: self)
FoundationEssentials.NotificationCenter.post:2:13: [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
[0;36m|[0;0m `- [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:13: [1;39mnote: [1;39mcandidate '(Message) -> ()' has 2 parameters, but context '(Message) -> ()' has 1[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate '(Message) -> ()' has 2 parameters, but context '(Message) -> ()' has 1[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:24: [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
[0;36m|[0;0m `- [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:24: [1;39mnote: [1;39mcandidate '@MainActor (Message) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate '@MainActor (Message) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1[0;0m
[0;36m3 |[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:247:44: [1;31merror: [1;39mreference to member 'KKBOXOpenAPIDidLogout' cannot be resolved without a contextual type[0;0m
[0;36m245 |[0;0m didSet {
[0;36m246 |[0;0m if self.accessToken == nil {
[0;36m247 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogout, object: self)
[0;36m|[0;0m `- [1;31merror: [1;39mreference to member 'KKBOXOpenAPIDidLogout' cannot be resolved without a contextual type[0;0m
[0;36m248 |[0;0m } else {
[0;36m249 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogin, object: self)
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:249:32: [1;31merror: [1;39mno exact matches in call to instance method 'post'[0;0m
[0;36m247 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogout, object: self)
[0;36m248 |[0;0m } else {
[0;36m249 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogin, object: self)
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to instance method 'post'[0;0m
[0;36m250 |[0;0m }
[0;36m251 |[0;0m }
FoundationEssentials.NotificationCenter.post:2:13: [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
[0;36m|[0;0m `- [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:13: [1;39mnote: [1;39mcandidate '(Message) -> ()' has 2 parameters, but context '(Message) -> ()' has 1[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate '(Message) -> ()' has 2 parameters, but context '(Message) -> ()' has 1[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:24: [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
[0;36m|[0;0m `- [1;39mnote: [1;39mincorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')[0;0m
[0;36m3 |[0;0m
FoundationEssentials.NotificationCenter.post:2:24: [1;39mnote: [1;39mcandidate '@MainActor (Message) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1[0;0m
[0;36m1 |[0;0m class NotificationCenter {
[0;36m2 |[0;0m @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate '@MainActor (Message) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1[0;0m
[0;36m3 |[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:249:44: [1;31merror: [1;39mreference to member 'KKBOXOpenAPIDidLogin' cannot be resolved without a contextual type[0;0m
[0;36m247 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogout, object: self)
[0;36m248 |[0;0m } else {
[0;36m249 |[0;0m NotificationCenter.default.post(name: .KKBOXOpenAPIDidLogin, object: self)
[0;36m|[0;0m `- [1;31merror: [1;39mreference to member 'KKBOXOpenAPIDidLogin' cannot be resolved without a contextual type[0;0m
[0;36m250 |[0;0m }
[0;36m251 |[0;0m }
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:301:125: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m299 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m300 |[0;0m /// - Throws: KKBOXOpenAPIError.failedToCreateClientCredential
[0;36m301 |[0;0m public func fetchAccessTokenByClientCredential(callback: @escaping (_ result: KKAPIResult<KKAccessToken>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m302 |[0;0m func makeClientCredential() -> String? {
[0;36m303 |[0;0m let base = "\(self.clientID):\(self.clientSecret)"
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:335:146: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m333 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m334 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m335 |[0;0m public func fetch(track ID: String, territory: KKTerritory = .taiwan, callback: @escaping (_ result: KKAPIResult<KKTrackInfo>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m336 |[0;0m let urlString = "\(KKBOXAPIPath)tracks/\(escape(ID))?territory=\(territory.toString())"
[0;36m337 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:356:146: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m354 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m355 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m356 |[0;0m public func fetch(album ID: String, territory: KKTerritory = .taiwan, callback: @escaping (_ result: KKAPIResult<KKAlbumInfo>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m357 |[0;0m let urlString = "\(KKBOXAPIPath)albums/\(escape(ID))?territory=\(territory.toString())"
[0;36m358 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:372:154: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m370 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m371 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m372 |[0;0m public func fetch(tracksInAlbum ID: String, territory: KKTerritory = .taiwan, callback: @escaping (_ result: KKAPIResult<KKTrackList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m373 |[0;0m let urlString = "\(KKBOXAPIPath)albums/\(escape(ID))/tracks?territory=\(territory.toString())"
[0;36m374 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:393:148: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m391 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m392 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m393 |[0;0m public func fetch(artist ID: String, territory: KKTerritory = .taiwan, callback: @escaping (_ result: KKAPIResult<KKArtistInfo>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m394 |[0;0m let urlString = "\(KKBOXAPIPath)artists/\(escape(ID))?territory=\(territory.toString())"
[0;36m395 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:411:196: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m409 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m410 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m411 |[0;0m public func fetch(albumsBelongToArtist ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 200, callback: @escaping (_ result: KKAPIResult<KKAlbumList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m412 |[0;0m let urlString = "\(KKBOXAPIPath)artists/\(escape(ID))/albums?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m413 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:429:193: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m427 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m428 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m429 |[0;0m public func fetch(topTracksOfArtist ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 200, callback: @escaping (_ result: KKAPIResult<KKTrackList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m430 |[0;0m let urlString = "\(KKBOXAPIPath)artists/\(escape(ID))/top-tracks?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m431 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:447:198: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m445 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m446 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m447 |[0;0m public func fetch(relatedArtistsOfArtist ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 20, callback: @escaping (_ result: KKAPIResult<KKArtistList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m448 |[0;0m let urlString = "\(KKBOXAPIPath)artists/\(escape(ID))/related-artists?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m449 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:467:152: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m465 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m466 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m467 |[0;0m public func fetch(playlist ID: String, territory: KKTerritory = .taiwan, callback: @escaping (_ result: KKAPIResult<KKPlaylistInfo>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m468 |[0;0m let urlString = "\(KKBOXAPIPath)shared-playlists/\(escape(ID))?territory=\(territory.toString())"
[0;36m469 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:485:191: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m483 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m484 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m485 |[0;0m public func fetch(tracksInPlaylist ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 20, callback: @escaping (_ result: KKAPIResult<KKTrackList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m486 |[0;0m let urlString = "\(KKBOXAPIPath)shared-playlists/\(escape(ID))/tracks?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m487 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:506:183: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m504 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m505 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m506 |[0;0m public func fetchFeaturedPlaylists(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKPlaylistList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m507 |[0;0m let urlString = "\(KKBOXAPIPath)featured-playlists?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m508 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:527:181: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m525 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m526 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m527 |[0;0m public func fetchNewHitsPlaylists(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 10, callback: @escaping (_ result: KKAPIResult<KKPlaylistList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m528 |[0;0m let urlString = "\(KKBOXAPIPath)new-hits-playlists?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m529 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:548:208: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m546 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m547 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m548 |[0;0m public func fetchFeaturedPlaylistCategories(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKFeaturedPlaylistCategoryList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m549 |[0;0m let urlString = "\(KKBOXAPIPath)featured-playlist-categories?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m550 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:566:217: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m564 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m565 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m566 |[0;0m public func fetchFeaturedPlaylist(inCategory ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKFeaturedPlaylistCategory>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m567 |[0;0m let urlString = "\(KKBOXAPIPath)featured-playlist-categories/\(escape(ID))?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m568 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:587:182: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m585 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m586 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m587 |[0;0m public func fetchMoodStations(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKRadioStationList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m588 |[0;0m let urlString = "\(KKBOXAPIPath)mood-stations?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m589 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:605:198: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m603 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m604 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m605 |[0;0m public func fetch(tracksInMoodStation ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKRadioStation>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m606 |[0;0m let urlString = "\(KKBOXAPIPath)mood-stations/\(escape(ID))?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m607 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:624:183: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m622 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m623 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m624 |[0;0m public func fetchGenreStations(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKRadioStationList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m625 |[0;0m let urlString = "\(KKBOXAPIPath)genre-stations?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m626 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:642:199: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m640 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m641 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m642 |[0;0m public func fetch(tracksInGenreStation ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKRadioStation>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m643 |[0;0m let urlString = "\(KKBOXAPIPath)genre-stations/\(escape(ID))?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m644 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:663:209: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m661 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m662 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m663 |[0;0m public func fetchNewReleaseAlbumsCategories(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKNewReleasedAlbumsCategoryList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m664 |[0;0m let urlString = "\(KKBOXAPIPath)new-release-categories?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m665 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:681:222: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m679 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m680 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m681 |[0;0m public func fetch(newReleasedAlbumsUnderCategory ID: String, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 100, callback: @escaping (_ result: KKAPIResult<KKNewReleasedAlbumsCategory>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m682 |[0;0m let urlString = "\(KKBOXAPIPath)new-release-categories/\(escape(ID))?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m683 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:702:171: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m700 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m701 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m702 |[0;0m public func fetchCharts(territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 50, callback: @escaping (_ result: KKAPIResult<KKPlaylistList>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m703 |[0;0m let urlString = "\(KKBOXAPIPath)charts?territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m704 |[0;0m return try self.get(url: URL(string: urlString)!, callback: self.apiDataCallback(callback: callback))
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:725:210: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m723 |[0;0m /// - Returns: A URLSessionTask that you can use it to cancel current fetch.
[0;36m724 |[0;0m /// - Throws: KKBOXOpenAPIError.requireAccessToken.
[0;36m725 |[0;0m public func search(with keyword: String, types: KKSearchType, territory: KKTerritory = .taiwan, offset: Int = 0, limit: Int = 50, callback: @escaping (_ result: KKAPIResult<KKSearchResults>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m726 |[0;0m let urlString = "\(KKBOXAPIPath)search?q=\(escape_arg(keyword))&type=\(types.toString())&territory=\(territory.toString())&offset=\(offset)&limit=\(limit)"
[0;36m727 |[0;0m print(urlString)
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:794:91: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m792 |[0;0m
[0;36m793 |[0;0m extension KKBOXOpenAPI {
[0;36m794 |[0;0m private func connectionHandler(callback: @escaping (KKAPIResult<Data>) -> ()) -> (Data?, [4;39mURLResponse[0;0m?, Error?) -> () {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m795 |[0;0m return { data, response, error in
[0;36m796 |[0;0m if let error = error {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' 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 URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:823:143: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m821 |[0;0m }
[0;36m822 |[0;0m
[0;36m823 |[0;0m private func post(url: URL, postParameters: [AnyHashable: Any], headers: [String: String], callback: @escaping (KKAPIResult<Data>) -> ()) -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m824 |[0;0m var headers = headers
[0;36m825 |[0;0m headers["Content-type"] = "application/x-www-form-urlencoded"
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:832:120: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m830 |[0;0m }
[0;36m831 |[0;0m
[0;36m832 |[0;0m private func post(url: URL, data: Data?, headers: [String: String], callback: @escaping (KKAPIResult<Data>) -> ()) -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m833 |[0;0m var request = URLRequest(url: url)
[0;36m834 |[0;0m request.httpMethod = "POST"
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:845:86: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m843 |[0;0m }
[0;36m844 |[0;0m
[0;36m845 |[0;0m private func get(url: URL, callback: @escaping (KKAPIResult<Data>) -> ()) throws -> [4;39mURLSessionTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m846 |[0;0m guard let accessToken = self.accessToken else {
[0;36m847 |[0;0m throw KKBOXOpenAPIError.requireAccessToken
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' 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 URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift /host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPIPrivateTypes.swift /host/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPITypes.swift -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 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -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/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name KKBOXOpenAPISwift -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/KKBOXOpenAPISwift_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/Modules/KKBOXOpenAPISwift.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/Modules/KKBOXOpenAPISwift.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/KKBOXOpenAPISwift-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/KKBOXOpenAPISwift-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/KKBOXOpenAPISwift-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/KKBOXOpenAPISwift.build/Debug-webassembly-wasm32/KKBOXOpenAPISwift-t.build/Objects-normal/wasm32/Modules/KKBOXOpenAPISwift.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm