The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Srt2BilibiliKit, reference 1.0.5 (c00687), with Swift 6.3 for macOS (SPM) on 10 Apr 2026 15:09:38 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: 1.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ApolloZhu/srt2bilibilikit
 * tag               1.0.5      -> FETCH_HEAD
HEAD is now at c00687f Ensure jazzy has xcodeproj
Cloned https://github.com/ApolloZhu/srt2bilibilikit.git
Revision (git rev-parse @):
c00687fe46624d019a8e2c450fb0982103d977f7
SUCCESS checkout https://github.com/ApolloZhu/srt2bilibilikit.git at 1.0.5
Fetching https://github.com/ApolloZhu/BilibiliKit
[1/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.94s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[1/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.99s)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (9cdf368)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (6a04f1e)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ApolloZhu/srt2bilibilikit.git
[1/584] Fetching srt2bilibilikit
Fetched https://github.com/ApolloZhu/srt2bilibilikit.git from cache (0.82s)
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.40s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.44s)
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
[3/9] Write Srt2Bilibili-cli-entitlement.plist
[3/9] Write sources
[5/9] Write swift-version--6988338F2F200930.txt
[7/28] Compiling BilibiliKit BKSession.swift
[8/28] Compiling BilibiliKit BKLoginHelper.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:72:43: error: closure captures 'process' before it is declared
 70 |             case .success(let url):
 71 |                 handleLoginInfo(url)
 72 |                 var process: () -> Void = { [weak self] in
    |                     |                     `- error: closure captures 'process' before it is declared
    |                     `- note: captured value declared here
 73 |                     guard let `self` = self, self.isRunLoopActive else { return }
 74 |                     self.fetchLoginInfo(oauthKey: url.oauthKey) { [weak self] result in
    :
 95 |                     DispatchQueue.global(qos: .userInitiated)
 96 |                         .asyncAfter(deadline: DispatchTime.now() + 3,
 97 |                                     execute: process)
    |                                              `- note: captured here
 98 |                 }
 99 |                 self?.everySecond(execute: process)
[9/28] Compiling BilibiliKit BKCookie.swift
[10/28] Emitting module BilibiliKit
BUILD FAILURE 6.3 macosSpm