The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Srt2BilibiliKit, reference master (bb1bc2), with Swift 6.3 for macOS (SPM) on 10 Apr 2026 15:09: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/srt2bilibilikit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/ApolloZhu/BilibiliKit
[1/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.91s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[1/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.82s)
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)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ApolloZhu/srt2bilibilikit.git
[1/584] Fetching srt2bilibilikit
Fetched https://github.com/ApolloZhu/srt2bilibilikit.git from cache (0.77s)
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.45s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.40s)
error: could not find a branch named ‘master’ in https://github.com/ApolloZhu/swift_qrcodejs (did you mean ‘main’?)
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ApolloZhu/srt2bilibilikit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[2/9] Write Srt2Bilibili-cli-entitlement.plist
[3/9] Write sources
[5/9] Write swift-version--6988338F2F200930.txt
[7/34] Compiling BilibiliKit URL+Extensions.swift
[8/34] Compiling BilibiliKit BKSession.swift
[9/34] Compiling BilibiliKit URLSession+Extensions.swift
[10/34] Compiling BilibiliKit BKVideo.swift
[11/34] Compiling BilibiliKit BKVideo+Page.swift
[12/34] Compiling BilibiliKit BKVideo+Info.swift
[13/34] Compiling BilibiliKit BKApp.swift
[14/34] Compiling BilibiliKit BKCookie.swift
[15/34] Emitting module BilibiliKit
[16/34] Compiling BilibiliKit BKLoginHelper.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:74:43: error: closure captures 'process' before it is declared
 72 |             case .success(let url):
 73 |                 handleLoginInfo(url)
 74 |                 var process: () -> Void = { [weak self] in
    |                     |                     `- error: closure captures 'process' before it is declared
    |                     `- note: captured value declared here
 75 |                     guard let `self` = self, self.isRunLoopActive else { return }
 76 |                     self.fetchLoginInfo(oauthKey: url.oauthKey)
    :
 98 |                     DispatchQueue.global(qos: .userInitiated)
 99 |                         .asyncAfter(deadline: DispatchTime.now() + 3,
100 |                                     execute: process)
    |                                              `- note: captured here
101 |                 }
102 |                 self?.everySecond(execute: process)
BUILD FAILURE 6.3 macosSpm