The Swift Package Index logo.Swift Package Index

Build Information

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

Swift 6 data race errors: 0

Build Command

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

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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/FlorianHubl/LNBitsKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[2/4] Copying Tor.framework
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/7] Compiling SwiftTor SwiftTor.swift
[6/7] Emitting module SwiftTor
[7/7] Compiling SwiftTor TorHelper.swift
[8/9] Emitting module LNBitsKit
/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: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! (7.63s)
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') [#DeprecatedDeclaration]
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') [#DeprecatedDeclaration]
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/Package.swift:19:14: warning: 'branch' is deprecated [#DeprecatedDeclaration]
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated [#DeprecatedDeclaration]
20 |         )
21 |     ],
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/FlorianHubl/SwiftTor
[1/158] Fetching swifttor
Fetched https://github.com/FlorianHubl/SwiftTor from cache (1.75s)
Creating working copy for https://github.com/FlorianHubl/SwiftTor
Working copy of https://github.com/FlorianHubl/SwiftTor resolved at main (c210638)
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/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/A/Tor
    /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/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/macos-arm64_x86_64/Tor.framework/Resources/Info.plist
    /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/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/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/Tor
    /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/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-simulator/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-maccatalyst/Tor.framework/Tor
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTor/Sources/SwiftTor/Tor.xcframework/macos-arm64_x86_64/Tor.framework/Versions/Current/Resources/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') [#DeprecatedDeclaration]
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') [#DeprecatedDeclaration]
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
/Users/admin/builder/spi-builder-workspace/Package.swift:19:14: warning: 'branch' is deprecated [#DeprecatedDeclaration]
17 |         .package(
18 |             url: "https://github.com/FlorianHubl/SwiftTor",
19 |             .branch("main")
   |              `- warning: 'branch' is deprecated [#DeprecatedDeclaration]
20 |         )
21 |     ],
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Done.