Build Information
Successful build of SwiftUIWebKit with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/SwiftUIWebKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/SwiftUIWebKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 165774a Added empty privacy manifest
Cloned https://github.com/edonv/SwiftUIWebKit.git
Revision (git rev-parse @):
165774abbf761aff79781d992968017c13fda05b
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/edonv/SwiftUIWebKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/edonv/SwiftUIWebKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/10] Compiling SwiftUIWebKit WebViewReloadButton.swift
[4/10] Compiling SwiftUIWebKit WebView.swift
[5/10] Compiling SwiftUIWebKit WebViewTest.swift
[6/10] Compiling SwiftUIWebKit WebViewLoadingProgressViewStyle.swift
[7/10] Compiling SwiftUIWebKit WebView+Representable.swift
[8/10] Compiling SwiftUIWebKit LoadRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:117:21: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
117 | 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
118 |
119 | case .data(let data, let mimeType, let characterEncodingName, let baseURL):
WebKit.WKWebView:11:26: 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 | @MainActor 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/SwiftUIWebKit/Helper Types/LoadRequest.swift:120:21: warning: call to main actor-isolated instance method 'load(_:mimeType:characterEncodingName:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
118 |
119 | case .data(let data, let mimeType, let characterEncodingName, let baseURL):
120 | webView.load(data, mimeType: mimeType, characterEncodingName: characterEncodingName, baseURL: baseURL)
| `- warning: call to main actor-isolated instance method 'load(_:mimeType:characterEncodingName:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | case .htmlString(let string, let baseURL):
WebKit.WKWebView:21:26: note: calls to instance method 'load(_:mimeType:characterEncodingName:baseURL:)' from outside of its actor context are implicitly asynchronous
19 | @MainActor open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
20 | @available(macOS 10.11, *)
21 | @MainActor open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
| `- note: calls to instance method 'load(_:mimeType:characterEncodingName:baseURL:)' from outside of its actor context are implicitly asynchronous
22 | @available(macOS 10.11, *)
23 | @available(swift, obsoleted: 3, renamed: "load(_:mimeType:characterEncodingName:baseURL:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:123:21: 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
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
121 |
122 | case .htmlString(let string, let baseURL):
123 | webView.loadHTMLString(string, 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
124 |
125 | case .fileRequest(let urlRequest, let allowingReadAccessTo):
WebKit.WKWebView:19:26: 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 | @MainActor 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 | @MainActor open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:127:25: warning: call to main actor-isolated instance method 'loadFileRequest(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
125 | case .fileRequest(let urlRequest, let allowingReadAccessTo):
126 | if #available(iOS 15.0, macOS 12.0, *) {
127 | webView.loadFileRequest(urlRequest, allowingReadAccessTo: allowingReadAccessTo)
| `- warning: call to main actor-isolated instance method 'loadFileRequest(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | } else {
129 | print("loadFileRequest(_:allowingReadAccessTo:) is only available for iOS 15+ and macOS 12+.")
WebKit.WKWebView:169:26: note: calls to instance method 'loadFileRequest(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
167 | open func loadSimulatedRequest(_ request: URLRequest, withResponse response: URLResponse, responseData data: Data) -> WKNavigation
168 | @available(macOS 12.0, *)
169 | @MainActor open func loadFileRequest(_ request: URLRequest, allowingReadAccessTo readAccessURL: URL) -> WKNavigation
| `- note: calls to instance method 'loadFileRequest(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
170 | @available(macOS 12.0, *)
171 | @available(swift, obsoleted: 3, renamed: "loadFileRequest(_:allowingReadAccessTo:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:133:21: warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
131 |
132 | case .fileURL(let url, let allowingReadAccessTo):
133 | webView.loadFileURL(url, allowingReadAccessTo: allowingReadAccessTo)
| `- warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 | case .simulatedRequestWithURLResponse(let urlRequest, let urlResponse, let responseData):
WebKit.WKWebView:15:26: note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
13 | open func loadRequest(_ request: URLRequest) -> WKNavigation?
14 | @available(macOS 10.11, *)
15 | @MainActor open func loadFileURL(_ URL: URL, allowingReadAccessTo readAccessURL: URL) -> WKNavigation?
| `- note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
16 | @available(macOS 10.11, *)
17 | @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:137:25: warning: call to main actor-isolated instance method 'loadSimulatedRequest(_:response:responseData:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
135 | case .simulatedRequestWithURLResponse(let urlRequest, let urlResponse, let responseData):
136 | if #available(iOS 15.0, macOS 12.0, *) {
137 | webView.loadSimulatedRequest(urlRequest, response: urlResponse, responseData: responseData)
| `- warning: call to main actor-isolated instance method 'loadSimulatedRequest(_:response:responseData:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | } else {
139 | print("loadSimulatedRequest(_:response:responseData:) is only available for iOS 15+ and macOS 12+.")
WebKit.WKWebView:162:26: note: calls to instance method 'loadSimulatedRequest(_:response:responseData:)' from outside of its actor context are implicitly asynchronous
160 | open var interactionState: Any? { get set }
161 | @available(macOS 12.0, *)
162 | @MainActor open func loadSimulatedRequest(_ request: URLRequest, response: URLResponse, responseData data: Data) -> WKNavigation
| `- note: calls to instance method 'loadSimulatedRequest(_:response:responseData:)' from outside of its actor context are implicitly asynchronous
163 | @available(macOS, introduced: 12.0, deprecated: 12.0)
164 | open func loadSimulatedRequest(_ request: URLRequest, with response: URLResponse, responseData data: Data) -> WKNavigation
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/LoadRequest.swift:144:25: warning: call to main actor-isolated instance method 'loadSimulatedRequest(_:responseHTML:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | case simulatedRequestWithHTMLResponse(URLRequest, responseHTML: String)
113 |
114 | internal func handleLoad(for webView: WKWebView) /*-> WKNavigation?*/ {
| `- note: add '@MainActor' to make instance method 'handleLoad(for:)' part of global actor 'MainActor'
115 | switch self {
116 | case .urlRequest(let urlRequest):
:
142 | case .simulatedRequestWithHTMLResponse(let urlRequest, let responseHTML):
143 | if #available(iOS 15.0, macOS 12.0, *) {
144 | webView.loadSimulatedRequest(urlRequest, responseHTML: responseHTML)
| `- warning: call to main actor-isolated instance method 'loadSimulatedRequest(_:responseHTML:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | } else {
146 | print("loadSimulatedRequest(_:responseHTML:) is only available for iOS 15+ and macOS 12+.")
WebKit.WKWebView:174:26: note: calls to instance method 'loadSimulatedRequest(_:responseHTML:)' from outside of its actor context are implicitly asynchronous
172 | open func loadFileRequest(_ request: URLRequest, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation
173 | @available(macOS 12.0, *)
174 | @MainActor open func loadSimulatedRequest(_ request: URLRequest, responseHTML string: String) -> WKNavigation
| `- note: calls to instance method 'loadSimulatedRequest(_:responseHTML:)' from outside of its actor context are implicitly asynchronous
175 | @available(macOS 12.0, *)
176 | @available(swift, obsoleted: 3, renamed: "loadSimulatedRequest(_:responseHTML:)")
[9/10] Emitting module SwiftUIWebKit
[10/10] Compiling SwiftUIWebKit WebView+Delegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:88:55: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
86 |
87 | fileprivate func setUpObservers(on webView: WKWebView) {
88 | let progressUpdate = webView.publisher(for: \.estimatedProgress, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
89 | .receive(on: DispatchQueue.main)
90 | let isLoadingUpdate = webView.publisher(for: \.isLoading, options: .new)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:90:56: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
88 | let progressUpdate = webView.publisher(for: \.estimatedProgress, options: .new)
89 | .receive(on: DispatchQueue.main)
90 | let isLoadingUpdate = webView.publisher(for: \.isLoading, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
91 | .receive(on: DispatchQueue.main)
92 | let titleUpdate = webView.publisher(for: \.title, options: .new)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:92:52: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
90 | let isLoadingUpdate = webView.publisher(for: \.isLoading, options: .new)
91 | .receive(on: DispatchQueue.main)
92 | let titleUpdate = webView.publisher(for: \.title, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
93 | .replaceNil(with: "")
94 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:95:50: warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
93 | .replaceNil(with: "")
94 | .receive(on: DispatchQueue.main)
95 | let urlUpdate = webView.publisher(for: \.url, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
96 | .receive(on: DispatchQueue.main)
97 | let canGoBackUpdate = webView.publisher(for: \.canGoBack, options: .new)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:97:56: warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
95 | let urlUpdate = webView.publisher(for: \.url, options: .new)
96 | .receive(on: DispatchQueue.main)
97 | let canGoBackUpdate = webView.publisher(for: \.canGoBack, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
98 | .receive(on: DispatchQueue.main)
99 | let canGoForwardUpdate = webView.publisher(for: \.canGoForward, options: .new)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:99:59: warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
97 | let canGoBackUpdate = webView.publisher(for: \.canGoBack, options: .new)
98 | .receive(on: DispatchQueue.main)
99 | let canGoForwardUpdate = webView.publisher(for: \.canGoForward, options: .new)
| `- warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
100 | .receive(on: DispatchQueue.main)
101 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:143:33: warning: main actor-isolated property 'canGoBack' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
141 | var completedAction = false
142 | switch currentAction?.action {
143 | case .goBack where view.canGoBack:
| `- warning: main actor-isolated property 'canGoBack' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
144 | view.goBack()
145 | completedAction = true
WebKit.WKWebView:39:25: note: property declared here
37 | @available(macOS 10.12, *)
38 | open var serverTrust: SecTrust? { get }
39 | @MainActor open var canGoBack: Bool { get }
| `- note: property declared here
40 | @MainActor open var canGoForward: Bool { get }
41 | @MainActor open func goBack() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:144:18: warning: call to main actor-isolated instance method 'goBack()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
142 | switch currentAction?.action {
143 | case .goBack where view.canGoBack:
144 | view.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
145 | completedAction = true
146 | case .goForward where view.canGoForward:
WebKit.WKWebView:41:26: note: calls to instance method 'goBack()' from outside of its actor context are implicitly asynchronous
39 | @MainActor open var canGoBack: Bool { get }
40 | @MainActor open var canGoForward: Bool { get }
41 | @MainActor open func goBack() -> WKNavigation?
| `- note: calls to instance method 'goBack()' from outside of its actor context are implicitly asynchronous
42 | @MainActor open func goForward() -> WKNavigation?
43 | @MainActor open func reload() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:146:36: warning: main actor-isolated property 'canGoForward' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
144 | view.goBack()
145 | completedAction = true
146 | case .goForward where view.canGoForward:
| `- warning: main actor-isolated property 'canGoForward' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
147 | view.goForward()
148 | completedAction = true
WebKit.WKWebView:40:25: note: property declared here
38 | open var serverTrust: SecTrust? { get }
39 | @MainActor open var canGoBack: Bool { get }
40 | @MainActor open var canGoForward: Bool { get }
| `- note: property declared here
41 | @MainActor open func goBack() -> WKNavigation?
42 | @MainActor open func goForward() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:147:18: warning: call to main actor-isolated instance method 'goForward()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
145 | completedAction = true
146 | case .goForward where view.canGoForward:
147 | view.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
148 | completedAction = true
149 |
WebKit.WKWebView:42:26: note: calls to instance method 'goForward()' from outside of its actor context are implicitly asynchronous
40 | @MainActor open var canGoForward: Bool { get }
41 | @MainActor open func goBack() -> WKNavigation?
42 | @MainActor open func goForward() -> WKNavigation?
| `- note: calls to instance method 'goForward()' from outside of its actor context are implicitly asynchronous
43 | @MainActor open func reload() -> WKNavigation?
44 | @MainActor open func reloadFromOrigin() -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:156:22: warning: call to main actor-isolated instance method 'reloadFromOrigin()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
154 | case .reload(let fromOrigin):
155 | if fromOrigin {
156 | view.reloadFromOrigin()
| `- warning: call to main actor-isolated instance method 'reloadFromOrigin()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | } else {
158 | view.reload()
WebKit.WKWebView:44:26: note: calls to instance method 'reloadFromOrigin()' from outside of its actor context are implicitly asynchronous
42 | @MainActor open func goForward() -> WKNavigation?
43 | @MainActor open func reload() -> WKNavigation?
44 | @MainActor open func reloadFromOrigin() -> WKNavigation?
| `- note: calls to instance method 'reloadFromOrigin()' from outside of its actor context are implicitly asynchronous
45 | @MainActor open func stopLoading()
46 | open func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, (any Error)?) -> Void)? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:158: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
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
156 | view.reloadFromOrigin()
157 | } else {
158 | view.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
159 | }
160 | completedAction = true
WebKit.WKWebView:43:26: note: calls to instance method 'reload()' from outside of its actor context are implicitly asynchronous
41 | @MainActor open func goBack() -> WKNavigation?
42 | @MainActor open func goForward() -> WKNavigation?
43 | @MainActor open func reload() -> WKNavigation?
| `- note: calls to instance method 'reload()' from outside of its actor context are implicitly asynchronous
44 | @MainActor open func reloadFromOrigin() -> WKNavigation?
45 | @MainActor open func stopLoading()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:163:18: warning: call to main actor-isolated instance method 'stopLoading()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | /// Returns a `Bool` describing if it the change was an internal one, and was acted on.
138 | fileprivate func updateView(_ view: WKWebView) -> Bool {
| `- note: add '@MainActor' to make instance method 'updateView' part of global actor 'MainActor'
139 | guard currentAction != lastAction else { return false }
140 |
:
161 |
162 | case .stop:
163 | view.stopLoading()
| `- warning: call to main actor-isolated instance method 'stopLoading()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | completedAction = true
165 |
WebKit.WKWebView:45:26: note: calls to instance method 'stopLoading()' from outside of its actor context are implicitly asynchronous
43 | @MainActor open func reload() -> WKNavigation?
44 | @MainActor open func reloadFromOrigin() -> WKNavigation?
45 | @MainActor open func stopLoading()
| `- note: calls to instance method 'stopLoading()' from outside of its actor context are implicitly asynchronous
46 | open func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, (any Error)?) -> Void)? = nil)
47 | open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any
Build complete! (35.29s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIWebKit",
"name" : "SwiftUIWebKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftUIWebKit",
"targets" : [
"SwiftUIWebKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftUIWebKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUIWebKitTests",
"path" : "Tests/SwiftUIWebKitTests",
"sources" : [
"SwiftUIWebKitTests.swift"
],
"target_dependencies" : [
"SwiftUIWebKit"
],
"type" : "test"
},
{
"c99name" : "SwiftUIWebKit",
"module_type" : "SwiftTarget",
"name" : "SwiftUIWebKit",
"path" : "Sources/SwiftUIWebKit",
"product_memberships" : [
"SwiftUIWebKit"
],
"sources" : [
"Helper Types/LoadRequest.swift",
"Helper Types/WebViewLoadingProgressViewStyle.swift",
"WebView+Delegate.swift",
"WebView+Representable.swift",
"WebView.swift",
"WebViewReloadButton.swift",
"WebViewTest.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.