The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Srt2BilibiliKit with Swift 5.9 for macOS (SPM).

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/srt2bilibilikit.git
Reference: master
Initialized empty Git repository in /Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-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 from cache
Fetched https://github.com/ApolloZhu/BilibiliKit (0.30s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs (0.25s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ApolloZhu/srt2bilibilikit.git
[1/584] Fetching srt2bilibilikit
Fetched https://github.com/ApolloZhu/srt2bilibilikit.git (0.27s)
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit (0.20s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs (0.16s)
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:             5.9
Building package at path:  $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/25] Compiling BilibiliKit BKVideo.swift
[2/26] Compiling BilibiliKit URLSession+Extensions.swift
[3/26] Compiling swift_qrcodejs QRMath.swift
[4/26] Compiling swift_qrcodejs QRMode.swift
[5/26] Compiling BilibiliKit URL+Extensions.swift
[6/26] Compiling BilibiliKit BKSession.swift
[7/26] Emitting module BilibiliKit
[8/26] Compiling BilibiliKit BKVideo+Info.swift
[9/26] Compiling BilibiliKit BKVideo+Page.swift
[10/26] Compiling BilibiliKit BKLoginHelper.swift
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:74:43: error: closure captures 'process' before it is declared
                var process: () -> Void = { [weak self] in
                                          ^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:74:21: note: captured value declared here
                var process: () -> Void = { [weak self] in
                    ^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:100:46: note: captured here
                                    execute: process)
                                             ^
error: fatalError
[0/1] Planning build
Building for debugging...
[1/18] Emitting module BilibiliKit
[2/18] Compiling BilibiliKit BKLoginHelper.swift
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:74:43: error: closure captures 'process' before it is declared
                var process: () -> Void = { [weak self] in
                                          ^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:74:21: note: captured value declared here
                var process: () -> Void = { [weak self] in
                    ^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:100:46: note: captured here
                                    execute: process)
                                             ^
error: fatalError
BUILD FAILURE 5.9 macosSpm