The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BilibiliKit, reference 3.1.2 (0b4a24), with Swift 6.3 for macOS (SPM) on 11 Apr 2026 15:37:28 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "bilibilikit",
      "name": "BilibiliKit",
      "url": "https://github.com/ApolloZhu/BilibiliKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BilibiliKit",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ApolloZhu/BilibiliKit.git
[1/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit.git from cache (0.82s)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit.git
Working copy of https://github.com/ApolloZhu/BilibiliKit.git resolved at 3.1.2 (0b4a247)
warning: '.resolve-product-dependencies': dependency 'bilibilikit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ApolloZhu/BilibiliKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[4/7] Write swift-version--6988338F2F200930.txt
[6/15] Compiling BKFoundation BKApp.swift
[7/15] Compiling BKFoundation URLSession+Extensions.swift
[8/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 |     ///
[9/15] Compiling BKFoundation Either.swift
[10/15] Compiling BKFoundation BKError.swift
[11/15] Compiling BKFoundation BKSession.swift
[12/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 |     ///
[13/15] Compiling BKFoundation BKCookie.swift
[14/24] Compiling BKAudio BKAudio.swift
[15/24] Compiling BKAudio BKAudio+URLs.swift
[16/24] Compiling BKAudio BKAudio+Staff.swift
[17/24] Emitting module BKAudio
[18/24] Compiling BKAudio BKAudio+Info.swift
[19/24] Compiling BKSecurity MD5.swift
[20/24] Compiling BKSecurity RSA.swift
[21/24] Compiling BKSecurity BKSec.swift
[22/24] Emitting module BKSecurity
[23/42] Compiling BilibiliKit BKVideo+Page.swift
[24/42] Compiling BilibiliKit BKVideo+Stat.swift
[25/42] Compiling BilibiliKit BKVideo.swift
[26/43] Compiling BilibiliKit BKUser+Info.swift
[27/43] Compiling BilibiliKit BKUser+Relationship.swift
[28/43] Compiling BilibiliKit BKUpUser.swift
[29/43] Compiling BilibiliKit BKUser+AudioStat.swift
[30/43] Compiling BilibiliKit BKLiveRoom.swift
[31/43] Compiling BilibiliKit BKSession+PasswordLogin.swift
[32/43] Compiling BilibiliKit BKArticle+Info.swift
[33/43] Compiling BilibiliKit BKArticle.swift
[34/43] Emitting module BilibiliKit
[35/43] Compiling BilibiliKit BKCurrentUser.swift
[36/43] Compiling BilibiliKit BKLiveRoom+Info.swift
[37/43] Compiling BilibiliKit BKUser.swift
[38/43] Compiling BilibiliKit BKVideo+Info.swift
[39/43] 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)
[40/43] 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)
[41/43] Compiling BilibiliKit BilibiliKit.swift
BUILD FAILURE 6.3 macosSpm