This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Srt2BilibiliKit with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/srt2bilibilikit.git
Reference: master
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/ApolloZhu/srt2bilibilikit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bb1bc27 Fix Danmaku Mode
Cloned https://github.com/ApolloZhu/srt2bilibilikit.git
Revision (git rev-parse @):
bb1bc27104698b6bcda5c3804be82693ce1fe01f
SUCCESS checkout https://github.com/ApolloZhu/srt2bilibilikit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ApolloZhu/srt2bilibilikit.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/ApolloZhu/BilibiliKit
[1/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.23s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[11/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.25s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (c547aa4)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (0b6d2cc)
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/35] Emitting module swift_qrcodejs
[7/36] Compiling swift_qrcodejs QRPatternLocator.swift
[8/36] Compiling swift_qrcodejs QRPolynomial.swift
[9/36] Compiling swift_qrcodejs QRCodeRenderer.swift
[10/36] Compiling swift_qrcodejs QRCodeType.swift
[11/36] Compiling swift_qrcodejs QRCode.swift
[12/36] Compiling swift_qrcodejs QRCodeModel.swift
[13/36] Compiling swift_qrcodejs QRErrorCorrectLevel.swift
[14/36] Compiling swift_qrcodejs QRMaskPattern.swift
[15/36] Compiling swift_qrcodejs QRMath.swift
[16/36] Compiling swift_qrcodejs QRMode.swift
[17/36] Compiling swift_qrcodejs QRRSBlock.swift
[18/36] Compiling swift_qrcodejs BCHUtil.swift
[19/36] Compiling swift_qrcodejs Failed.swift
[20/36] Compiling BilibiliKit URL+Extensions.swift
[21/37] Compiling swift_qrcodejs QR8bitByte.swift
[22/37] Compiling swift_qrcodejs QRBitBuffer.swift
[23/38] Compiling BilibiliKit BKVideo.swift
[24/38] Compiling BilibiliKit BKVideo+Page.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Page.swift:55:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
 53 |     public func pages(code: @escaping PagesHandler) {
 54 |         let pagesInfoURL = URL(string: "https://www.bilibili.com/widget/getPageList?aid=\(aid)")
 55 |         let task = URLSession.bk.dataTask(with: pagesInfoURL!)
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
 56 |         { data,_,_ in
 57 |             guard let data = data,
[25/38] Compiling BilibiliKit BKVideo+Info.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Info.swift:91:35: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
 89 |         BKApp.fetchKey {
 90 |             guard let key = $0 else { return handler(nil) }
 91 |             let task = URLSession.bk.dataTask(with: URL(string: base + key)!)
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
 92 |             { data,_,_ in
 93 |                 guard let data = data else { return handler(nil) }
[26/38] Compiling BilibiliKit URLSession+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |     #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
13 |     /// Shared url session, alias of URLSession.shared
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:17:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 |     #else
16 |     /// Shared url session, replacement for URLSession.shared
17 |     static let bk = URLSession(configuration: .default)
   |                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |     #endif
19 | }
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:17:48: error: cannot infer contextual base in reference to member 'default'
15 |     #else
16 |     /// Shared url session, replacement for URLSession.shared
17 |     static let bk = URLSession(configuration: .default)
   |                                                `- error: cannot infer contextual base in reference to member 'default'
18 |     #endif
19 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/38] Compiling BilibiliKit BKLoginHelper.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:112:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     private enum FetchResult<E>: CustomDebugStringConvertible {
111 |         case success(result: E)
112 |         case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         var debugDescription: String {
114 |             switch self {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:127:57: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
125 |                     description += "No Data"
126 |                 }
127 |                 description += "\nResponse: \(response?.description ?? "No Response")"
    |                                                         `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
128 |                 description += "\nError: \(error?.localizedDescription ?? "No Error")"
129 |                 return description
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:152:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
150 |     private func fetchLoginURL(handler: @escaping FetchResultHandler<LoginURL>) {
151 |         let url: URL = "https://passport.bilibili.com/qrcode/getLoginUrl"
152 |         let task = URLSession.bk.dataTask(with: url) { data, response, error in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
153 |             guard let body = data
154 |                 , let wrapper = try? JSONDecoder().decode(LoginURL.Wrapper.self, from: body)
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:156:58: error: argument type '_' expected to be an instance of a class or class-constrained type
154 |                 , let wrapper = try? JSONDecoder().decode(LoginURL.Wrapper.self, from: body)
155 |                 else { return handler(.errored(data: data,
156 |                                                response: response,
    |                                                          `- error: argument type '_' expected to be an instance of a class or class-constrained type
157 |                                                error: error)) }
158 |             return handler(.success(result: wrapper.data))
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
60 |     /// - Parameter url: the url to post to.
61 |     /// - Returns: post request to url with optinal cookie.
62 |     public func postRequest(to url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
63 |         var mutableRequest = request(to: url)
64 |         mutableRequest.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:209:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
207 |         /// Content-Type: application/x-www-form-urlencoded
208 |         request.httpBody = "oauthKey=\(oauthKey)".data(using: .utf8)
209 |         let task = URLSession.bk.dataTask(with: request)
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
210 |         { [weak self] data, response, error in
211 |             guard self?.isRunLoopActive == true else { return }
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:23: error: cannot infer type of closure parameter 'data' without a type annotation
208 |         request.httpBody = "oauthKey=\(oauthKey)".data(using: .utf8)
209 |         let task = URLSession.bk.dataTask(with: request)
210 |         { [weak self] data, response, error in
    |                       `- error: cannot infer type of closure parameter 'data' without a type annotation
211 |             guard self?.isRunLoopActive == true else { return }
212 |             if let response = response as? HTTPURLResponse,
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:29: error: cannot infer type of closure parameter 'response' without a type annotation
208 |         request.httpBody = "oauthKey=\(oauthKey)".data(using: .utf8)
209 |         let task = URLSession.bk.dataTask(with: request)
210 |         { [weak self] data, response, error in
    |                             `- error: cannot infer type of closure parameter 'response' without a type annotation
211 |             guard self?.isRunLoopActive == true else { return }
212 |             if let response = response as? HTTPURLResponse,
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:39: error: cannot infer type of closure parameter 'error' without a type annotation
208 |         request.httpBody = "oauthKey=\(oauthKey)".data(using: .utf8)
209 |         let task = URLSession.bk.dataTask(with: request)
210 |         { [weak self] data, response, error in
    |                                       `- error: cannot infer type of closure parameter 'error' without a type annotation
211 |             guard self?.isRunLoopActive == true else { return }
212 |             if let response = response as? HTTPURLResponse,
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:213:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
211 |             guard self?.isRunLoopActive == true else { return }
212 |             if let response = response as? HTTPURLResponse,
213 |                 let headerFields = response.allHeaderFields as? [String: String],
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
214 |                 let cookies = headerFields["Set-Cookie"] {
215 |                 guard let cookie = BKCookie(headerField: cookies) else {
[29/38] Emitting module BilibiliKit
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:112:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     private enum FetchResult<E>: CustomDebugStringConvertible {
111 |         case success(result: E)
112 |         case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         var debugDescription: String {
114 |             switch self {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
60 |     /// - Parameter url: the url to post to.
61 |     /// - Returns: post request to url with optinal cookie.
62 |     public func postRequest(to url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
63 |         var mutableRequest = request(to: url)
64 |         mutableRequest.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
71 |     /// - Parameter url: the url to request.
72 |     /// - Returns: request to url with optional cookie.
73 |     public func request(to url: URL) -> URLRequest {
   |                                         `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue("io.github.apollozhu.bilibilikit",
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 | import Foundation
10 |
11 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |     #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
13 |     /// Shared url session, alias of URLSession.shared
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift:18:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
16 |     public static func fetchKey(_ handler: @escaping (String?) -> Void) {
17 |         guard let regex = regex else { return handler(nil) }
18 |         let task = URLSession.bk.dataTask(with: playerURL)
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
19 |         { data,_,_ in
20 |             guard let data = data,
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift:18:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
16 |     public static func fetchKey(_ handler: @escaping (String?) -> Void) {
17 |         guard let regex = regex else { return handler(nil) }
18 |         let task = URLSession.bk.dataTask(with: playerURL)
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
19 |         { data,_,_ in
20 |             guard let data = data,
[32/38] Compiling BilibiliKit BKSession.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
60 |     /// - Parameter url: the url to post to.
61 |     /// - Returns: post request to url with optinal cookie.
62 |     public func postRequest(to url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
63 |         var mutableRequest = request(to: url)
64 |         mutableRequest.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
71 |     /// - Parameter url: the url to request.
72 |     /// - Returns: request to url with optional cookie.
73 |     public func request(to url: URL) -> URLRequest {
   |                                         `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue("io.github.apollozhu.bilibilikit",
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:74:23: error: cannot find 'URLRequest' in scope
72 |     /// - Returns: request to url with optional cookie.
73 |     public func request(to url: URL) -> URLRequest {
74 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
75 |         request.addValue("io.github.apollozhu.bilibilikit",
76 |                          forHTTPHeaderField: "User-Agent")
[32/38] Wrapping AST for swift_qrcodejs for debugging
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.