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 BilibiliKit, reference 3.1.2 (0b4a24), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 13:38:56 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/BilibiliKit.git
Reference: 3.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ApolloZhu/BilibiliKit
 * tag               3.1.2      -> FETCH_HEAD
HEAD is now at 0b4a247 Use a less popular video for testing
Cloned https://github.com/ApolloZhu/BilibiliKit.git
Revision (git rev-parse @):
0b4a247ebd1414854703fba50064fc95292d4747
SUCCESS checkout https://github.com/ApolloZhu/BilibiliKit.git at 3.1.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "bilibilikit",
      "name": "BilibiliKit",
      "url": "https://github.com/ApolloZhu/BilibiliKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BilibiliKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ApolloZhu/BilibiliKit.git
[12/1181] Fetching bilibilikit
Fetched https://github.com/ApolloZhu/BilibiliKit.git from cache (0.89s)
Creating working copy for https://github.com/ApolloZhu/BilibiliKit.git
Working copy of https://github.com/ApolloZhu/BilibiliKit.git resolved at 3.1.2 (0b4a247)
warning: '.resolve-product-dependencies': dependency 'bilibilikit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ApolloZhu/BilibiliKit.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[4/7] Write swift-version--7754E27361AE5C74.txt
[6/15] Compiling BKFoundation Either.swift
[7/15] Compiling BKFoundation URLSession+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
   :
34 |
35 |     /// The shared session
36 |     public static let shared = BKSession(identifier: "__BILIBILI_KIT_DEFAULT_SESSION__")
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 |     /// Initialize a new session.
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:115:24: warning: capture of 'handler' with non-sendable type 'BKHandler<Wrapper.Wrapped>' (aka '(Result<Wrapper.Wrapped, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 |         let task = URLSession._bk.dataTask(with: request) { data, res, err in
114 |             guard let data = data else {
115 |                 return handler(.failure(.responseError(
    |                        |- warning: capture of 'handler' with non-sendable type 'BKHandler<Wrapper.Wrapped>' (aka '(Result<Wrapper.Wrapped, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 |                     reason: .urlSessionError(err, response: res))))
117 |             }
[8/15] Compiling BKFoundation URL+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
[9/15] Compiling BKFoundation BKError.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:40:10: warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
26 |     }
27 |     /// Either you or @ApolloZhu is making dumb mistakes.
28 |     public enum ImplementationErrorReason {
   |                 `- note: consider making enum 'ImplementationErrorReason' conform to the 'Sendable' protocol
29 |         case invalidURL(String)
30 |         case invalidRegex(Error)
   :
38 |     }
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
   |          `- warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:41:10: warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
12 | public enum BKError: Error {
13 |     /// bilibili changed their API. Contact @ApolloZhu to update BilibiliKit.
14 |     public enum ParseErrorReason {
   |                 `- note: consider making enum 'ParseErrorReason' conform to the 'Sendable' protocol
15 |         case regexMatchNotFound
16 |         case stringDecodeFailure
   :
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
   |          `- warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:42:10: warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
19 |     }
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
   |                 `- note: consider making enum 'ResponseErrorReason' conform to the 'Sendable' protocol
22 |         case urlSessionError(Error?, response: URLResponse?)
23 |         case accessDenied
   :
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
   |          `- warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
43 |     case encryptError(reason: EncryptionErrorReason)
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:43:10: warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
33 |     }
34 |     /// Security framework related errors.
35 |     public enum EncryptionErrorReason {
   |                 `- note: consider making enum 'EncryptionErrorReason' conform to the 'Sendable' protocol
36 |         case publicKeySecKeyGenerationFailure(String)
37 |         case rsaEncryptFailure(String)
   :
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
   |          `- warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
44 | }
45 |
[10/15] Compiling BKFoundation BKApp.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKApp.swift:33:24: warning: capture of 'raise' with non-sendable type '(BKError) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |         let task = URLSession._bk.dataTask(with: playerURL) { data, res, err in
32 |             guard let data = data else {
33 |                 return raise(.responseError(
   |                        |- warning: capture of 'raise' with non-sendable type '(BKError) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 |                     reason: .urlSessionError(err, response: res)))
35 |             }
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKApp.swift:45:13: warning: capture of 'handler' with non-sendable type 'BKHandler<String>' (aka '(Result<String, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |             let matchedRange = Range(match.range(at: 1), in: raw)!
44 |             let key = raw[matchedRange]
45 |             handler(.success("\(key)"))
   |             |- warning: capture of 'handler' with non-sendable type 'BKHandler<String>' (aka '(Result<String, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
46 |         }
47 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKApp.swift:30:14: warning: concurrently-executed local function 'raise' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
28 |     /// - Important: No salt (secret for this key).
29 |     public static func fetchKey(_ handler: @escaping BKHandler<String>) {
30 |         func raise(_ error: BKError) { handler(.failure(error)) }
   |              `- warning: concurrently-executed local function 'raise' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
31 |         let task = URLSession._bk.dataTask(with: playerURL) { data, res, err in
32 |             guard let data = data else {
[11/15] Compiling BKFoundation BKCookie.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:37:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |     /// using https://github.com/dantmnf/biliupload/blob/master/getcookie.py ,
 36 |     /// and appending `;bili_jct=value of cookie named bili_jct` .
 37 |     public static var `default`: BKCookie! = BKCookie(path:
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         "\(FileManager.default.currentDirectoryPath)/\(filename)"
 39 |     )
[12/15] Compiling BKFoundation BKSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
   :
34 |
35 |     /// The shared session
36 |     public static let shared = BKSession(identifier: "__BILIBILI_KIT_DEFAULT_SESSION__")
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 |     /// Initialize a new session.
[13/15] Emitting module BKFoundation
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:37:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |     /// using https://github.com/dantmnf/biliupload/blob/master/getcookie.py ,
 36 |     /// and appending `;bili_jct=value of cookie named bili_jct` .
 37 |     public static var `default`: BKCookie! = BKCookie(path:
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         "\(FileManager.default.currentDirectoryPath)/\(filename)"
 39 |     )
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:40:10: warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
26 |     }
27 |     /// Either you or @ApolloZhu is making dumb mistakes.
28 |     public enum ImplementationErrorReason {
   |                 `- note: consider making enum 'ImplementationErrorReason' conform to the 'Sendable' protocol
29 |         case invalidURL(String)
30 |         case invalidRegex(Error)
   :
38 |     }
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
   |          `- warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:41:10: warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
12 | public enum BKError: Error {
13 |     /// bilibili changed their API. Contact @ApolloZhu to update BilibiliKit.
14 |     public enum ParseErrorReason {
   |                 `- note: consider making enum 'ParseErrorReason' conform to the 'Sendable' protocol
15 |         case regexMatchNotFound
16 |         case stringDecodeFailure
   :
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
   |          `- warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:42:10: warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
19 |     }
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
   |                 `- note: consider making enum 'ResponseErrorReason' conform to the 'Sendable' protocol
22 |         case urlSessionError(Error?, response: URLResponse?)
23 |         case accessDenied
   :
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
   |          `- warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
43 |     case encryptError(reason: EncryptionErrorReason)
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKError.swift:43:10: warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
33 |     }
34 |     /// Security framework related errors.
35 |     public enum EncryptionErrorReason {
   |                 `- note: consider making enum 'EncryptionErrorReason' conform to the 'Sendable' protocol
36 |         case publicKeySecKeyGenerationFailure(String)
37 |         case rsaEncryptFailure(String)
   :
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
   |          `- warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
   :
34 |
35 |     /// The shared session
36 |     public static let shared = BKSession(identifier: "__BILIBILI_KIT_DEFAULT_SESSION__")
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 |     /// Initialize a new session.
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
[14/24] Compiling BKAudio BKAudio+URLs.swift
[15/24] Compiling BKAudio BKAudio.swift
[16/24] Compiling BKAudio BKAudio+Staff.swift
[17/24] Compiling BKSecurity RSA.swift
[18/24] Emitting module BKAudio
[19/24] Compiling BKAudio BKAudio+Info.swift
[20/24] Compiling BKSecurity BKSec.swift
[21/24] Emitting module BKSecurity
[22/24] Compiling BKSecurity MD5.swift
[23/42] Compiling BilibiliKit BKVideo.swift
[24/43] Compiling BilibiliKit BKVideo+Page.swift
[25/43] Compiling BilibiliKit BKVideo+Stat.swift
[26/43] Compiling BilibiliKit BKUser+Info.swift
[27/43] Compiling BilibiliKit BKUser+Relationship.swift
[28/43] Compiling BilibiliKit BilibiliKit.swift
error: compile command failed due to signal 6 (use -v to see invocation)
[29/43] Compiling BilibiliKit BKUpUser.swift
[30/43] Compiling BilibiliKit BKUser+AudioStat.swift
[31/43] Compiling BilibiliKit BKLiveRoom.swift
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:71:28: warning: capture of 'handle' with non-sendable type 'BKHandler<BKCookie>' (aka '(Result<BKCookie, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 69 |                 [weak self] dat, res, err in
 70 |                 guard let data = dat, !data.isEmpty else {
 71 |                     return handle(.failure(.responseError(reason:
    |                            |- warning: capture of 'handle' with non-sendable type 'BKHandler<BKCookie>' (aka '(Result<BKCookie, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 72 |                         .urlSessionError(err, response: res))))
 73 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:83:32: warning: capture of 'self' with non-sendable type 'BKSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |                         return BKError.parseError(reason: .jsonDecode(data, failure: error))
 82 |                     }
 83 |                 } .map { [weak self] in
    |                                `- warning: capture of 'self' with non-sendable type 'BKSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |                     let cookie = BKCookie(_sequence: $0.data.cookie_info.cookies
 85 |                         .lazy.map { "\($0.name)=\($0.value)" })!
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:12:14: note: class 'BKSession' does not conform to the 'Sendable' protocol
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:103:24: warning: capture of 'handle' with non-sendable type 'BKHandler<BKSession.Encryption>' (aka '(Result<BKSession.Encryption, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |         let task = URLSession._bk.dataTask(with: url) { dat, res, err in
102 |             guard let data = dat else {
103 |                 return handle(.failure(.responseError(reason: .urlSessionError(err, response: res))))
    |                        |- warning: capture of 'handle' with non-sendable type 'BKHandler<BKSession.Encryption>' (aka '(Result<BKSession.Encryption, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
104 |             }
105 |             handle(Result { try JSONDecoder().decode(Encryption.self, from: data) }
[32/43] Compiling BilibiliKit BKSession+PasswordLogin.swift
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:71:28: warning: capture of 'handle' with non-sendable type 'BKHandler<BKCookie>' (aka '(Result<BKCookie, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 69 |                 [weak self] dat, res, err in
 70 |                 guard let data = dat, !data.isEmpty else {
 71 |                     return handle(.failure(.responseError(reason:
    |                            |- warning: capture of 'handle' with non-sendable type 'BKHandler<BKCookie>' (aka '(Result<BKCookie, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 72 |                         .urlSessionError(err, response: res))))
 73 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:83:32: warning: capture of 'self' with non-sendable type 'BKSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |                         return BKError.parseError(reason: .jsonDecode(data, failure: error))
 82 |                     }
 83 |                 } .map { [weak self] in
    |                                `- warning: capture of 'self' with non-sendable type 'BKSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |                     let cookie = BKCookie(_sequence: $0.data.cookie_info.cookies
 85 |                         .lazy.map { "\($0.name)=\($0.value)" })!
/Users/admin/builder/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:12:14: note: class 'BKSession' does not conform to the 'Sendable' protocol
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift:103:24: warning: capture of 'handle' with non-sendable type 'BKHandler<BKSession.Encryption>' (aka '(Result<BKSession.Encryption, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |         let task = URLSession._bk.dataTask(with: url) { dat, res, err in
102 |             guard let data = dat else {
103 |                 return handle(.failure(.responseError(reason: .urlSessionError(err, response: res))))
    |                        |- warning: capture of 'handle' with non-sendable type 'BKHandler<BKSession.Encryption>' (aka '(Result<BKSession.Encryption, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
104 |             }
105 |             handle(Result { try JSONDecoder().decode(Encryption.self, from: data) }
[33/43] Compiling BilibiliKit BKCurrentUser.swift
[34/43] Compiling BilibiliKit BKLiveRoom+Info.swift
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:30:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BKSession.QRCodeLoginHelper' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | extension BKSession {
 13 |     /// Manages login into bilibili with QRCode
 14 |     public class QRCodeLoginHelper {
    |                  `- note: class 'QRCodeLoginHelper' does not conform to the 'Sendable' protocol
 15 |         /// Initialize a new login helper.
 16 |         public init() { }
    :
 28 | extension BKSession.QRCodeLoginHelper {
 29 |     /// Default login helper
 30 |     public static let `default` = BKSession.QRCodeLoginHelper()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BKSession.QRCodeLoginHelper' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:34:24: warning: static property 'dummyTimer' is not concurrency-safe because non-'Sendable' type 'Timer' may have shared mutable state; this is an error in the Swift 6 language mode
 32 |     #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
 33 |     /// A dummpy helper that does nothing but indicating an internal state.
 34 |     private static let dummyTimer = Timer()
    |                        |- warning: static property 'dummyTimer' is not concurrency-safe because non-'Sendable' type 'Timer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'dummyTimer' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 35 |     #else
 36 |     /// A dummpy helper that does nothing but indicating an internal state.
Foundation.Timer:1:12: note: class 'Timer' does not conform to the 'Sendable' protocol
 1 | open class Timer : NSObject {
   |            `- note: class 'Timer' does not conform to the 'Sendable' protocol
 2 |     public /*not inherited*/ init(timeInterval ti: TimeInterval, invocation: NSInvocation, repeats yesOrNo: Bool)
 3 |     @available(*, unavailable, renamed: "init(timeInterval:invocation:repeats:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:52:22: warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 50 |         if #available(iOS 10.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *) {
 51 |             timer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true) {
 52 |                 _ in execute()
    |                      |- warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 53 |             }
 54 |             timer?.fire()
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:60:41: warning: capture of 'self' with non-sendable type 'BKSession.QRCodeLoginHelper?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 12 | extension BKSession {
 13 |     /// Manages login into bilibili with QRCode
 14 |     public class QRCodeLoginHelper {
    |                  `- note: class 'QRCodeLoginHelper' does not conform to the 'Sendable' protocol
 15 |         /// Initialize a new login helper.
 16 |         public init() { }
    :
 58 |                 DispatchQueue.global(qos: .userInteractive)
 59 |                     .asyncAfter(deadline: DispatchTime.now() + 1)
 60 |                     { [weak self] in if self?.isRunLoopActive == true { execute();loop() } }
    |                                         `- warning: capture of 'self' with non-sendable type 'BKSession.QRCodeLoginHelper?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 |             }
 62 |             loop()
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:60:73: warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 58 |                 DispatchQueue.global(qos: .userInteractive)
 59 |                     .asyncAfter(deadline: DispatchTime.now() + 1)
 60 |                     { [weak self] in if self?.isRunLoopActive == true { execute();loop() } }
    |                                                                         |- warning: capture of 'execute' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 61 |             }
 62 |             loop()
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:60:83: warning: capture of 'loop()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 58 |                 DispatchQueue.global(qos: .userInteractive)
 59 |                     .asyncAfter(deadline: DispatchTime.now() + 1)
 60 |                     { [weak self] in if self?.isRunLoopActive == true { execute();loop() } }
    |                                                                                   |- warning: capture of 'loop()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 61 |             }
 62 |             loop()
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:57:18: warning: concurrently-executed local function 'loop()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 55 |         } else {
 56 |             timer = BKSession.QRCodeLoginHelper.dummyTimer
 57 |             func loop() {
    |                  `- warning: concurrently-executed local function 'loop()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 58 |                 DispatchQueue.global(qos: .userInteractive)
 59 |                     .asyncAfter(deadline: DispatchTime.now() + 1)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:107:46: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
105 |                     DispatchQueue.global(qos: .userInitiated)
106 |                         .asyncAfter(deadline: DispatchTime.now() + 3,
107 |                                     execute: process)
    |                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
108 |                 }
109 |                 helper.everySecond(execute: process)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:81:21: warning: variable 'process' was never mutated; consider changing to 'let' constant
 79 |             case .success(let url):
 80 |                 handleLoginInfo(url)
 81 |                 var process: () -> Void = { [weak self] in
    |                     `- warning: variable 'process' was never mutated; consider changing to 'let' constant
 82 |                     guard helper.isRunLoopActive else { return }
 83 |                     helper.fetchLoginInfo(oauthKey: url.oauthKey)
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:136:24: warning: capture of 'handler' with non-sendable type 'BKHandler<BKSession.QRCodeLoginHelper.LoginURL>' (aka '(Result<BKSession.QRCodeLoginHelper.LoginURL, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 |         let task = URLSession._bk.dataTask(with: url) { data, response, error in
135 |             guard let data = data else {
136 |                 return handler(.failure(.responseError(
    |                        |- warning: capture of 'handler' with non-sendable type 'BKHandler<BKSession.QRCodeLoginHelper.LoginURL>' (aka '(Result<BKSession.QRCodeLoginHelper.LoginURL, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 |                     reason: .urlSessionError(error, response: response))))
138 |             }
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:197:19: warning: capture of 'self' with non-sendable type 'BKSession.QRCodeLoginHelper?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 12 | extension BKSession {
 13 |     /// Manages login into bilibili with QRCode
 14 |     public class QRCodeLoginHelper {
    |                  `- note: class 'QRCodeLoginHelper' does not conform to the 'Sendable' protocol
 15 |         /// Initialize a new login helper.
 16 |         public init() { }
    :
195 |         let task = URLSession._bk.dataTask(with: request)
196 |         { [weak self] data, res, error in
197 |             guard self?.isRunLoopActive == true else { return }
    |                   `- warning: capture of 'self' with non-sendable type 'BKSession.QRCodeLoginHelper?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |             if let response = res as? HTTPURLResponse,
199 |                 let headerFields = response.allHeaderFields as? [String: String],
/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:203:28: warning: capture of 'handler' with non-sendable type 'BKHandler<BKSession.QRCodeLoginHelper.LoginState>' (aka '(Result<BKSession.QRCodeLoginHelper.LoginState, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 |                 guard let cookie = BKCookie(headerField: cookies) else {
202 |                     debugPrint("Inconsistent Login Cookie State")
203 |                     return handler(.failure(.responseError(
    |                            |- warning: capture of 'handler' with non-sendable type 'BKHandler<BKSession.QRCodeLoginHelper.LoginState>' (aka '(Result<BKSession.QRCodeLoginHelper.LoginState, BKError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 |                         reason: .urlSessionError(error, response: res))))
205 |                 }
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/Sources/BilibiliKit/BKArticle+Info.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKArticle.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKCurrentUser.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKLiveRoom+Info.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKLiveRoom.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+PasswordLogin.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUpUser+Stat.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUpUser.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUser+AudioStat.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUser+Info.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUser+Relationship.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKUser.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKVideo+Info.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKVideo+Page.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKVideo+Stat.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKVideo.swift /Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BilibiliKit.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKSession+QRCodeLoginHelper.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKSession+QRCodeLoginHelper.swiftdeps -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKUpUser+Stat.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKUpUser+Stat.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 -swift-version 5 -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 -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -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/BKSession+QRCodeLoginHelper.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/BilibiliKit.build/BKUpUser+Stat.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 5.10
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for BilibiliKit)
4.	While running pass #1113 SILFunctionTransform "TransferNonSendable" on SILFunction "@$s12BKFoundation9BKSessionC11BilibiliKitE5login10withHelper15handleLoginInfo0hI5StateyAcDE06QRCodeiG0C_yAJ0I3URLVcyAJ0iK0OctFys6ResultOyAlA7BKErrorOGcfU_".
 for expression at [/Users/admin/builder/spi-builder-workspace/Sources/BilibiliKit/BKSession+QRCodeLoginHelper.swift:77:30 - line:114:9] RangeText="{ [weak self] result in
            switch result {
            case .success(let url):
                handleLoginInfo(url)
                var process: () -> Void = { [weak self] in
                    guard helper.isRunLoopActive else { return }
                    helper.fetchLoginInfo(oauthKey: url.oauthKey)
                    { [weak self] result in
                        guard let self = self, helper.isRunLoopActive else { return }
                        switch result {
                        case .success(let state):
                            switch state {
                            case .succeeded(cookie: let cookie):
                                helper.interrupt()
                                self.cookie = cookie
                            case .expired:
                                helper.interrupt()
                            default:
                                heartbeat()
                            }
                            handleLoginState(state)
                        case .failure(let error):
                            debugPrint(error)
                            heartbeat()
                        }
                    }
                }
                func heartbeat() {
                    DispatchQueue.global(qos: .userInitiated)
                        .asyncAfter(deadline: DispatchTime.now() + 3,
                                    execute: process)
                }
                helper.everySecond(execute: process)
            case .failure(let error):
                debugPrint(error)
                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           0x0000000109de69ac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000109de4c00 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000109de6f78 SignalHandler(int) + 292
3  libsystem_platform.dylib 0x0000000181aa3584 _sigtramp + 56
4  libsystem_pthread.dylib  0x0000000181a72c20 pthread_kill + 288
5  libsystem_c.dylib        0x000000018197fa30 abort + 180
6  swift-frontend           0x00000001057ccfd8 swift::Partition::merge(swift::PartitionPrimitives::Element, swift::PartitionPrimitives::Element, bool) + 248
7  swift-frontend           0x000000010535306c swift::RegionAnalysisFunctionInfo::RegionAnalysisFunctionInfo(swift::SILFunction*, swift::PostOrderFunctionInfo*) + 14308
8  swift-frontend           0x0000000105355fa4 swift::RegionAnalysis::newFunctionAnalysis(swift::SILFunction*) + 56
9  swift-frontend           0x000000010559d0d4 (anonymous namespace)::TransferNonSendable::run() + 324
10 swift-frontend           0x00000001055d2988 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 3448
11 swift-frontend           0x00000001055cef6c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 11968
12 swift-frontend           0x00000001056084b8 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
13 swift-frontend           0x00000001055ebe1c 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           0x00000001055ee598 swift::runSILDiagnosticPasses(swift::SILModule&) + 612
15 swift-frontend           0x0000000104b64fc4 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 84
16 swift-frontend           0x000000010478fcb0 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           0x000000010478eebc swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 984
18 swift-frontend           0x0000000104792174 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1684
19 swift-frontend           0x0000000104790ea0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
20 swift-frontend           0x0000000104717f64 swift::mainEntry(int, char const**) + 3680
21 dyld                     0x00000001816ea0e0 start + 2360
BUILD FAILURE 6.0 macosSpm