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 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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:             5.10
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-5.10-latest swift build 2>&1
Fetching https://github.com/ApolloZhu/BilibiliKit
[1/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.25s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[1/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.23s)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (0b6d2cc)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (c547aa4)
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/35] Compiling swift_qrcodejs QRPatternLocator.swift
[7/35] Compiling swift_qrcodejs QRPolynomial.swift
[8/35] Compiling swift_qrcodejs BCHUtil.swift
[9/35] Compiling swift_qrcodejs Failed.swift
[10/36] Compiling swift_qrcodejs QRCode.swift
[11/36] Compiling swift_qrcodejs QRCodeModel.swift
[12/36] Compiling swift_qrcodejs QRMath.swift
[13/36] Compiling swift_qrcodejs QRMode.swift
[14/36] Compiling swift_qrcodejs QRCodeRenderer.swift
[15/36] Compiling swift_qrcodejs QRCodeType.swift
[16/36] Compiling swift_qrcodejs QRErrorCorrectLevel.swift
[17/36] Compiling swift_qrcodejs QRMaskPattern.swift
[18/36] Compiling swift_qrcodejs QRRSBlock.swift
[19/36] 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'
        let task = URLSession.bk.dataTask(with: pagesInfoURL!)
                   ~~~~~~~~~~ ^~
[20/37] 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'
            let task = URLSession.bk.dataTask(with: URL(string: base + key)!)
                       ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Info.swift:91:35: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
            let task = URLSession.bk.dataTask(with: URL(string: base + key)!)
                       ~~~~~~~~~~ ^~
[21/37] 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.
        case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:127:57: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
                description += "\nResponse: \(response?.description ?? "No Response")"
                                              ~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:152:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: url) { data, response, error in
                   ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:155:54: error: cannot convert value of type '_' to expected argument type 'Data?'
                else { return handler(.errored(data: data,
                                                     ^
/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
                                               response: response,
                                                         ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:209:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: request)
                   ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:23: error: cannot infer type of closure parameter 'data' without a type annotation
        { [weak self] data, response, error in
                      ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:29: error: cannot infer type of closure parameter 'response' without a type annotation
        { [weak self] data, response, error in
                            ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:39: error: cannot infer type of closure parameter 'error' without a type annotation
        { [weak self] data, response, error in
                                      ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:213:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                let headerFields = response.allHeaderFields as? [String: String],
                                   ~~~~~~~~ ^~~~~~~~~~~~~~~
[22/37] Emitting module swift_qrcodejs
[23/37] Compiling swift_qrcodejs QR8bitByte.swift
[24/37] Compiling swift_qrcodejs QRBitBuffer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/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.
        case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
    public func request(to url: URL) -> URLRequest {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift:18:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: playerURL)
                   ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift:18:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: playerURL)
                   ~~~~~~~~~~ ^~
[28/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
extension URLSession {
^         ~~~~~~~~~~
/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
    static let bk = URLSession(configuration: .default)
                    ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:17:48: error: cannot infer contextual base in reference to member 'default'
    static let bk = URLSession(configuration: .default)
                                              ~^~~~~~~
[30/38] Compiling BilibiliKit BKSession.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
    public func request(to url: URL) -> URLRequest {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:74:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[31/38] Compiling BilibiliKit BKVideo.swift
[32/38] Compiling BilibiliKit URL+Extensions.swift
error: fatalError
[32/38] Wrapping AST for swift_qrcodejs for debugging
[0/1] Planning build
Building for debugging...
[0/7] Write swift-version-24593BA9C3E375BF.txt
[1/7] Wrapping AST for swift_qrcodejs for debugging
[3/15] 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
extension URLSession {
^         ~~~~~~~~~~
/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
    static let bk = URLSession(configuration: .default)
                    ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:17:48: error: cannot infer contextual base in reference to member 'default'
    static let bk = URLSession(configuration: .default)
                                              ~^~~~~~~
[4/15] 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'
            let task = URLSession.bk.dataTask(with: URL(string: base + key)!)
                       ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKVideo+Info.swift:91:35: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
            let task = URLSession.bk.dataTask(with: URL(string: base + key)!)
                       ~~~~~~~~~~ ^~
[5/15] Compiling BilibiliKit BKSession.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
    public func request(to url: URL) -> URLRequest {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:74:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[6/15] 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'
        let task = URLSession.bk.dataTask(with: pagesInfoURL!)
                   ~~~~~~~~~~ ^~
[7/15] 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.
        case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:127:57: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
                description += "\nResponse: \(response?.description ?? "No Response")"
                                              ~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:152:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: url) { data, response, error in
                   ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:155:54: error: cannot convert value of type '_' to expected argument type 'Data?'
                else { return handler(.errored(data: data,
                                                     ^
/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
                                               response: response,
                                                         ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:209:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: request)
                   ~~~~~~~~~~ ^~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:23: error: cannot infer type of closure parameter 'data' without a type annotation
        { [weak self] data, response, error in
                      ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:29: error: cannot infer type of closure parameter 'response' without a type annotation
        { [weak self] data, response, error in
                            ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:210:39: error: cannot infer type of closure parameter 'error' without a type annotation
        { [weak self] data, response, error in
                                      ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:213:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                let headerFields = response.allHeaderFields as? [String: String],
                                   ~~~~~~~~ ^~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling BilibiliKit BKCookie.swift
[9/15] 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.
        case errored(data: Data?, response: URLResponse?, error: Swift.Error?)
                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:62:45: error: cannot find type 'URLRequest' in scope
    public func postRequest(to url: URL) -> URLRequest {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift:73:41: error: cannot find type 'URLRequest' in scope
    public func request(to url: URL) -> URLRequest {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/URLSession+Extensions.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
[10/15] Compiling BilibiliKit BKApp.swift
/host/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKApp.swift:18:31: error: type 'URLSession' (aka 'AnyObject') has no member 'bk'
        let task = URLSession.bk.dataTask(with: playerURL)
                   ~~~~~~~~~~ ^~
error: fatalError
BUILD FAILURE 5.10 linux