The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftWebBridge, reference 0.2.0 (0b5b0f), with Swift 6.1 for macOS (SPM) on 12 Jul 2026 00:01:51 UTC.

Swift 6 data race errors: 0

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: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AndrewPrifer/swift-web-bridge.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AndrewPrifer/swift-web-bridge
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 0b5b0f2 Release 0.2.0
Cloned https://github.com/AndrewPrifer/swift-web-bridge.git
Revision (git rev-parse @):
0b5b0f28917335b04b5a33a10ce0e9d5d25abba0
SUCCESS checkout https://github.com/AndrewPrifer/swift-web-bridge.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AndrewPrifer/swift-web-bridge.git
https://github.com/AndrewPrifer/swift-web-bridge.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftWebBridge",
  "name" : "SwiftWebBridge",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftWebBridge",
      "targets" : [
        "SwiftWebBridge"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftWebBridgeTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftWebBridgeTests",
      "path" : "Tests/SwiftWebBridgeTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftWebBridgeTests/Fixtures",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "WebViewBridgeTests.swift"
      ],
      "target_dependencies" : [
        "SwiftWebBridge"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftWebBridge",
      "module_type" : "SwiftTarget",
      "name" : "SwiftWebBridge",
      "path" : "Sources/SwiftWebBridge",
      "product_memberships" : [
        "SwiftWebBridge"
      ],
      "sources" : [
        "BridgeEventPayload.swift",
        "BridgeSubscribeModifier.swift",
        "BridgeSubscription.swift",
        "SyncedReactState.swift",
        "WebViewBridge.swift",
        "WebViewBridgeConfiguration.swift",
        "WebViewSource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling SwiftWebBridge WebViewSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWebBridge/WebViewSource.swift:59:29: warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 42 |     }
 43 |
 44 |     private func load(
    |                  `- note: add '@MainActor' to make instance method 'load(_:into:completion:)' part of global actor 'MainActor'
 45 |         _ source: WebViewSource,
 46 |         into webView: WKWebView,
    :
 57 |
 58 |                 if case let .file(indexURL, readAccessURL) = target {
 59 |                     webView.loadFileURL(
    |                             `- warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 60 |                         indexURL,
 61 |                         allowingReadAccessTo: readAccessURL
WebKit.WKWebView.loadFileURL:3:24: note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 10.11, *)
3 |   @MainActor open func loadFileURL(_ URL: URL, allowingReadAccessTo readAccessURL: URL) -> WKNavigation?}
  |                        `- note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWebBridge/WebViewSource.swift:71:21: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 42 |     }
 43 |
 44 |     private func load(
    |                  `- note: add '@MainActor' to make instance method 'load(_:into:completion:)' part of global actor 'MainActor'
 45 |         _ source: WebViewSource,
 46 |         into webView: WKWebView,
    :
 69 |
 70 |         case let .remote(url):
 71 |             webView.load(URLRequest(url: url))
    |                     `- warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 72 |             completion?(.success(.remote(url)))
 73 |
WebKit.WKWebView.load:2:22: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?}
  |                      `- note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWebBridge/WebViewSource.swift:101:27: warning: capture of 'self' with non-sendable type 'WebViewSourceLoader?' in a '@Sendable' closure
 28 | }
 29 |
 30 | public final class WebViewSourceLoader {
    |                    `- note: class 'WebViewSourceLoader' does not conform to the 'Sendable' protocol
 31 |     public let source: WebViewSource
 32 |
    :
 99 |         URLSession.shared.dataTask(with: request) { [weak self, weak webView] _, response, error in
100 |             DispatchQueue.main.async {
101 |                 guard let self, let webView else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'WebViewSourceLoader?' in a '@Sendable' closure
102 |
103 |                 if let httpResponse = response as? HTTPURLResponse,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWebBridge/WebViewSource.swift:107:72: warning: capture of 'completion' with non-sendable type '((Result<WebViewSourceLoadTarget, any Error>) -> Void)?' in a '@Sendable' closure
105 |                    error == nil
106 |                 {
107 |                     self.load(.remote(url), into: webView, completion: completion)
    |                                                                        |- warning: capture of 'completion' with non-sendable type '((Result<WebViewSourceLoadTarget, any Error>) -> Void)?' in a '@Sendable' closure
    |                                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
108 |                 } else {
109 |                     self.load(fallback, into: webView, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWebBridge/WebViewSource.swift:109:31: warning: capture of 'fallback' with non-sendable type 'WebViewSource' in a '@Sendable' closure
  2 | import WebKit
  3 |
  4 | public indirect enum WebViewSource {
    |                      `- note: consider making enum 'WebViewSource' conform to the 'Sendable' protocol
  5 |     case bundle(Bundle, subdirectory: String? = nil, indexFile: String = "index.html")
  6 |     case remote(URL)
    :
107 |                     self.load(.remote(url), into: webView, completion: completion)
108 |                 } else {
109 |                     self.load(fallback, into: webView, completion: completion)
    |                               `- warning: capture of 'fallback' with non-sendable type 'WebViewSource' in a '@Sendable' closure
110 |                 }
111 |             }
[4/10] Compiling SwiftWebBridge WebViewBridge.swift
[5/10] Compiling SwiftWebBridge BridgeEventPayload.swift
[6/10] Compiling SwiftWebBridge BridgeSubscribeModifier.swift
[7/10] Emitting module SwiftWebBridge
[8/10] Compiling SwiftWebBridge BridgeSubscription.swift
[9/10] Compiling SwiftWebBridge WebViewBridgeConfiguration.swift
[10/10] Compiling SwiftWebBridge SyncedReactState.swift
Build complete! (8.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftWebBridge",
  "name" : "SwiftWebBridge",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftWebBridge",
      "targets" : [
        "SwiftWebBridge"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftWebBridgeTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftWebBridgeTests",
      "path" : "Tests/SwiftWebBridgeTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftWebBridgeTests/Fixtures",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "WebViewBridgeTests.swift"
      ],
      "target_dependencies" : [
        "SwiftWebBridge"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftWebBridge",
      "module_type" : "SwiftTarget",
      "name" : "SwiftWebBridge",
      "path" : "Sources/SwiftWebBridge",
      "product_memberships" : [
        "SwiftWebBridge"
      ],
      "sources" : [
        "BridgeEventPayload.swift",
        "BridgeSubscribeModifier.swift",
        "BridgeSubscription.swift",
        "SyncedReactState.swift",
        "WebViewBridge.swift",
        "WebViewBridgeConfiguration.swift",
        "WebViewSource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.