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: 1.0.5
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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
========================================
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
[3/9] Write Srt2Bilibili-cli-entitlement.plist
[3/9] Write sources
[5/9] Write swift-version--423B1241ED78D482.txt
[7/28] Compiling BilibiliKit BKLoginHelper.swift
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:72: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:72: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:97:46: note: captured here
execute: process)
^
[8/28] Compiling BilibiliKit BKSession.swift
[9/28] Emitting module BilibiliKit
[10/28] Compiling BilibiliKit BKCookie.swift
error: fatalError
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.17s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.14s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs
Working copy of https://github.com/ApolloZhu/swift_qrcodejs resolved at master (6a04f1e)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit
Working copy of https://github.com/ApolloZhu/BilibiliKit resolved at master (9cdf368)
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version--423B1241ED78D482.txt
[2/21] Emitting module BilibiliKit
[3/21] Compiling BilibiliKit BKLoginHelper.swift
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:72: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:72: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:97:46: note: captured here
execute: process)
^
error: fatalError
BUILD FAILURE 5.10 macosSpm