The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

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

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/srt2bilibilikit.git
Reference: master
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/0/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/ApolloZhu/srt2bilibilikit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[1/9] Write Srt2Bilibili-cli-entitlement.plist
[1/9] Write sources
[5/9] Write swift-version--423B1241ED78D482.txt
[7/33] Compiling BilibiliKit BKVideo.swift
[8/33] Compiling BilibiliKit BKVideo+Page.swift
[9/33] Compiling BilibiliKit URL+Extensions.swift
[10/33] Compiling BilibiliKit BKSession.swift
[11/33] Compiling BilibiliKit BKLoginHelper.swift
/Users/builder/builds/UKfvDsi8u/0/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/builder/builds/UKfvDsi8u/0/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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:100:46: note: captured here
                                    execute: process)
                                             ^
[12/34] Compiling BilibiliKit BKApp.swift
[13/34] Compiling BilibiliKit BKCookie.swift
[14/34] Emitting module BilibiliKit
[15/34] Compiling BilibiliKit BKVideo+Info.swift
[16/34] Compiling BilibiliKit URLSession+Extensions.swift
error: fatalError
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.16s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.16s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (c547aa4)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (0b6d2cc)
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version--423B1241ED78D482.txt
[2/21] Compiling BilibiliKit BKLoginHelper.swift
/Users/builder/builds/UKfvDsi8u/0/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/builder/builds/UKfvDsi8u/0/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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:100:46: note: captured here
                                    execute: process)
                                             ^
[3/21] Emitting module BilibiliKit
error: fatalError
BUILD FAILURE 5.10 macosSpm