The Swift Package Index logo.Swift Package Index

Build Information

Successful build of LNBitsKit, reference main (05d2d5), with Swift 6.1 for macOS (SPM) on 22 Jun 2025 10:43:20 UTC.

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlorianHubl/LNBitsKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FlorianHubl/LNBitsKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 05d2d5c Merge remote-tracking branch 'refs/remotes/origin/main'
Cloned https://github.com/FlorianHubl/LNBitsKit.git
Revision (git rev-parse @):
05d2d5c217d80b9211786ceb23cd49512b0ed1c7
SUCCESS checkout https://github.com/FlorianHubl/LNBitsKit.git at main
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:17:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
15 |         // Dependencies declare other packages that this package depends on.
16 |         // .package(url: /* package url */, from: "1.0.0"),
17 |         .package(
   |          `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/Package.swift:19:14: warning: 'branch' is deprecated
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated
20 |         )
21 |     ],
Fetching https://github.com/FlorianHubl/SwiftTor
[1/158] Fetching swifttor
Fetched https://github.com/FlorianHubl/SwiftTor from cache (1.64s)
Creating working copy for https://github.com/FlorianHubl/SwiftTor
Working copy of https://github.com/FlorianHubl/SwiftTor resolved at main (c210638)
========================================
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": "lnbitskit",
      "name": "LNBitsKit",
      "url": "https://github.com/FlorianHubl/LNBitsKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LNBitsKit",
      "dependencies": [
        {
          "identity": "swifttor",
          "name": "SwiftTor",
          "url": "https://github.com/FlorianHubl/SwiftTor",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftTor",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/FlorianHubl/LNBitsKit.git
[1/424] Fetching lnbitskit
Fetched https://github.com/FlorianHubl/LNBitsKit.git from cache (0.91s)
warning: 'lnbitskit': /Package.swift:17:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
15 |         // Dependencies declare other packages that this package depends on.
16 |         // .package(url: /* package url */, from: "1.0.0"),
17 |         .package(
   |          `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Package.swift:19:14: warning: 'branch' is deprecated
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated
20 |         )
21 |     ],
Fetching https://github.com/FlorianHubl/SwiftTor from cache
Fetched https://github.com/FlorianHubl/SwiftTor from cache (0.47s)
Creating working copy for https://github.com/FlorianHubl/SwiftTor
Working copy of https://github.com/FlorianHubl/SwiftTor resolved at main (c210638)
Creating working copy for https://github.com/FlorianHubl/LNBitsKit.git
Working copy of https://github.com/FlorianHubl/LNBitsKit.git resolved at main (05d2d5c)
warning: 'lnbitskit': /Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LNBitsKit/Package.swift:17:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
15 |         // Dependencies declare other packages that this package depends on.
16 |         // .package(url: /* package url */, from: "1.0.0"),
17 |         .package(
   |          `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LNBitsKit/Package.swift:19:14: warning: 'branch' is deprecated
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated
20 |         )
21 |     ],
warning: '.resolve-product-dependencies': dependency 'lnbitskit' is not used by any target
Found 1 product dependencies
  - SwiftTor
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/FlorianHubl/LNBitsKit.git
https://github.com/FlorianHubl/LNBitsKit.git
{
  "dependencies" : [
    {
      "identity" : "swifttor",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/FlorianHubl/SwiftTor"
    }
  ],
  "manifest_display_name" : "LNBitsKit",
  "name" : "LNBitsKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LNBitsKit",
      "targets" : [
        "LNBitsKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LNBitsKitTests",
      "module_type" : "SwiftTarget",
      "name" : "LNBitsKitTests",
      "path" : "Tests/LNBitsKitTests",
      "sources" : [
        "LNBitsKitTests.swift"
      ],
      "target_dependencies" : [
        "LNBitsKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LNBitsKit",
      "module_type" : "SwiftTarget",
      "name" : "LNBitsKit",
      "path" : "Sources/LNBitsKit",
      "product_dependencies" : [
        "SwiftTor"
      ],
      "product_memberships" : [
        "LNBitsKit"
      ],
      "sources" : [
        "LNBitsKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[2/4] Copying Tor.framework
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/7] Emitting module SwiftTor
[6/7] Compiling SwiftTor TorHelper.swift
[7/7] Compiling SwiftTor SwiftTor.swift
[8/9] Emitting module LNBitsKit
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:17:7: warning: non-final class 'TrustSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class TrustSession: NSObject, URLSessionDelegate {
    |       `- warning: non-final class 'TrustSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 18 |     public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 19 |            let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:561:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzReversedSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
548 |
549 |
550 | public struct BoltzReversedSubMarineSwap: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'BoltzReversedSubMarineSwap' conform to the 'Sendable' protocol
551 |     public let id, wallet: String
552 |     public let amount: Int
    :
559 |     public let redeemScript: String
560 |
561 |     public static let demo = BoltzReversedSubMarineSwap(id: "id", wallet: "wallet", amount: 21, onchainAddress: "onchainAddress", instantSettlement: true, time: 21, status: "status", boltzID: "boltzID", preimage: "preimage", claimPrivkey: "claimPrivkey", lockupAddress: "lockupAddress", invoice: "invoice", onchainAmount: 21, timeoutBlockHeight: 21, redeemScript: "redeemScript")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzReversedSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
562 |
563 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:588:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
577 | }
578 |
579 | public struct BoltzSubMarineSwap: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'BoltzSubMarineSwap' conform to the 'Sendable' protocol
580 |     public let id, wallet: String
581 |     public let amount: Int
    :
586 |     public let address, bip21, redeemScript: String
587 |
588 |     public static let demo = BoltzSubMarineSwap(id: "id", wallet: "wallet", amount: 21, paymentHash: "paymentHash", time: 21, status: "status", refundPrivkey: "refundPrivkey", refundAddress: "refundAddress", boltzID: "boltzID", expectedAmount: 21, timeoutBlockHeight: 21, address: "address", bip21: "bip21", redeemScript: "redeemScript")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
589 |
590 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:622:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNURLWithdraw' may have shared mutable state; this is an error in the Swift 6 language mode
608 | }
609 |
610 | public struct LNURLWithdraw: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'LNURLWithdraw' conform to the 'Sendable' protocol
611 |
612 |     public let id, wallet, title: String
    :
620 |     public let lnurl: String
621 |
622 |     public static let demo = LNURLWithdraw(id: "id", wallet: "wallet", title: "title", minWithdrawable: 1, maxWithdrawable: 21, uses: 1, waitTime: 1, isUnique: true, uniqueHash: "uniqueHash", k1: "k1", openTime: 1, used: 1, usescsv: "usescsv", number: 1, webhookURL: "webhookURL", lnurl: "lnurl")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNURLWithdraw' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
623 |
624 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:684:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'DecodedLNURL' may have shared mutable state; this is an error in the Swift 6 language mode
673 | }
674 |
675 | public struct DecodedLNURL: Codable, Hashable {
    |               `- note: consider making struct 'DecodedLNURL' conform to the 'Sendable' protocol
676 |     public let lnurl: String
677 |     public let kind: LNURLType
    :
682 |     public let descriptionHash: String?
683 |
684 |     public static let demo = DecodedLNURL(lnurl: "lnurl", kind: .pay, domain: "", callback: "")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'DecodedLNURL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
685 |
686 |     init(lnurl: String, kind: LNURLType, min: Int?, max: Int?, description: String?, domain: String, callback: String, descriptionHash: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:766:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'Invoice' may have shared mutable state; this is an error in the Swift 6 language mode
760 | }
761 |
762 | public struct Invoice: Codable, Hashable, Equatable {
    |               `- note: consider making struct 'Invoice' conform to the 'Sendable' protocol
763 |     public let checking_id, payment_hash, wallet_id, bolt11, status, memo, expiry, preimage, time, created_at, updated_at: String
764 |     public let amount, fee: Int
765 |
766 |     public static let demo = Invoice(checking_id: "checking_id", payment_hash: "payment_hash", wallet_id: "wallet_id", bolt11: "bolt11", status: "status", memo: "memo", expiry: "expiry", preimage: "preimage", time: "time", created_at: "created_at", updated_at: "updated_at", amount: 1, fee: 1)
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'Invoice' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
767 | }
768 |
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:866:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNBitsTransaction' may have shared mutable state; this is an error in the Swift 6 language mode
852 |     }
853 |
854 | public struct LNBitsTransaction: Codable, Hashable {
    |               `- note: consider making struct 'LNBitsTransaction' conform to the 'Sendable' protocol
855 |     public let checking_id: String
856 |     public let pending: Bool
    :
864 |     public let status: String
865 |
866 |     static public let demo = LNBitsTransaction(checking_id: "checking_id", pending: false, amount: 1, fee: 1, memo: "memo", time: 0, bolt11: "bolt11", preimage: "preimage", payment_hash: "payment_hash", expiry: 0, wallet_id: "wallet_id", status: "failed")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNBitsTransaction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
867 | }
868 |
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:880:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
878 | }
879 |
880 | extension String: Error {
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
881 |
882 | }
[9/9] Compiling LNBitsKit LNBitsKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:17:7: warning: non-final class 'TrustSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class TrustSession: NSObject, URLSessionDelegate {
    |       `- warning: non-final class 'TrustSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 18 |     public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 19 |            let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:561:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzReversedSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
548 |
549 |
550 | public struct BoltzReversedSubMarineSwap: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'BoltzReversedSubMarineSwap' conform to the 'Sendable' protocol
551 |     public let id, wallet: String
552 |     public let amount: Int
    :
559 |     public let redeemScript: String
560 |
561 |     public static let demo = BoltzReversedSubMarineSwap(id: "id", wallet: "wallet", amount: 21, onchainAddress: "onchainAddress", instantSettlement: true, time: 21, status: "status", boltzID: "boltzID", preimage: "preimage", claimPrivkey: "claimPrivkey", lockupAddress: "lockupAddress", invoice: "invoice", onchainAmount: 21, timeoutBlockHeight: 21, redeemScript: "redeemScript")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzReversedSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
562 |
563 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:588:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
577 | }
578 |
579 | public struct BoltzSubMarineSwap: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'BoltzSubMarineSwap' conform to the 'Sendable' protocol
580 |     public let id, wallet: String
581 |     public let amount: Int
    :
586 |     public let address, bip21, redeemScript: String
587 |
588 |     public static let demo = BoltzSubMarineSwap(id: "id", wallet: "wallet", amount: 21, paymentHash: "paymentHash", time: 21, status: "status", refundPrivkey: "refundPrivkey", refundAddress: "refundAddress", boltzID: "boltzID", expectedAmount: 21, timeoutBlockHeight: 21, address: "address", bip21: "bip21", redeemScript: "redeemScript")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'BoltzSubMarineSwap' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
589 |
590 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:622:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNURLWithdraw' may have shared mutable state; this is an error in the Swift 6 language mode
608 | }
609 |
610 | public struct LNURLWithdraw: Codable, Hashable, Identifiable {
    |               `- note: consider making struct 'LNURLWithdraw' conform to the 'Sendable' protocol
611 |
612 |     public let id, wallet, title: String
    :
620 |     public let lnurl: String
621 |
622 |     public static let demo = LNURLWithdraw(id: "id", wallet: "wallet", title: "title", minWithdrawable: 1, maxWithdrawable: 21, uses: 1, waitTime: 1, isUnique: true, uniqueHash: "uniqueHash", k1: "k1", openTime: 1, used: 1, usescsv: "usescsv", number: 1, webhookURL: "webhookURL", lnurl: "lnurl")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNURLWithdraw' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
623 |
624 |     enum CodingKeys: String, CodingKey {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:684:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'DecodedLNURL' may have shared mutable state; this is an error in the Swift 6 language mode
673 | }
674 |
675 | public struct DecodedLNURL: Codable, Hashable {
    |               `- note: consider making struct 'DecodedLNURL' conform to the 'Sendable' protocol
676 |     public let lnurl: String
677 |     public let kind: LNURLType
    :
682 |     public let descriptionHash: String?
683 |
684 |     public static let demo = DecodedLNURL(lnurl: "lnurl", kind: .pay, domain: "", callback: "")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'DecodedLNURL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
685 |
686 |     init(lnurl: String, kind: LNURLType, min: Int?, max: Int?, description: String?, domain: String, callback: String, descriptionHash: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:766:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'Invoice' may have shared mutable state; this is an error in the Swift 6 language mode
760 | }
761 |
762 | public struct Invoice: Codable, Hashable, Equatable {
    |               `- note: consider making struct 'Invoice' conform to the 'Sendable' protocol
763 |     public let checking_id, payment_hash, wallet_id, bolt11, status, memo, expiry, preimage, time, created_at, updated_at: String
764 |     public let amount, fee: Int
765 |
766 |     public static let demo = Invoice(checking_id: "checking_id", payment_hash: "payment_hash", wallet_id: "wallet_id", bolt11: "bolt11", status: "status", memo: "memo", expiry: "expiry", preimage: "preimage", time: "time", created_at: "created_at", updated_at: "updated_at", amount: 1, fee: 1)
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'Invoice' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
767 | }
768 |
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:866:23: warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNBitsTransaction' may have shared mutable state; this is an error in the Swift 6 language mode
852 |     }
853 |
854 | public struct LNBitsTransaction: Codable, Hashable {
    |               `- note: consider making struct 'LNBitsTransaction' conform to the 'Sendable' protocol
855 |     public let checking_id: String
856 |     public let pending: Bool
    :
864 |     public let status: String
865 |
866 |     static public let demo = LNBitsTransaction(checking_id: "checking_id", pending: false, amount: 1, fee: 1, memo: "memo", time: 0, bolt11: "bolt11", preimage: "preimage", payment_hash: "payment_hash", expiry: 0, wallet_id: "wallet_id", status: "failed")
    |                       |- warning: static property 'demo' is not concurrency-safe because non-'Sendable' type 'LNBitsTransaction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'demo' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
867 | }
868 |
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:880:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
878 | }
879 |
880 | extension String: Error {
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
881 |
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:140:16: warning: no calls to throwing functions occur within 'try' expression
138 |             print(r.bolt11)
139 |         }
140 |         return try r
    |                `- warning: no calls to throwing functions occur within 'try' expression
141 |     }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:272:19: warning: expression implicitly coerced from 'String?' to 'Any'
270 |         let a = try await requestType.request(request: request)
271 |         if debug == .all {
272 |             print(String(data: a.0, encoding: .utf8))
    |                   |- warning: expression implicitly coerced from 'String?' to 'Any'
    |                   |- note: provide a default value to avoid this warning
    |                   |- note: force-unwrap the value to avoid this warning
    |                   `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
273 |         }
274 |         let list = try JSONDecoder().decode(LNURLPayLinks.self, from: a.0)
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:444:9: warning: variable 'cl' was never mutated; consider changing to 'let' constant
442 | public func loginLNBits(url: String, username: String, password: String, tor: SwiftTor?, ssl: Bool = true) async throws -> LoginWallet {
443 |     let c = url.contains(".onion")
444 |     var cl: RequestType = ssl ? ClearnetRequest() : ClearnetTrustRequest()
    |         `- warning: variable 'cl' was never mutated; consider changing to 'let' constant
445 |     let d: RequestType  = c ? tor ?? SwiftTor() : cl
446 |     var request = URLRequest(url: URL(string: "\(url)\(LNBits.LNBitsRequest.login.rawValue)")!)
/Users/admin/builder/spi-builder-workspace/Sources/LNBitsKit/LNBitsKit.swift:889:9: warning: variable 'cl' was never mutated; consider changing to 'let' constant
887 |     let serverURL = convertToServer(input)
888 |     let c = serverURL.suffix(6) == ".onion"
889 |     var cl: RequestType = ssl ? ClearnetRequest() : ClearnetTrustRequest()
    |         `- warning: variable 'cl' was never mutated; consider changing to 'let' constant
890 |     let d: RequestType  = c ? tor ?? SwiftTor() : cl
891 |     print(url.absoluteString)
Build complete! (6.04s)
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:17:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
15 |         // Dependencies declare other packages that this package depends on.
16 |         // .package(url: /* package url */, from: "1.0.0"),
17 |         .package(
   |          `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/Package.swift:19:14: warning: 'branch' is deprecated
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated
20 |         )
21 |     ],
warning: 'swifttor': found 18 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-simulator/Tor.framework/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Versions/A/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Versions/A/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64/Tor.framework/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Versions/A/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Versions/A/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-simulator/Tor.framework/_CodeSignature/CodeResources
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Versions/Current/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Versions/Current/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Versions/Current/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Resources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64/Tor.framework/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-maccatalyst/Tor.framework/Versions/Current/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/ios-arm64_x86_64-simulator/Tor.framework/Info.plist
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swifttor",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/FlorianHubl/SwiftTor"
    }
  ],
  "manifest_display_name" : "LNBitsKit",
  "name" : "LNBitsKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LNBitsKit",
      "targets" : [
        "LNBitsKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LNBitsKitTests",
      "module_type" : "SwiftTarget",
      "name" : "LNBitsKitTests",
      "path" : "Tests/LNBitsKitTests",
      "sources" : [
        "LNBitsKitTests.swift"
      ],
      "target_dependencies" : [
        "LNBitsKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LNBitsKit",
      "module_type" : "SwiftTarget",
      "name" : "LNBitsKit",
      "path" : "Sources/LNBitsKit",
      "product_dependencies" : [
        "SwiftTor"
      ],
      "product_memberships" : [
        "LNBitsKit"
      ],
      "sources" : [
        "LNBitsKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:17:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
15 |         // Dependencies declare other packages that this package depends on.
16 |         // .package(url: /* package url */, from: "1.0.0"),
17 |         .package(
   |          `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/Package.swift:19:14: warning: 'branch' is deprecated
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated
20 |         )
21 |     ],
Done.