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.1 for macOS (SPM) on 26 Apr 2025 20:27:23 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: 4.61.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
[3/292] Fetching wkwebviewjavascriptbridge
Fetched https://github.com/Lision/WKWebViewJavascriptBridge.git from cache (0.83s)
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.1
Building package at path:  $PWD
https://github.com/Lision/WKWebViewJavascriptBridge.git
https://github.com/Lision/WKWebViewJavascriptBridge.git
{
  "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"
}
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/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.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @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
3 |
/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.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @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
3 |
/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 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
    |                                                        `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/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 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
 89 | /*! @abstract A copy of the configuration with which the web view was
 90 |  initialized. */
 91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
    |                                                               `- note: property declared here
 92 |
 93 | /*! @abstract The web view's navigation delegate. */
/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.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @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
3 |
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
    |                                                        `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
 89 | /*! @abstract A copy of the configuration with which the web view was
 90 |  initialized. */
 91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
    |                                                               `- note: property declared here
 92 |
 93 | /*! @abstract The web view's navigation delegate. */
/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.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
  |                      `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/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 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
    |                                                        `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/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 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
 89 | /*! @abstract A copy of the configuration with which the web view was
 90 |  initialized. */
 91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
    |                                                               `- note: property declared here
 92 |
 93 | /*! @abstract The web view's navigation delegate. */
/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.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
  |                      `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
    |                                                        `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
 89 | /*! @abstract A copy of the configuration with which the web view was
 90 |  initialized. */
 91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
    |                                                               `- note: property declared here
 92 |
 93 | /*! @abstract The web view's navigation delegate. */
/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.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @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
3 |
/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 |     }
[4/6] Emitting module WKWebViewJavascriptBridge
[5/6] Compiling WKWebViewJavascriptBridge WKWebViewJavascriptBridgeJS.swift
[6/6] Compiling WKWebViewJavascriptBridge WKWebViewJavascriptBridgeBase.swift
/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 |         }
Build complete! (7.20s)
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.