The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build BilibiliKit, reference 3.1.2 (0b4a24), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 14:05:38 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/BilibiliKit.git
Reference: 3.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ApolloZhu/BilibiliKit
 * tag               3.1.2      -> FETCH_HEAD
HEAD is now at 0b4a247 Use a less popular video for testing
Cloned https://github.com/ApolloZhu/BilibiliKit.git
Revision (git rev-parse @):
0b4a247ebd1414854703fba50064fc95292d4747
SUCCESS checkout https://github.com/ApolloZhu/BilibiliKit.git at 3.1.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ApolloZhu/BilibiliKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[4/7] Write swift-version-1EA4D86E10B52AF.txt
[6/15] Compiling BKFoundation Either.swift
[7/15] Compiling BKFoundation URL+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
[8/15] Compiling BKFoundation BKApp.swift
[9/15] Compiling BKFoundation BKError.swift
[10/15] Compiling BKFoundation BKCookie.swift
[11/15] Compiling BKFoundation BKSession.swift
[12/15] Compiling BKFoundation URLSession+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:115:24: warning: capture of non-sendable type 'Wrapper.Wrapped.Type' in an isolated closure
113 |         let task = URLSession._bk.dataTask(with: request) { data, res, err in
114 |             guard let data = data else {
115 |                 return handler(.failure(.responseError(
    |                        `- warning: capture of non-sendable type 'Wrapper.Wrapped.Type' in an isolated closure
116 |                     reason: .urlSessionError(err, response: res))))
117 |             }
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:111:14: warning: capture of non-sendable type 'Wrapper.Type' in an isolated closure
109 |         _ request: URLRequest,
110 |         unwrap wrapperType: Wrapper.Type,
111 |         then handler: @escaping BKHandler<Wrapper.Wrapped>)
    |              `- warning: capture of non-sendable type 'Wrapper.Type' in an isolated closure
112 |     {
113 |         let task = URLSession._bk.dataTask(with: request) { data, res, err in
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:120:18: warning: capture of non-sendable type 'Wrapper.Type' in an isolated closure
118 |             handler(Result { try JSONDecoder().decode(Wrapper.self, from: data) }
119 |                 .mapError { BKError.parseError(reason: .jsonDecode(data, failure: $0)) }
120 |                 .flatMap { wrapper in
    |                  `- warning: capture of non-sendable type 'Wrapper.Type' in an isolated closure
121 |                     wrapper.data.map(Result<Wrapper.Wrapped, BKError>.success)
122 |                         ?? (wrapper as? BKMessagedWrapper).map {
[13/15] Emitting module BKFoundation
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
[14/24] Compiling BKAudio BKAudio.swift
[15/24] Compiling BKAudio BKAudio+URLs.swift
[16/24] Compiling BKAudio BKAudio+Info.swift
[17/24] Compiling BKAudio BKAudio+Staff.swift
[18/24] Emitting module BKAudio
[19/24] Compiling BKSecurity RSA.swift
[20/24] Compiling BKSecurity BKSec.swift
[21/24] Compiling BKSecurity MD5.swift
[22/24] Emitting module BKSecurity
[23/42] Compiling BilibiliKit BKSession+QRCodeLoginHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:81:21: warning: variable 'process' was never mutated; consider changing to 'let' constant
 79 |             case .success(let url):
 80 |                 handleLoginInfo(url)
 81 |                 var process: () -> Void = { [weak self] in
    |                     `- warning: variable 'process' was never mutated; consider changing to 'let' constant
 82 |                     guard helper.isRunLoopActive else { return }
 83 |                     helper.fetchLoginInfo(oauthKey: url.oauthKey)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:81:43: error: closure captures 'process' before it is declared
 79 |             case .success(let url):
 80 |                 handleLoginInfo(url)
 81 |                 var process: () -> Void = { [weak self] in
    |                     |                     `- error: closure captures 'process' before it is declared
    |                     `- note: captured value declared here
 82 |                     guard helper.isRunLoopActive else { return }
 83 |                     helper.fetchLoginInfo(oauthKey: url.oauthKey)
    :
105 |                     DispatchQueue.global(qos: .userInitiated)
106 |                         .asyncAfter(deadline: DispatchTime.now() + 3,
107 |                                     execute: process)
    |                                              `- note: captured here
108 |                 }
109 |                 helper.everySecond(execute: process)
[24/42] Compiling BilibiliKit BKUpUser+Stat.swift
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:81:21: warning: variable 'process' was never mutated; consider changing to 'let' constant
 79 |             case .success(let url):
 80 |                 handleLoginInfo(url)
 81 |                 var process: () -> Void = { [weak self] in
    |                     `- warning: variable 'process' was never mutated; consider changing to 'let' constant
 82 |                     guard helper.isRunLoopActive else { return }
 83 |                     helper.fetchLoginInfo(oauthKey: url.oauthKey)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:81:43: error: closure captures 'process' before it is declared
 79 |             case .success(let url):
 80 |                 handleLoginInfo(url)
 81 |                 var process: () -> Void = { [weak self] in
    |                     |                     `- error: closure captures 'process' before it is declared
    |                     `- note: captured value declared here
 82 |                     guard helper.isRunLoopActive else { return }
 83 |                     helper.fetchLoginInfo(oauthKey: url.oauthKey)
    :
105 |                     DispatchQueue.global(qos: .userInitiated)
106 |                         .asyncAfter(deadline: DispatchTime.now() + 3,
107 |                                     execute: process)
    |                                              `- note: captured here
108 |                 }
109 |                 helper.everySecond(execute: process)
[25/43] Emitting module BilibiliKit
[26/43] Compiling BilibiliKit BKVideo.swift
[27/43] Compiling BilibiliKit BKVideo+Page.swift
[28/43] Compiling BilibiliKit BKVideo+Stat.swift
[29/43] Compiling BilibiliKit BilibiliKit.swift
[30/43] Compiling BilibiliKit BKArticle+Info.swift
[31/43] Compiling BilibiliKit BKArticle.swift
[32/43] Compiling BilibiliKit BKLiveRoom.swift
[33/43] Compiling BilibiliKit BKSession+PasswordLogin.swift
[34/43] Compiling BilibiliKit BKUpUser.swift
[35/43] Compiling BilibiliKit BKUser+AudioStat.swift
[36/43] Compiling BilibiliKit BKCurrentUser.swift
[37/43] Compiling BilibiliKit BKLiveRoom+Info.swift
[38/43] Compiling BilibiliKit BKUser+Info.swift
[39/43] Compiling BilibiliKit BKUser+Relationship.swift
[40/43] Compiling BilibiliKit BKUser.swift
[41/43] Compiling BilibiliKit BKVideo+Info.swift
BUILD FAILURE 6.2 macosSpm