Build Information
Failed to build Srt2BilibiliKit, reference 1.0.5 (c00687
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 04:06:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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 (1.00s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs
[1/1022] Fetching swift_qrcodejs
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.95s)
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.96s)
Fetching https://github.com/ApolloZhu/BilibiliKit from cache
Fetched https://github.com/ApolloZhu/BilibiliKit from cache (0.52s)
Fetching https://github.com/ApolloZhu/swift_qrcodejs from cache
Fetched https://github.com/ApolloZhu/swift_qrcodejs from cache (0.48s)
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.0
Building package at path: $PWD
https://github.com/ApolloZhu/srt2bilibilikit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/9] Write sources
[4/9] Write Srt2Bilibili-cli-entitlement.plist
[5/9] Write swift-version--7754E27361AE5C74.txt
[7/28] Compiling swift_qrcodejs QRPatternLocator.swift
[8/29] Compiling swift_qrcodejs QRMode.swift
[9/29] Compiling swift_qrcodejs QRPolynomial.swift
[10/29] Emitting module swift_qrcodejs
[11/29] Compiling swift_qrcodejs QRRSBlock.swift
[12/29] Compiling BilibiliKit BKSession.swift
error: compile command failed due to signal 6 (use -v to see invocation)
[13/29] Compiling BilibiliKit BKCookie.swift
[14/29] Emitting module BilibiliKit
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKCookie.swift -primary-file /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift /Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKSession.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.swiftdeps -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -suppress-warnings -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -Xcc -F -Xcc /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name BilibiliKit -disable-clang-spi -target-sdk-version 15.1 -target-sdk-name macosx15.1 -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKLoginHelper.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
2. Compiling with effective version 4.1.50
3. While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for BilibiliKit)
4. While running pass #1095 SILFunctionTransform "TransferNonSendable" on SILFunction "@$s11BilibiliKit13BKLoginHelperC5login7session15handleLoginInfo0gH5StateyAA9BKSessionC_yAC0H3URLVcyAC0hJ0OctFyAC11FetchResult33_E7E49E147CBF33E81ED2B44F7753353FLLOy_AKGcfU_".
for expression at [/Users/admin/builder/spi-builder-workspace/.build/checkouts/BilibiliKit/Sources/BKLoginHelper.swift:68:23 - line:104:9] RangeText="{ [weak self] result in
switch result {
case .success(let url):
handleLoginInfo(url)
var process: () -> Void = { [weak self] in
guard let `self` = self, self.isRunLoopActive else { return }
self.fetchLoginInfo(oauthKey: url.oauthKey) { [weak self] result in
guard let `self` = self, self.isRunLoopActive else { return }
switch result {
case .success(let state):
switch state {
case .succeeded(cookie: let cookie):
self.interrupt()
session.cookie = cookie
case .expired:
self.interrupt()
default:
heartbeat()
}
handleLoginState(state)
case .errored:
debugPrint(result)
heartbeat()
}
}
}
func heartbeat() {
DispatchQueue.global(qos: .userInitiated)
.asyncAfter(deadline: DispatchTime.now() + 3,
execute: process)
}
self?.everySecond(execute: process)
case .errored:
debugPrint(result)
handleLoginState(.errored)
}
"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010a3669ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010a364c00 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010a366f78 SignalHandler(int) + 292
3 libsystem_platform.dylib 0x0000000184373584 _sigtramp + 56
4 libsystem_pthread.dylib 0x0000000184342c20 pthread_kill + 288
5 libsystem_c.dylib 0x000000018424fa30 abort + 180
6 swift-frontend 0x0000000105d4cfd8 swift::Partition::merge(swift::PartitionPrimitives::Element, swift::PartitionPrimitives::Element, bool) + 248
7 swift-frontend 0x00000001058d306c swift::RegionAnalysisFunctionInfo::RegionAnalysisFunctionInfo(swift::SILFunction*, swift::PostOrderFunctionInfo*) + 14308
8 swift-frontend 0x00000001058d5fa4 swift::RegionAnalysis::newFunctionAnalysis(swift::SILFunction*) + 56
9 swift-frontend 0x0000000105b1d0d4 (anonymous namespace)::TransferNonSendable::run() + 324
10 swift-frontend 0x0000000105b52988 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 3448
11 swift-frontend 0x0000000105b4ef6c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 11968
12 swift-frontend 0x0000000105b884b8 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
13 swift-frontend 0x0000000105b6be1c swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 412
14 swift-frontend 0x0000000105b6e598 swift::runSILDiagnosticPasses(swift::SILModule&) + 612
15 swift-frontend 0x00000001050e4fc4 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 84
16 swift-frontend 0x0000000104d0fcb0 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1376
17 swift-frontend 0x0000000104d0eebc swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 984
18 swift-frontend 0x0000000104d12174 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1684
19 swift-frontend 0x0000000104d10ea0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
20 swift-frontend 0x0000000104c97f64 swift::mainEntry(int, char const**) + 3680
21 dyld 0x0000000183fba0e0 start + 2360
[15/29] Compiling swift_qrcodejs BCHUtil.swift
[16/29] Compiling swift_qrcodejs Failed.swift
[17/29] Compiling swift_qrcodejs QRErrorCorrectLevel.swift
[18/29] Compiling swift_qrcodejs QRMaskPattern.swift
[19/29] Compiling swift_qrcodejs QRMath.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift_qrcodejs/Sources/QRCodeModel.swift:246:30: error: value of optional type '[Int]?' must be unwrapped to refer to member 'indices' of wrapped base type '[Int]'
244 | maxEcCount = max(maxEcCount, ecCount)
245 | dcdata[r] = [Int](repeating: 0, count: dcCount)
246 | for i in dcdata[r].indices {
| |- error: value of optional type '[Int]?' must be unwrapped to refer to member 'indices' of wrapped base type '[Int]'
| |- note: chain the optional using '?' to access member 'indices' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | dcdata[r][i] = Int(0xff & buffer.buffer[i + offset])
248 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift_qrcodejs/Sources/QRCodeModel.swift:255:30: error: value of optional type '[Int]?' must be unwrapped to refer to member 'indices' of wrapped base type '[Int]'
253 | let modPoly = rawPoly.moded(by: rsPoly)
254 | ecdata[r] = [Int](repeating: 0, count: rsPoly.count - 1)
255 | for i in ecdata[r].indices {
| |- error: value of optional type '[Int]?' must be unwrapped to refer to member 'indices' of wrapped base type '[Int]'
| |- note: chain the optional using '?' to access member 'indices' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
256 | let modIndex = i + modPoly.count - ecdata[r].count
257 | ecdata[r][i] = (modIndex >= 0) ? modPoly[modIndex] : 0
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift_qrcodejs/Sources/QRCodeModel.swift:268:32: error: value of optional type '[Int]?' must be unwrapped to refer to member 'count' of wrapped base type '[Int]'
266 | for i in 0..<maxDcCount {
267 | for r in rsBlocks.indices {
268 | if i < dcdata[r].count {
| |- error: value of optional type '[Int]?' must be unwrapped to refer to member 'count' of wrapped base type '[Int]'
| |- note: chain the optional using '?' to access member 'count' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
269 | data[index] = dcdata[r]![i]
270 | index += 1
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift_qrcodejs/Sources/QRCodeModel.swift:276:32: error: value of optional type '[Int]?' must be unwrapped to refer to member 'count' of wrapped base type '[Int]'
274 | for i in 0..<maxEcCount {
275 | for r in rsBlocks.indices {
276 | if i < ecdata[r].count {
| |- error: value of optional type '[Int]?' must be unwrapped to refer to member 'count' of wrapped base type '[Int]'
| |- note: chain the optional using '?' to access member 'count' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
277 | data[index] = ecdata[r]![i]
278 | index += 1
BUILD FAILURE 6.0 macosSpm