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

Successful build of WKWebViewJavascriptBridge, reference 1.2.3 (51cdc1), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 22:17:47 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Lision/WKWebViewJavascriptBridge.git
Reference: 1.2.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Lision/WKWebViewJavascriptBridge
 * tag               1.2.3      -> FETCH_HEAD
HEAD is now at 51cdc11 Merge pull request #37 from thomersch/master
Cloned https://github.com/Lision/WKWebViewJavascriptBridge.git
Revision (git rev-parse @):
51cdc110657e5ad469df712ca79632761d3fe11d
SUCCESS checkout https://github.com/Lision/WKWebViewJavascriptBridge.git at 1.2.3
========================================
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": "wkwebviewjavascriptbridge",
      "name": "WKWebViewJavascriptBridge",
      "url": "https://github.com/Lision/WKWebViewJavascriptBridge.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WKWebViewJavascriptBridge",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Lision/WKWebViewJavascriptBridge.git
[1/292] Fetching wkwebviewjavascriptbridge
Fetched https://github.com/Lision/WKWebViewJavascriptBridge.git from cache (0.96s)
Creating working copy for https://github.com/Lision/WKWebViewJavascriptBridge.git
Working copy of https://github.com/Lision/WKWebViewJavascriptBridge.git resolved at 1.2.3 (51cdc11)
warning: '.resolve-product-dependencies': dependency 'wkwebviewjavascriptbridge' 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/Lision/WKWebViewJavascriptBridge.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling WKWebViewJavascriptBridge WKWebViewJavascriptBridgeBase.swift
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridgeBase.swift:138:17: warning: capture of 'self' with non-sendable type 'WKWebViewJavascriptBridgeBase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 |
 23 | @available(iOS 9.0, *)
 24 | public class WKWebViewJavascriptBridgeBase: NSObject {
    |              `- note: class 'WKWebViewJavascriptBridgeBase' does not conform to the 'Sendable' protocol
 25 |     var isLogEnable = false
 26 |
    :
136 |         } else {
137 |             DispatchQueue.main.async {
138 |                 self.delegate?.evaluateJavascript(javascript: javascriptCommand)
    |                 `- warning: capture of 'self' with non-sendable type 'WKWebViewJavascriptBridgeBase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |             }
140 |         }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridgeBase.swift:138:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
136 |         } else {
137 |             DispatchQueue.main.async {
138 |                 self.delegate?.evaluateJavascript(javascript: javascriptCommand)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
139 |             }
140 |         }
[4/6] Compiling WKWebViewJavascriptBridge WKWebViewJavascriptBridgeJS.swift
[5/6] Compiling WKWebViewJavascriptBridge WKWebViewJavascriptBridge.swift
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:60:18: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 57 |
 58 |     // MARK: - Private Funcs
 59 |     private func flushMessageQueue() {
    |                  `- note: add '@MainActor' to make instance method 'flushMessageQueue()' part of global actor 'MainActor'
 60 |         webView?.evaluateJavaScript("WKWebViewJavascriptBridge._fetchQueue();") { (result, error) in
    |                  `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 61 |             if error != nil {
 62 |                 print("WKWebViewJavascriptBridge: WARNING: Error when trying to fetch data from WKWebView: \(String(describing: error))")
WebKit.WKWebView:46:26: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
 44 |     open func reloadFromOrigin() -> WKNavigation?
 45 |     open func stopLoading()
 46 |     @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)
    |                          `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
 47 |     open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any
 48 |     @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:66:13: warning: capture of 'self' with non-sendable type 'WKWebViewJavascriptBridge' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 |
 12 | @available(iOS 9.0, *)
 13 | public class WKWebViewJavascriptBridge: NSObject {
    |              `- note: class 'WKWebViewJavascriptBridge' does not conform to the 'Sendable' protocol
 14 |     public var isLogEnable: Bool {
 15 |         get {
    :
 64 |
 65 |             guard let resultStr = result as? String else { return }
 66 |             self.base.flush(messageQueueString: resultStr)
    |             `- warning: capture of 'self' with non-sendable type 'WKWebViewJavascriptBridge' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:71:54: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
    |                                                      `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
 73 |     }
WebKit.WKUserContentController:16:26: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
14 |     @available(swift, obsoleted: 3, renamed: "addScriptMessageHandler(_:contentWorld:name:)")
15 |     open func addScriptMessageHandlerWithReply(_ scriptMessageHandlerWithReply: any WKScriptMessageHandlerWithReply, contentWorld: WKContentWorld, name: String)
16 |     @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)
   |                          `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
17 |     @available(swift, obsoleted: 3, renamed: "add(_:name:)")
18 |     open func addScriptMessageHandler(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:71:32: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
    |                                `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
 73 |     }
WebKit.WKWebViewConfiguration:5:25: note: property declared here
 3 |     open var processPool: WKProcessPool { get set }
 4 |     open var preferences: WKPreferences { get set }
 5 |     @MainActor open var userContentController: WKUserContentController { get set }
   |                         `- note: property declared here
 6 |     @available(macOS 10.11, *)
 7 |     open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:71:18: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
    |                  `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
 73 |     }
WebKit.WKWebView:3:25: note: property declared here
  1 | @available(macOS 10.10, *)
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
    |                         `- note: property declared here
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:72:54: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
    |                                                      `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
WebKit.WKUserContentController:16:26: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
14 |     @available(swift, obsoleted: 3, renamed: "addScriptMessageHandler(_:contentWorld:name:)")
15 |     open func addScriptMessageHandlerWithReply(_ scriptMessageHandlerWithReply: any WKScriptMessageHandlerWithReply, contentWorld: WKContentWorld, name: String)
16 |     @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)
   |                          `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
17 |     @available(swift, obsoleted: 3, renamed: "add(_:name:)")
18 |     open func addScriptMessageHandler(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:72:32: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
    |                                `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
WebKit.WKWebViewConfiguration:5:25: note: property declared here
 3 |     open var processPool: WKProcessPool { get set }
 4 |     open var preferences: WKPreferences { get set }
 5 |     @MainActor open var userContentController: WKUserContentController { get set }
   |                         `- note: property declared here
 6 |     @available(macOS 10.11, *)
 7 |     open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:72:18: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     private func addScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'addScriptMessageHandlers()' part of global actor 'MainActor'
 71 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_InjectJavascript)
 72 |         webView?.configuration.userContentController.add(LeakAvoider(delegate: self), name: iOS_Native_FlushMessageQueue)
    |                  `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
WebKit.WKWebView:3:25: note: property declared here
  1 | @available(macOS 10.10, *)
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
    |                         `- note: property declared here
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:76:54: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
    |                                                      `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
 78 |     }
WebKit.WKUserContentController:24:15: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
22 |     @available(swift, obsoleted: 3, renamed: "removeScriptMessageHandler(forName:contentWorld:)")
23 |     open func removeScriptMessageHandlerForName(_ name: String, contentWorld: WKContentWorld)
24 |     open func removeScriptMessageHandler(forName name: String)
   |               `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
25 |     @available(swift, obsoleted: 3, renamed: "removeScriptMessageHandler(forName:)")
26 |     open func removeScriptMessageHandlerForName(_ name: String)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:76:32: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
    |                                `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
 78 |     }
WebKit.WKWebViewConfiguration:5:25: note: property declared here
 3 |     open var processPool: WKProcessPool { get set }
 4 |     open var preferences: WKPreferences { get set }
 5 |     @MainActor open var userContentController: WKUserContentController { get set }
   |                         `- note: property declared here
 6 |     @available(macOS 10.11, *)
 7 |     open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:76:18: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
    |                  `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
 78 |     }
WebKit.WKWebView:3:25: note: property declared here
  1 | @available(macOS 10.10, *)
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
    |                         `- note: property declared here
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:77:54: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
    |                                                      `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 78 |     }
 79 | }
WebKit.WKUserContentController:24:15: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
22 |     @available(swift, obsoleted: 3, renamed: "removeScriptMessageHandler(forName:contentWorld:)")
23 |     open func removeScriptMessageHandlerForName(_ name: String, contentWorld: WKContentWorld)
24 |     open func removeScriptMessageHandler(forName name: String)
   |               `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
25 |     @available(swift, obsoleted: 3, renamed: "removeScriptMessageHandler(forName:)")
26 |     open func removeScriptMessageHandlerForName(_ name: String)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:77:32: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
    |                                `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 78 |     }
 79 | }
WebKit.WKWebViewConfiguration:5:25: note: property declared here
 3 |     open var processPool: WKProcessPool { get set }
 4 |     open var preferences: WKPreferences { get set }
 5 |     @MainActor open var userContentController: WKUserContentController { get set }
   |                         `- note: property declared here
 6 |     @available(macOS 10.11, *)
 7 |     open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:77:18: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
 75 |     private func removeScriptMessageHandlers() {
    |                  `- note: add '@MainActor' to make instance method 'removeScriptMessageHandlers()' part of global actor 'MainActor'
 76 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_InjectJavascript)
 77 |         webView?.configuration.userContentController.removeScriptMessageHandler(forName: iOS_Native_FlushMessageQueue)
    |                  `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 78 |     }
 79 | }
WebKit.WKWebView:3:25: note: property declared here
  1 | @available(macOS 10.10, *)
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
    |                         `- note: property declared here
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:83:68: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
 80 |
 81 | extension WKWebViewJavascriptBridge: WKWebViewJavascriptBridgeBaseDelegate {
 82 |     func evaluateJavascript(javascript: String, completion: CompletionHandler) {
    |                                                 `- note: parameter 'completion' is implicitly non-sendable
 83 |         webView?.evaluateJavaScript(javascript, completionHandler: completion)
    |                                                                    `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
 84 |     }
 85 | }
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:83:18: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 80 |
 81 | extension WKWebViewJavascriptBridge: WKWebViewJavascriptBridgeBaseDelegate {
 82 |     func evaluateJavascript(javascript: String, completion: CompletionHandler) {
    |          `- note: add '@MainActor' to make instance method 'evaluateJavascript(javascript:completion:)' part of global actor 'MainActor'
 83 |         webView?.evaluateJavaScript(javascript, completionHandler: completion)
    |                  `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 84 |     }
 85 | }
WebKit.WKWebView:46:26: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
 44 |     open func reloadFromOrigin() -> WKNavigation?
 45 |     open func stopLoading()
 46 |     @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)
    |                          `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
 47 |     open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any
 48 |     @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/WKWebViewJavascriptBridge.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 64 |
 65 |             guard let resultStr = result as? String else { return }
 66 |             self.base.flush(messageQueueString: resultStr)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 67 |         }
 68 |     }
[6/6] Emitting module WKWebViewJavascriptBridge
Build complete! (9.97s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/WKWebViewJavascriptBridge/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WKWebViewJavascriptBridge",
  "name" : "WKWebViewJavascriptBridge",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "WKWebViewJavascriptBridge",
      "targets" : [
        "WKWebViewJavascriptBridge"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WKWebViewJavascriptBridge",
      "module_type" : "SwiftTarget",
      "name" : "WKWebViewJavascriptBridge",
      "path" : "WKWebViewJavascriptBridge",
      "product_memberships" : [
        "WKWebViewJavascriptBridge"
      ],
      "sources" : [
        "WKWebViewJavascriptBridge.swift",
        "WKWebViewJavascriptBridgeBase.swift",
        "WKWebViewJavascriptBridgeJS.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.