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 Erik, reference master (92c708), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:45:51 UTC.

Swift 6 data race errors: 5

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/phimage/Erik.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/phimage/Erik
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 92c7081 fix typo KanaParser to KannaParser
Cloned https://github.com/phimage/Erik.git
Revision (git rev-parse @):
92c7081ce6f5b4416cc238791e14960bc44fdbf7
SUCCESS checkout https://github.com/phimage/Erik.git at master
Fetching https://github.com/Thomvis/BrightFutures.git
Fetching https://github.com/tid-kijyun/Kanna.git
Fetching https://github.com/nvzqz/FileKit.git
[1/4067] Fetching brightfutures
[246/6348] Fetching brightfutures, kanna
[452/9471] Fetching brightfutures, kanna, filekit
Fetched https://github.com/Thomvis/BrightFutures.git from cache (1.70s)
Fetched https://github.com/nvzqz/FileKit.git from cache (1.70s)
Fetched https://github.com/tid-kijyun/Kanna.git from cache (1.70s)
Computing version for https://github.com/nvzqz/FileKit.git
Computed https://github.com/nvzqz/FileKit.git at 6.0.0 (0.57s)
Computing version for https://github.com/Thomvis/BrightFutures.git
Computed https://github.com/Thomvis/BrightFutures.git at 8.0.1 (0.57s)
Computing version for https://github.com/tid-kijyun/Kanna.git
Computed https://github.com/tid-kijyun/Kanna.git at 5.0.0 (0.66s)
Creating working copy for https://github.com/tid-kijyun/Kanna.git
Working copy of https://github.com/tid-kijyun/Kanna.git resolved at 5.0.0
Creating working copy for https://github.com/Thomvis/BrightFutures.git
Working copy of https://github.com/Thomvis/BrightFutures.git resolved at 8.0.1
Creating working copy for https://github.com/nvzqz/FileKit.git
Working copy of https://github.com/nvzqz/FileKit.git resolved at 6.0.0
========================================
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": "erik",
      "name": "Erik",
      "url": "https://github.com/phimage/Erik.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Erik",
      "dependencies": [
        {
          "identity": "kanna",
          "name": "Kanna",
          "url": "https://github.com/tid-kijyun/Kanna.git",
          "version": "5.3.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kanna",
          "dependencies": [
          ]
        },
        {
          "identity": "brightfutures",
          "name": "BrightFutures",
          "url": "https://github.com/Thomvis/BrightFutures.git",
          "version": "8.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BrightFutures",
          "dependencies": [
          ]
        },
        {
          "identity": "filekit",
          "name": "FileKit",
          "url": "https://github.com/nvzqz/FileKit.git",
          "version": "6.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FileKit",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/phimage/Erik.git
[13/642] Fetching erik
Fetched https://github.com/phimage/Erik.git from cache (0.82s)
Fetching https://github.com/nvzqz/FileKit.git from cache
Fetching https://github.com/tid-kijyun/Kanna.git from cache
Fetching https://github.com/Thomvis/BrightFutures.git from cache
Fetched https://github.com/nvzqz/FileKit.git from cache (0.45s)
Fetched https://github.com/tid-kijyun/Kanna.git from cache (0.55s)
Fetched https://github.com/Thomvis/BrightFutures.git from cache (0.55s)
Computing version for https://github.com/nvzqz/FileKit.git
Computed https://github.com/nvzqz/FileKit.git at 6.1.0 (0.02s)
Computing version for https://github.com/Thomvis/BrightFutures.git
Computed https://github.com/Thomvis/BrightFutures.git at 8.2.0 (0.55s)
Computing version for https://github.com/tid-kijyun/Kanna.git
Computed https://github.com/tid-kijyun/Kanna.git at 5.3.0 (0.55s)
Creating working copy for https://github.com/nvzqz/FileKit.git
Working copy of https://github.com/nvzqz/FileKit.git resolved at 6.1.0
Creating working copy for https://github.com/Thomvis/BrightFutures.git
Working copy of https://github.com/Thomvis/BrightFutures.git resolved at 8.2.0
Creating working copy for https://github.com/phimage/Erik.git
Working copy of https://github.com/phimage/Erik.git resolved at master (92c7081)
Creating working copy for https://github.com/tid-kijyun/Kanna.git
Working copy of https://github.com/tid-kijyun/Kanna.git resolved at 5.3.0
warning: '.resolve-product-dependencies': dependency 'erik' is not used by any target
Found 3 product dependencies
  - Kanna
  - BrightFutures
  - FileKit
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/phimage/Erik.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 -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
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/27] Compiling BrightFutures Result+BrightFutures.swift
[6/27] Compiling BrightFutures ResultProtocol.swift
[7/28] Compiling BrightFutures Promise.swift
[8/28] Compiling BrightFutures InvalidationToken.swift
[9/28] Compiling BrightFutures MutableAsyncType+ResultType.swift
[10/28] Compiling BrightFutures MutableAsyncType.swift
[11/28] Compiling BrightFutures NSOperationQueue+BrightFutures.swift
[12/28] Compiling BrightFutures Dispatch+BrightFutures.swift
[13/28] Compiling BrightFutures Errors.swift
[14/28] Compiling BrightFutures ExecutionContext.swift
[15/28] Compiling BrightFutures Future.swift
[16/28] Compiling BrightFutures AsyncType+ResultType.swift
[17/28] Compiling BrightFutures AsyncType.swift
[18/28] Emitting module BrightFutures
[19/28] Compiling BrightFutures Async.swift
[20/28] Compiling BrightFutures AsyncType+Debug.swift
[21/28] Compiling Kanna Deprecated.swift
[22/28] Compiling Kanna libxmlHTMLDocument.swift
[23/28] Compiling Kanna Kanna.swift
[24/28] Compiling Kanna libxmlHTMLNode.swift
[25/28] Emitting module Kanna
[26/28] Compiling Kanna CSS.swift
[27/28] Compiling Kanna libxmlParserOption.swift
[28/28] Compiling BrightFutures SequenceType+BrightFutures.swift
[29/33] Compiling Erik Future.swift
/Users/admin/builder/spi-builder-workspace/Sources/Future/Future.swift:122:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
120 | extension Form {
121 |
122 |     open func submitFuture() -> Future<Any?, FutureError> {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
123 |         let promise = Promise<Any?, FutureError>()
124 |
/Users/admin/builder/spi-builder-workspace/Sources/Future/Future.swift:140:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
138 |     }
139 |
140 |     open func resetFuture() -> Future<Any?, FutureError> {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
141 |         let promise = Promise<Any?, FutureError>()
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Erik.swift:169:23: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
 44 |
 45 | // Instance of headless browser
 46 | open class Erik {
    |            `- note: class 'Erik' does not conform to the 'Sendable' protocol
 47 |
 48 |     open var layoutEngine: LayoutEngine
    :
167 | extension Erik {
168 |     // Shared instance used for static functions
169 |     public static let sharedInstance = Erik()
    |                       |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'sharedInstance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 |     public static func visit(url: Foundation.URL, completionHandler: DocumentCompletionHandler?) {
[30/33] Compiling Erik Erik.swift
/Users/admin/builder/spi-builder-workspace/Sources/Erik.swift:169:23: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
 44 |
 45 | // Instance of headless browser
 46 | open class Erik {
    |            `- note: class 'Erik' does not conform to the 'Sendable' protocol
 47 |
 48 |     open var layoutEngine: LayoutEngine
    :
167 | extension Erik {
168 |     // Shared instance used for static functions
169 |     public static let sharedInstance = Erik()
    |                       |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'sharedInstance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 |     public static func visit(url: Foundation.URL, completionHandler: DocumentCompletionHandler?) {
/Users/admin/builder/spi-builder-workspace/Sources/Document.swift:31:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | import Kanna
 30 | class KannaParser: HTMLParser {
    |       `- note: class 'KannaParser' does not conform to the 'Sendable' protocol
 31 |     static let instance = KannaParser()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |
 33 |     func parse(_ html: String, encoding: String.Encoding) throws -> Document {
[31/33] Compiling Erik Document.swift
/Users/admin/builder/spi-builder-workspace/Sources/Document.swift:31:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | import Kanna
 30 | class KannaParser: HTMLParser {
    |       `- note: class 'KannaParser' does not conform to the 'Sendable' protocol
 31 |     static let instance = KannaParser()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |
 33 |     func parse(_ html: String, encoding: String.Encoding) throws -> Document {
/Users/admin/builder/spi-builder-workspace/Sources/Document.swift:38:16: warning: static property 'escapeJavaScript' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     }
 37 |
 38 |     static var escapeJavaScript: (String) -> String = {
    |                |- warning: static property 'escapeJavaScript' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'escapeJavaScript' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'escapeJavaScript' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         return $0.replacingOccurrences(of: "'", with: "\\'")
 40 |     }
[32/33] Emitting module Erik
/Users/admin/builder/spi-builder-workspace/Sources/Document.swift:31:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | import Kanna
 30 | class KannaParser: HTMLParser {
    |       `- note: class 'KannaParser' does not conform to the 'Sendable' protocol
 31 |     static let instance = KannaParser()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'KannaParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |
 33 |     func parse(_ html: String, encoding: String.Encoding) throws -> Document {
/Users/admin/builder/spi-builder-workspace/Sources/Document.swift:38:16: warning: static property 'escapeJavaScript' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     }
 37 |
 38 |     static var escapeJavaScript: (String) -> String = {
    |                |- warning: static property 'escapeJavaScript' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'escapeJavaScript' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'escapeJavaScript' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         return $0.replacingOccurrences(of: "'", with: "\\'")
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Erik.swift:169:23: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
 44 |
 45 | // Instance of headless browser
 46 | open class Erik {
    |            `- note: class 'Erik' does not conform to the 'Sendable' protocol
 47 |
 48 |     open var layoutEngine: LayoutEngine
    :
167 | extension Erik {
168 |     // Shared instance used for static functions
169 |     public static let sharedInstance = Erik()
    |                       |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Erik' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'sharedInstance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 |
171 |     public static func visit(url: Foundation.URL, completionHandler: DocumentCompletionHandler?) {
/Users/admin/builder/spi-builder-workspace/Sources/Future/Future.swift:122:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
120 | extension Form {
121 |
122 |     open func submitFuture() -> Future<Any?, FutureError> {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
123 |         let promise = Promise<Any?, FutureError>()
124 |
/Users/admin/builder/spi-builder-workspace/Sources/Future/Future.swift:140:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
138 |     }
139 |
140 |     open func resetFuture() -> Future<Any?, FutureError> {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
141 |         let promise = Promise<Any?, FutureError>()
142 |
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:173:16: warning: main actor-isolated property 'navigate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 56 | // Useful to know if currently in navigation processs
 57 | public protocol Navigable {
 58 |     var navigate: Bool {get set}
    |         `- note: 'navigate' declared here
 59 | }
 60 |
    :
169 |
170 | // MARK: WKNavigationDelegate
171 | open class LayoutEngineNavigationDelegate: NSObject, WKNavigationDelegate, Navigable {
    |                                                                            `- note: add '@preconcurrency' to the 'Navigable' conformance to defer isolation checking to run time
172 |
173 |     public var navigate: Bool = false
    |                `- warning: main actor-isolated property 'navigate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
174 |     public var lastError: Error?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:176:15: warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
174 |     public var lastError: Error?
175 |
176 |     open func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Swift.Void) {
    |               |- warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
    |               |- note: candidate has non-matching type '(WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> ()'
    |               `- note: move 'webView(_:decidePolicyFor:decisionHandler:)' to an extension to silence this warning
177 |         //self.navigate = true
178 |         decisionHandler(WKNavigationActionPolicy.allow)
WebKit.WKNavigationDelegate:3:30: note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 1 | @MainActor public protocol WKNavigationDelegate : NSObjectProtocol {
 2 |     @available(macOS 10.10, *)
 3 |     @MainActor optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping @MainActor @Sendable (WKNavigationActionPolicy) -> Void)
   |                              `- note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 4 |     @available(macOS 10.10, *)
 5 |     optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:421:16: warning: static property 'semaphores' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
419 |
420 | private struct SemaphorableKeys {
421 |     static let semaphores = UnsafeRawPointer(bitPattern: Selector(("semaphores")).hashValue)
    |                |- warning: static property 'semaphores' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'semaphores' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | extension Semaphorable {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[33/33] Compiling Erik LayoutEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:173:16: warning: main actor-isolated property 'navigate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 56 | // Useful to know if currently in navigation processs
 57 | public protocol Navigable {
 58 |     var navigate: Bool {get set}
    |         `- note: 'navigate' declared here
 59 | }
 60 |
    :
169 |
170 | // MARK: WKNavigationDelegate
171 | open class LayoutEngineNavigationDelegate: NSObject, WKNavigationDelegate, Navigable {
    |                                                                            `- note: add '@preconcurrency' to the 'Navigable' conformance to defer isolation checking to run time
172 |
173 |     public var navigate: Bool = false
    |                `- warning: main actor-isolated property 'navigate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
174 |     public var lastError: Error?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:176:15: warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
174 |     public var lastError: Error?
175 |
176 |     open func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Swift.Void) {
    |               |- warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
    |               |- note: candidate has non-matching type '(WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> ()'
    |               `- note: move 'webView(_:decidePolicyFor:decisionHandler:)' to an extension to silence this warning
177 |         //self.navigate = true
178 |         decisionHandler(WKNavigationActionPolicy.allow)
WebKit.WKNavigationDelegate:3:30: note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 1 | @MainActor public protocol WKNavigationDelegate : NSObjectProtocol {
 2 |     @available(macOS 10.10, *)
 3 |     @MainActor optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping @MainActor @Sendable (WKNavigationActionPolicy) -> Void)
   |                              `- note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 4 |     @available(macOS 10.10, *)
 5 |     optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:421:16: warning: static property 'semaphores' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
419 |
420 | private struct SemaphorableKeys {
421 |     static let semaphores = UnsafeRawPointer(bitPattern: Selector(("semaphores")).hashValue)
    |                |- warning: static property 'semaphores' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'semaphores' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | extension Semaphorable {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:77:44: warning: main actor-isolated property 'isLoading' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 75 |             switch self {
 76 |             case .isLoading:
 77 |                 return { return $0.webView.isLoading }
    |                                            `- warning: main actor-isolated property 'isLoading' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 78 |             case .estimatedProgress:
 79 |                 return { engine in
WebKit.WKWebView:32:25: note: property declared here
 30 |     @available(swift, obsoleted: 3, renamed: "url")
 31 |     open var URL: URL? { get }
 32 |     @MainActor open var isLoading: Bool { get }
    |                         `- note: property declared here
 33 |     @available(swift, obsoleted: 3, renamed: "isLoading")
 34 |     open var loading: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:80:60: warning: main actor-isolated property 'estimatedProgress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 78 |             case .estimatedProgress:
 79 |                 return { engine in
 80 |                     let estimatedProgress = engine.webView.estimatedProgress
    |                                                            `- warning: main actor-isolated property 'estimatedProgress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 81 |                     if engine.firstPageLoaded {
 82 |                          return estimatedProgress != 1.0
WebKit.WKWebView:35:14: note: property declared here
 33 |     @available(swift, obsoleted: 3, renamed: "isLoading")
 34 |     open var loading: Bool { get }
 35 |     open var estimatedProgress: Double { get }
    |              `- note: property declared here
 36 |     open var hasOnlySecureContent: Bool { get }
 37 |     @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:151:58: 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
149 |         self.webView = webView
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
    |                                                          `- 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
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
153 |
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/Sources/LayoutEngine.swift:151:36: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 |         self.webView = webView
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
    |                                    `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
153 |
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/Sources/LayoutEngine.swift:151:22: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 |         self.webView = webView
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
    |                      `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
153 |
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/Sources/LayoutEngine.swift:152:58: 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
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
    |                                                          `- 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
153 |
154 |         if self.webView.navigationDelegate == nil {
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/Sources/LayoutEngine.swift:152:36: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
    |                                    `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
153 |
154 |         if self.webView.navigationDelegate == nil {
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/Sources/LayoutEngine.swift:152:22: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
150 |         super.init()
151 |         self.webView.configuration.userContentController.add(self, name: JavascriptErrorHandler)
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
    |                      `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
153 |
154 |         if self.webView.navigationDelegate == nil {
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/Sources/LayoutEngine.swift:154:25: warning: main actor-isolated property 'navigationDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
152 |         self.webView.configuration.userContentController.add(self, name: JavascriptEndHandler)
153 |
154 |         if self.webView.navigationDelegate == nil {
    |                         `- warning: main actor-isolated property 'navigationDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
155 |             let delegate = LayoutEngineNavigationDelegate()
156 |             self.webView.navigationDelegate = delegate
WebKit.WKWebView:4:19: note: property declared here
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
    |                   `- note: property declared here
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
  6 |     @available(swift, obsoleted: 3, renamed: "uiDelegate")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:155:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
153 |
154 |         if self.webView.navigationDelegate == nil {
155 |             let delegate = LayoutEngineNavigationDelegate()
    |                            `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 |             self.webView.navigationDelegate = delegate
157 |             self.navigable = delegate
    :
169 |
170 | // MARK: WKNavigationDelegate
171 | open class LayoutEngineNavigationDelegate: NSObject, WKNavigationDelegate, Navigable {
    |                                                                                      `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
172 |
173 |     public var navigate: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:156:26: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 |         if self.webView.navigationDelegate == nil {
155 |             let delegate = LayoutEngineNavigationDelegate()
156 |             self.webView.navigationDelegate = delegate
    |                          `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 |             self.navigable = delegate
158 |             self.pageLoadedPolicy = .navigationDelegate
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
    |                   `- note: mutation of this property is only permitted within the actor
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
  6 |     @available(swift, obsoleted: 3, renamed: "uiDelegate")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:159:43: warning: main actor-isolated property 'navigationDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
157 |             self.navigable = delegate
158 |             self.pageLoadedPolicy = .navigationDelegate
159 |         } else if let navigable = webView.navigationDelegate as? Navigable {
    |                                           `- warning: main actor-isolated property 'navigationDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 |             self.navigable = navigable
161 |             self.pageLoadedPolicy = .navigationDelegate
WebKit.WKWebView:4:19: note: property declared here
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
    |                   `- note: property declared here
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
  6 |     @available(swift, obsoleted: 3, renamed: "uiDelegate")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:166:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 |
165 |     convenience init(frame: CGRect = CGRect(x: 0, y: 0, width: 1024, height: 768)) {
166 |         self.init(webView: WKWebView(frame: frame, configuration:  WKWebViewConfiguration()))
    |                            `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 |     }
168 | }
WebKit.WKWebView:9:12: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
  7 |     weak open var UIDelegate: (any WKUIDelegate)? { get set }
  8 |     open var backForwardList: WKBackForwardList { get }
  9 |     public init(frame: CGRect, configuration: WKWebViewConfiguration)
    |            `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
 10 |     public init?(coder: NSCoder)
 11 |     open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:166:68: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 |
165 |     convenience init(frame: CGRect = CGRect(x: 0, y: 0, width: 1024, height: 768)) {
166 |         self.init(webView: WKWebView(frame: frame, configuration:  WKWebViewConfiguration()))
    |                                                                    `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 |     }
168 | }
WebKit.WKWebViewConfiguration:34:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
32 |     @available(macOS 15.0, *)
33 |     open var supportsAdaptiveImageGlyph: Bool { get set }
34 |     public init()
   |            `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
35 |     @available(macOS 10.10, *)
36 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:211:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 |     }
207 |
208 |     @nonobjc public func browse(urlRequest: Foundation.URLRequest, completionHandler: CompletionHandler?) {
    |                          `- note: add '@MainActor' to make instance method 'browse(urlRequest:completionHandler:)' part of global actor 'MainActor'
209 |         self.firstPageLoaded = true
210 |         self.navigable?.navigate = true
211 |         webView.load(urlRequest)
    |                 `- warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
212 |         self.currentContent(completionHandler: completionHandler)
213 |     }
WebKit.WKWebView:11:15: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
  9 |     public init(frame: CGRect, configuration: WKWebViewConfiguration)
 10 |     public init?(coder: NSCoder)
 11 |     open func load(_ request: URLRequest) -> WKNavigation?
    |               `- note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
 12 |     @available(swift, obsoleted: 3, renamed: "load(_:)")
 13 |     open func loadRequest(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:216:17: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 |     }
214 |
215 |     public func load(htmlString: String, baseURL: URL?) {
    |                 `- note: add '@MainActor' to make instance method 'load(htmlString:baseURL:)' part of global actor 'MainActor'
216 |         webView.loadHTMLString(htmlString, baseURL: baseURL)
    |                 `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
217 |     }
218 |
WebKit.WKWebView:19:15: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 17 |     @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
 18 |     open func loadFileURL(_ URL: URL, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation?
 19 |     open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
    |               `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 20 |     @available(macOS 10.11, *)
 21 |     open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:220:29: warning: main actor-isolated property 'url' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
218 |
219 |     public var url: URL? {
220 |         return self.webView.url
    |                             `- warning: main actor-isolated property 'url' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
221 |     }
222 |
WebKit.WKWebView:29:14: note: property declared here
 27 |     open func goToBackForwardListItem(_ item: WKBackForwardListItem) -> WKNavigation?
 28 |     open var title: String? { get }
 29 |     open var url: URL? { get }
    |              `- note: property declared here
 30 |     @available(swift, obsoleted: 3, renamed: "url")
 31 |     open var URL: URL? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:224:29: warning: main actor-isolated property 'title' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |
223 |     public var title: String? {
224 |         return self.webView.title
    |                             `- warning: main actor-isolated property 'title' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
225 |     }
226 |
WebKit.WKWebView:28:14: note: property declared here
 26 |     @available(swift, obsoleted: 3, renamed: "go(to:)")
 27 |     open func goToBackForwardListItem(_ item: WKBackForwardListItem) -> WKNavigation?
 28 |     open var title: String? { get }
    |              `- note: property declared here
 29 |     open var url: URL? { get }
 30 |     @available(swift, obsoleted: 3, renamed: "url")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:228:22: warning: call to main actor-isolated instance method 'goBack()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 |     }
226 |
227 |     public func goBack() {
    |                 `- note: add '@MainActor' to make instance method 'goBack()' part of global actor 'MainActor'
228 |         self.webView.goBack()
    |                      `- warning: call to main actor-isolated instance method 'goBack()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
229 |     }
230 |     public func goForward() {
WebKit.WKWebView:41:15: note: calls to instance method 'goBack()' from outside of its actor context are implicitly asynchronous
 39 |     open var canGoBack: Bool { get }
 40 |     open var canGoForward: Bool { get }
 41 |     open func goBack() -> WKNavigation?
    |               `- note: calls to instance method 'goBack()' from outside of its actor context are implicitly asynchronous
 42 |     open func goForward() -> WKNavigation?
 43 |     open func reload() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:231:22: warning: call to main actor-isolated instance method 'goForward()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 |         self.webView.goBack()
229 |     }
230 |     public func goForward() {
    |                 `- note: add '@MainActor' to make instance method 'goForward()' part of global actor 'MainActor'
231 |         self.webView.goForward()
    |                      `- warning: call to main actor-isolated instance method 'goForward()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
232 |     }
233 |
WebKit.WKWebView:42:15: note: calls to instance method 'goForward()' from outside of its actor context are implicitly asynchronous
 40 |     open var canGoForward: Bool { get }
 41 |     open func goBack() -> WKNavigation?
 42 |     open func goForward() -> WKNavigation?
    |               `- note: calls to instance method 'goForward()' from outside of its actor context are implicitly asynchronous
 43 |     open func reload() -> WKNavigation?
 44 |     open func reloadFromOrigin() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:235:29: warning: main actor-isolated property 'canGoBack' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
233 |
234 |     public var canGoBack: Bool {
235 |         return self.webView.canGoBack
    |                             `- warning: main actor-isolated property 'canGoBack' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
236 |     }
237 |
WebKit.WKWebView:39:14: note: property declared here
 37 |     @available(macOS 10.12, *)
 38 |     open var serverTrust: SecTrust? { get }
 39 |     open var canGoBack: Bool { get }
    |              `- note: property declared here
 40 |     open var canGoForward: Bool { get }
 41 |     open func goBack() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:239:29: warning: main actor-isolated property 'canGoForward' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
237 |
238 |     public var canGoForward: Bool {
239 |         return self.webView.canGoForward
    |                             `- warning: main actor-isolated property 'canGoForward' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
240 |     }
241 |
WebKit.WKWebView:40:14: note: property declared here
 38 |     open var serverTrust: SecTrust? { get }
 39 |     open var canGoBack: Bool { get }
 40 |     open var canGoForward: Bool { get }
    |              `- note: property declared here
 41 |     open func goBack() -> WKNavigation?
 42 |     open func goForward() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:243:22: warning: call to main actor-isolated instance method 'reload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
240 |     }
241 |
242 |     public func reload() {
    |                 `- note: add '@MainActor' to make instance method 'reload()' part of global actor 'MainActor'
243 |         self.webView.reload()
    |                      `- warning: call to main actor-isolated instance method 'reload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
244 |     }
245 |
WebKit.WKWebView:43:15: note: calls to instance method 'reload()' from outside of its actor context are implicitly asynchronous
 41 |     open func goBack() -> WKNavigation?
 42 |     open func goForward() -> WKNavigation?
 43 |     open func reload() -> WKNavigation?
    |               `- note: calls to instance method 'reload()' from outside of its actor context are implicitly asynchronous
 44 |     open func reloadFromOrigin() -> WKNavigation?
 45 |     open func stopLoading()
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:248:13: warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 |
 61 | import WebKit
 62 | open class WebKitLayoutEngine: NSObject, LayoutEngine {
    |            `- note: class 'WebKitLayoutEngine' does not conform to the 'Sendable' protocol
 63 |
 64 |     // Policy to detect page loading end
    :
246 |     public func currentContent(completionHandler: CompletionHandler?) {
247 |         waitLoadingQueue.async { [unowned self] in
248 |             self.handleLoadRequestCompletion { error in
    |             `- warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 if let error = error  {
250 |                     self.callBackQueue.asyncOrCurrent {
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:251:25: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 if let error = error  {
250 |                     self.callBackQueue.asyncOrCurrent {
251 |                         completionHandler?(nil, error)
    |                         |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
252 |                     }
253 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:250:21: warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in an isolated closure; this is an error in the Swift 6 language mode
 60 |
 61 | import WebKit
 62 | open class WebKitLayoutEngine: NSObject, LayoutEngine {
    |            `- note: class 'WebKitLayoutEngine' does not conform to the 'Sendable' protocol
 63 |
 64 |     // Policy to detect page loading end
    :
248 |             self.handleLoadRequestCompletion { error in
249 |                 if let error = error  {
250 |                     self.callBackQueue.asyncOrCurrent {
    |                     `- warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in an isolated closure; this is an error in the Swift 6 language mode
251 |                         completionHandler?(nil, error)
252 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:251:25: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
249 |                 if let error = error  {
250 |                     self.callBackQueue.asyncOrCurrent {
251 |                         completionHandler?(nil, error)
    |                         |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
252 |                     }
253 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:251:25: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
249 |                 if let error = error  {
250 |                     self.callBackQueue.asyncOrCurrent {
251 |                         completionHandler?(nil, error)
    |                         |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
252 |                     }
253 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:279:13: warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 |
 61 | import WebKit
 62 | open class WebKitLayoutEngine: NSObject, LayoutEngine {
    |            `- note: class 'WebKitLayoutEngine' does not conform to the 'Sendable' protocol
 63 |
 64 |     // Policy to detect page loading end
    :
277 |         javaScriptQueue.async { [unowned self] in
278 |
279 |             self.webView.evaluateJavaScript(self.javascriptToGetContent.javascript) { [unowned self] (obj, error) -> Void in
    |             `- warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
280 |                 self.javaScriptQueue.async {
281 |                     completionHandler?(obj, error)
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:281:21: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |             self.webView.evaluateJavaScript(self.javascriptToGetContent.javascript) { [unowned self] (obj, error) -> Void in
280 |                 self.javaScriptQueue.async {
281 |                     completionHandler?(obj, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
282 |                 }
283 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:279:26: 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
277 |         javaScriptQueue.async { [unowned self] in
278 |
279 |             self.webView.evaluateJavaScript(self.javascriptToGetContent.javascript) { [unowned self] (obj, error) -> Void 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
280 |                 self.javaScriptQueue.async {
281 |                     completionHandler?(obj, error)
WebKit.WKWebView:46:15: 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 |     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/Sources/LayoutEngine.swift:281:21: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |             self.webView.evaluateJavaScript(self.javascriptToGetContent.javascript) { [unowned self] (obj, error) -> Void in
280 |                 self.javaScriptQueue.async {
281 |                     completionHandler?(obj, error)
    |                     |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
282 |                 }
283 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:281:40: warning: capture of 'obj' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |             self.webView.evaluateJavaScript(self.javascriptToGetContent.javascript) { [unowned self] (obj, error) -> Void in
280 |                 self.javaScriptQueue.async {
281 |                     completionHandler?(obj, error)
    |                                        `- warning: capture of 'obj' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }
283 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:294:31: warning: main actor-isolated property 'processPool' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
285 |     }
286 |
287 |     public func clear() {
    |                 `- note: add '@MainActor' to make instance method 'clear()' part of global actor 'MainActor'
288 |         // try to remove all information
289 |         if let cookies = HTTPCookieStorage.shared.cookies {
    :
292 |             }
293 |         }
294 |         webView.configuration.processPool = WKProcessPool()
    |                               `- warning: main actor-isolated property 'processPool' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
295 |         // maybe reset url?
296 |     }
WebKit.WKWebViewConfiguration:3:14: note: mutation of this property is only permitted within the actor
 1 | @available(macOS 10.10, *)
 2 | @MainActor open class WKWebViewConfiguration : NSObject, NSSecureCoding, NSCopying {
 3 |     open var processPool: WKProcessPool { get set }
   |              `- note: mutation of this property is only permitted within the actor
 4 |     open var preferences: WKPreferences { get set }
 5 |     @MainActor open var userContentController: WKUserContentController { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:294:17: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
285 |     }
286 |
287 |     public func clear() {
    |                 `- note: add '@MainActor' to make instance method 'clear()' part of global actor 'MainActor'
288 |         // try to remove all information
289 |         if let cookies = HTTPCookieStorage.shared.cookies {
    :
292 |             }
293 |         }
294 |         webView.configuration.processPool = WKProcessPool()
    |                 `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
295 |         // maybe reset url?
296 |     }
WebKit.WKWebView:3:25: note: mutation of this property is only permitted within the actor
  1 | @available(macOS 10.10, *)
  2 | @MainActor open class WKWebView : NSView {
  3 |     @NSCopying open var configuration: WKWebViewConfiguration { get }
    |                         `- note: mutation of this property is only permitted within the actor
  4 |     weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
  5 |     weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:294:45: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
285 |     }
286 |
287 |     public func clear() {
    |                 `- note: add '@MainActor' to make instance method 'clear()' part of global actor 'MainActor'
288 |         // try to remove all information
289 |         if let cookies = HTTPCookieStorage.shared.cookies {
    :
292 |             }
293 |         }
294 |         webView.configuration.processPool = WKProcessPool()
    |                                             `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
295 |         // maybe reset url?
296 |     }
WebKit.WKProcessPool:3:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.10, *)
2 | @MainActor open class WKProcessPool : NSObject, NSSecureCoding {
3 |     @MainActor public init()
  |                       `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 |     @available(macOS 10.10, *)
5 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:319:40: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
303 | #endif
304 | extension WebKitLayoutEngine {
305 |    public func snapshot(_ size: CGSize) -> ErikImage? {
    |                `- note: add '@MainActor' to make instance method 'snapshot' part of global actor 'MainActor'
306 |         #if os(iOS)
307 |             if let capturedView: UIView = self.webView.snapshotView(afterScreenUpdates: false) {
    :
317 |             }
318 |         #elseif os(OSX)
319 |             if let view = self.webView.subviews.first,
    |                                        `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
AppKit.NSView:6:25: note: property declared here
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
  6 |     @MainActor open var subviews: [NSView] { get set }
    |                         `- note: property declared here
  7 |     open func isDescendant(of view: NSView) -> Bool
  8 |     @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:320:50: warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
303 | #endif
304 | extension WebKitLayoutEngine {
305 |    public func snapshot(_ size: CGSize) -> ErikImage? {
    |                `- note: add '@MainActor' to make instance method 'snapshot' part of global actor 'MainActor'
306 |         #if os(iOS)
307 |             if let capturedView: UIView = self.webView.snapshotView(afterScreenUpdates: false) {
    :
318 |         #elseif os(OSX)
319 |             if let view = self.webView.subviews.first,
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
    |                                                  `- warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
322 |                 let image = NSImage(size: size)
AppKit.NSView:212:26: note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
210 |     @available(swift, obsoleted: 3, renamed: "displayIgnoringOpacity(_:in:)")
211 |     open func displayRectIgnoringOpacity(_ rect: NSRect, inContext context: NSGraphicsContext)
212 |     @MainActor open func bitmapImageRepForCachingDisplay(in rect: NSRect) -> NSBitmapImageRep?
    |                          `- note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
213 |     @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 |     open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:320:91: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
303 | #endif
304 | extension WebKitLayoutEngine {
305 |    public func snapshot(_ size: CGSize) -> ErikImage? {
    |                `- note: add '@MainActor' to make instance method 'snapshot' part of global actor 'MainActor'
306 |         #if os(iOS)
307 |             if let capturedView: UIView = self.webView.snapshotView(afterScreenUpdates: false) {
    :
318 |         #elseif os(OSX)
319 |             if let view = self.webView.subviews.first,
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
    |                                                                                           `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
322 |                 let image = NSImage(size: size)
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:321:22: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
303 | #endif
304 | extension WebKitLayoutEngine {
305 |    public func snapshot(_ size: CGSize) -> ErikImage? {
    |                `- note: add '@MainActor' to make instance method 'snapshot' part of global actor 'MainActor'
306 |         #if os(iOS)
307 |             if let capturedView: UIView = self.webView.snapshotView(afterScreenUpdates: false) {
    :
319 |             if let view = self.webView.subviews.first,
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
    |                      `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
322 |                 let image = NSImage(size: size)
323 |                 image.addRepresentation(rep)
AppKit.NSView:215:26: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
213 |     @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 |     open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
215 |     @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)
    |                          `- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
216 |     @available(swift, obsoleted: 3, renamed: "cacheDisplay(in:to:)")
217 |     open func cacheDisplayInRect(_ rect: NSRect, toBitmapImageRep bitmapImageRep: NSBitmapImageRep)
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:321:44: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
303 | #endif
304 | extension WebKitLayoutEngine {
305 |    public func snapshot(_ size: CGSize) -> ErikImage? {
    |                `- note: add '@MainActor' to make instance method 'snapshot' part of global actor 'MainActor'
306 |         #if os(iOS)
307 |             if let capturedView: UIView = self.webView.snapshotView(afterScreenUpdates: false) {
    :
319 |             if let view = self.webView.subviews.first,
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
    |                                            `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
322 |                 let image = NSImage(size: size)
323 |                 image.addRepresentation(rep)
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:340:34: warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 |
 61 | import WebKit
 62 | open class WebKitLayoutEngine: NSObject, LayoutEngine {
    |            `- note: class 'WebKitLayoutEngine' does not conform to the 'Sendable' protocol
 63 |
 64 |     // Policy to detect page loading end
    :
338 |
339 |
340 |             var source  = "var \(self.javaScriptResultVarName);"
    |                                  `- warning: capture of 'self' with non-sendable type 'WebKitLayoutEngine' in a `@Sendable` closure; this is an error in the Swift 6 language mode
341 |             source += " try { "
342 |             source += javaScript
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:357:25: warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
355 |
356 |                     if let e = error {
357 |                         completionHandler?(object, e) // must not be called
    |                         |- warning: capture of 'completionHandler' with non-sendable type 'CompletionHandler?' (aka 'Optional<(Optional<Any>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
358 |                         return
359 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:353:26: 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
351 |
352 |             self.expect(key)
353 |             self.webView.evaluateJavaScript(source) {[unowned self] (object, error) -> Void 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
354 |                 self.callBackQueue.asyncOrCurrent { [unowned self] in // XXX maybe if self.callBackQueue.isCurrent execute the block now
355 |
WebKit.WKWebView:46:15: 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 |     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/Sources/LayoutEngine.swift:384:29: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
381 | extension DispatchQueue {
382 |
383 |     func asyncOrCurrent(_ block: @escaping () -> Void) {
    |                           `- note: parameter 'block' is implicitly non-sendable
384 |         self.async(execute: block)
    |                             `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
385 |     }
386 |
/Users/admin/builder/spi-builder-workspace/Sources/LayoutEngine.swift:321:22: warning: sending 'rep' risks causing data races; this is an error in the Swift 6 language mode
319 |             if let view = self.webView.subviews.first,
320 |                 let rep: NSBitmapImageRep = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
321 |                 view.cacheDisplay(in: view.bounds, to:rep)
    |                      |- warning: sending 'rep' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending main actor-isolated 'rep' to main actor-isolated instance method 'cacheDisplay(in:to:)' risks causing data races between main actor-isolated and local nonisolated uses
322 |                 let image = NSImage(size: size)
323 |                 image.addRepresentation(rep)
    |                       `- note: access can happen concurrently
324 |                 return nil //image https://github.com/lemonmojo/WKWebView-Screenshot
325 |             }
Build complete! (30.82s)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libxml-2.0 using your system-packager:
    brew install libxml2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "kanna",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tid-kijyun/Kanna.git"
    },
    {
      "identity" : "brightfutures",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.0.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Thomvis/BrightFutures.git"
    },
    {
      "identity" : "filekit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.0",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nvzqz/FileKit.git"
    }
  ],
  "manifest_display_name" : "Erik",
  "name" : "Erik",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Erik",
      "targets" : [
        "Erik"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ErikTests",
      "module_type" : "SwiftTarget",
      "name" : "ErikTests",
      "path" : "ErikTests",
      "product_dependencies" : [
        "Kanna",
        "BrightFutures",
        "FileKit"
      ],
      "sources" : [
        "ErikTests.swift",
        "KannaTests.swift"
      ],
      "target_dependencies" : [
        "Erik"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Erik",
      "module_type" : "SwiftTarget",
      "name" : "Erik",
      "path" : "Sources",
      "product_dependencies" : [
        "Kanna",
        "BrightFutures"
      ],
      "product_memberships" : [
        "Erik"
      ],
      "sources" : [
        "Document.swift",
        "Erik.swift",
        "Future/Future.swift",
        "LayoutEngine.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.