Build Information
Successful build of SwiftUIWebKit, reference 0.0.11 (165774
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 12:57:57 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/SwiftUIWebKit.git
Reference: 0.0.11
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/SwiftUIWebKit
* tag 0.0.11 -> FETCH_HEAD
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: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/SwiftUIWebKit.git at 0.0.11
========================================
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": "swiftuiwebkit",
"name": "SwiftUIWebKit",
"url": "https://github.com/edonv/SwiftUIWebKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIWebKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/edonv/SwiftUIWebKit.git
[1/157] Fetching swiftuiwebkit
Fetched https://github.com/edonv/SwiftUIWebKit.git from cache (0.61s)
Creating working copy for https://github.com/edonv/SwiftUIWebKit.git
Working copy of https://github.com/edonv/SwiftUIWebKit.git resolved at 0.0.11 (165774a)
warning: '.resolve-product-dependencies': dependency 'swiftuiwebkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/edonv/SwiftUIWebKit.git
https://github.com/edonv/SwiftUIWebKit.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling SwiftUIWebKit WebViewReloadButton.swift
[4/10] Compiling SwiftUIWebKit WebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:13:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | /// A view that displays interactive web content, such as for an in-app browser.
12 | public struct WebView {
13 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public var delegate: WebViewDelegate
15 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:19:27: warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 |
18 | public init(delegate: WebViewDelegate, configuration: WKWebViewConfiguration? = nil) {
19 | self._delegate = .init(initialValue: delegate)
| `- warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | self.configuration = configuration
21 | }
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(initialValue: ObjectType)}
| `- note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:27:19: warning: call to main actor-isolated class method 'handlesURLScheme' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | /// - Parameter urlScheme: The URL scheme associated with the resource.
25 | /// - Returns: `true` if WebKit provides native support for the URL scheme, or `false` if it doesn't.
26 | public static func handlesURLScheme(_ urlScheme: String) -> Bool {
| `- note: add '@MainActor' to make static method 'handlesURLScheme' part of global actor 'MainActor'
27 | WKWebView.handlesURLScheme(urlScheme)
| `- warning: call to main actor-isolated class method 'handlesURLScheme' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
WebKit.WKWebView.handlesURLScheme:3:30: note: calls to class method 'handlesURLScheme' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 10.13, *)
3 | @MainActor open class func handlesURLScheme(_ urlScheme: String) -> Bool}
| `- note: calls to class method 'handlesURLScheme' from outside of its actor context are implicitly asynchronous
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:14: warning: call to main actor-isolated instance method 'webViewLoadingBar(progress:isHidden:tint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| `- warning: call to main actor-isolated instance method 'webViewLoadingBar(progress:isHidden:tint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/Helper Types/WebViewLoadingProgressViewStyle.swift:103:17: note: calls to instance method 'webViewLoadingBar(progress:isHidden:tint:)' from outside of its actor context are implicitly asynchronous
101 | @available(iOS, introduced: 14.0, deprecated: 16.0, message: "Use `webViewLoadingBar(progress:isHidden:style:)` modifier instead.")
102 | @available(macOS, introduced: 11.0, deprecated: 13.0, message: "Use `webViewLoadingBar(progress:isHidden:style:)` modifier instead.")
103 | public func webViewLoadingBar(progress: Double, isHidden: Bool, tint: Color?) -> some View {
| `- note: calls to instance method 'webViewLoadingBar(progress:isHidden:tint:)' from outside of its actor context are implicitly asynchronous
104 | self.overlayBackport(alignment: .top) {
105 | if #available(iOS 15.0, macOS 12.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:36:39: warning: main actor-isolated property 'pageTitle' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
| `- warning: main actor-isolated property 'pageTitle' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
38 | .toolbar {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:48:46: note: property declared here
46 |
47 | /// The page title.
48 | @Published final public private(set) var pageTitle: String = ""
| `- note: property declared here
49 | /// The URL for the current webpage.
50 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:36:30: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
:
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
38 | .toolbar {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:51: warning: main actor-isolated property 'loadingProgress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| `- warning: main actor-isolated property 'loadingProgress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:40:46: note: property declared here
38 | ///
39 | /// This value ranges from `0.0` to `1.0` based on the total number of bytes received, including the main document and all of its potential subresources. After navigation loading completes, the `loadingProgress` value remains at `1.0` until a new navigation starts, at which point the `loadingProgress` value resets to `0.0`.
40 | @Published final public private(set) var loadingProgress: Double = 0.0
| `- note: property declared here
41 |
42 | /// A Boolean value that indicates whether the view is currently loading content.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:42: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
:
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:88: warning: main actor-isolated property 'isLoading' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| `- warning: main actor-isolated property 'isLoading' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:45:46: note: property declared here
43 | ///
44 | /// Set to `true` if the view is still loading content; otherwise, `false`.
45 | @Published final public private(set) var isLoading: Bool = false
| `- note: property declared here
46 |
47 | /// The page title.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:79: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
:
32 | /// To color the progress bar, use [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-23xyq) or [`tint(_:)`](https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq) (or [`accentColor(_:)`](https://developer.apple.com/documentation/familycontrols/familyactivitypicker/accentcolor(_:)) if on iOS 14). It will default to the app's accent color.
33 | @available(iOS 14.0, macOS 11.0, *)
34 | public func standardNavigationBar() -> some View {
| `- note: add '@MainActor' to make instance method 'standardNavigationBar()' part of global actor 'MainActor'
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:40:33: warning: main actor-isolated property 'pageTitle' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
40 | if delegate.pageTitle.isEmpty {
| `- warning: main actor-isolated property 'pageTitle' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | Text(" ")
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:48:46: note: property declared here
46 |
47 | /// The page title.
48 | @Published final public private(set) var pageTitle: String = ""
| `- note: property declared here
49 | /// The URL for the current webpage.
50 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:40:24: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
:
38 | .toolbar {
39 | ToolbarItem(placement: .principal) {
40 | if delegate.pageTitle.isEmpty {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | Text(" ")
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:37:14: warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
35 | self
36 | .navigationTitle(delegate.pageTitle)
37 | .webViewLoadingBar(progress: delegate.loadingProgress, isHidden: !delegate.isLoading, tint: nil)
| |- warning: sending value of non-Sendable type 'some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'some View' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
38 | .toolbar {
| `- note: access can happen concurrently
39 | ToolbarItem(placement: .principal) {
40 | if delegate.pageTitle.isEmpty {
[5/10] Compiling SwiftUIWebKit WebView+Delegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:16:29: warning: call to main actor-isolated instance method 'setUpObservers(on:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |
14 | extension WebView {
15 | internal func makeView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'makeView(_:context:)' part of global actor 'MainActor'
16 | context.coordinator.setUpObservers(on: view)
| `- warning: call to main actor-isolated instance method 'setUpObservers(on:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
:
85 | }
86 |
87 | fileprivate func setUpObservers(on webView: WKWebView) {
| |- note: calls to instance method 'setUpObservers(on:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'WKNavigationDelegate'
88 | let progressUpdate = webView.publisher(for: \.estimatedProgress, options: .new)
89 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:16:17: warning: main actor-isolated property 'coordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
13 |
14 | extension WebView {
15 | internal func makeView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'makeView(_:context:)' part of global actor 'MainActor'
16 | context.coordinator.setUpObservers(on: view)
| `- warning: main actor-isolated property 'coordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
| `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:20:53: warning: call to main actor-isolated instance method 'updateView' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
19 | internal func updateView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateView(_:context:)' part of global actor 'MainActor'
20 | let wasInternalChange = context.coordinator.updateView(view)
| `- warning: call to main actor-isolated instance method 'updateView' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | guard !wasInternalChange else { return }
22 |
:
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: calls to instance method 'updateView' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'WKNavigationDelegate'
139 | guard currentAction != lastAction else { return false }
140 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:20:41: warning: main actor-isolated property 'coordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
19 | internal func updateView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateView(_:context:)' part of global actor 'MainActor'
20 | let wasInternalChange = context.coordinator.updateView(view)
| `- warning: main actor-isolated property 'coordinator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | guard !wasInternalChange else { return }
22 |
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
| `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:24:18: warning: call to main actor-isolated instance method 'updatingWebView(_:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
19 | internal func updateView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateView(_:context:)' part of global actor 'MainActor'
20 | let wasInternalChange = context.coordinator.updateView(view)
21 | guard !wasInternalChange else { return }
22 |
23 | // Only call updatingWebView(_:context:) if it's not an internally-managed update.
24 | delegate.updatingWebView(view, context: context)
| `- warning: call to main actor-isolated instance method 'updatingWebView(_:context:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
238 | /// - webView: The `WKWebView`.
239 | /// - context: The context.
240 | open func updatingWebView(_ webView: WKWebView, context: WebView.Context) {}
| |- note: calls to instance method 'updatingWebView(_:context:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'WKNavigationDelegate'
241 | }
242 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:24:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
19 | internal func updateView(_ view: WKWebView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateView(_:context:)' part of global actor 'MainActor'
20 | let wasInternalChange = context.coordinator.updateView(view)
21 | guard !wasInternalChange else { return }
22 |
23 | // Only call updatingWebView(_:context:) if it's not an internally-managed update.
24 | delegate.updatingWebView(view, context: context)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:14:16: note: property declared here
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView+Delegate.swift:27:56: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func makeCoordinator() -> WebViewDelegate { delegate }
| | `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
| `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:14:16: note: property declared here
12 | public struct WebView {
13 | @ObservedObject
14 | public var delegate: WebViewDelegate
| `- note: property declared here
15 |
16 | public var configuration: WKWebViewConfiguration?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:13:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | /// A view that displays interactive web content, such as for an in-app browser.
12 | public struct WebView {
13 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public var delegate: WebViewDelegate
15 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[6/10] Compiling SwiftUIWebKit WebViewLoadingProgressViewStyle.swift
[7/10] Compiling SwiftUIWebKit WebView+Representable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:13:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | /// A view that displays interactive web content, such as for an in-app browser.
12 | public struct WebView {
13 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public var delegate: WebViewDelegate
15 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[8/10] Emitting module SwiftUIWebKit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:13:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | /// A view that displays interactive web content, such as for an in-app browser.
12 | public struct WebView {
13 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public var delegate: WebViewDelegate
15 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[9/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.load:2:22: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?}
| `- note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/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.load:3:24: note: calls to instance method 'load(_:mimeType:characterEncodingName:baseURL:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 10.11, *)
3 | @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
4 |
/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.loadHTMLString:2:22: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @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
3 |
/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.loadFileRequest:3:24: note: calls to instance method 'loadFileRequest(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 12.0, *)
3 | @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
4 |
/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.loadFileURL:3:24: note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 10.11, *)
3 | @MainActor open func loadFileURL(_ URL: URL, allowingReadAccessTo readAccessURL: URL) -> WKNavigation?}
| `- note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
4 |
/Users/admin/builder/spi-builder-workspace/Sources/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.loadSimulatedRequest:3:24: note: calls to instance method 'loadSimulatedRequest(_:response:responseData:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 12.0, *)
3 | @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
4 |
/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.loadSimulatedRequest:3:24: note: calls to instance method 'loadSimulatedRequest(_:responseHTML:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @available(macOS 12.0, *)
3 | @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
4 |
[10/10] Compiling SwiftUIWebKit WebViewTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWebKit/WebView.swift:13:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | /// A view that displays interactive web content, such as for an in-app browser.
12 | public struct WebView {
13 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public var delegate: WebViewDelegate
15 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
Build complete! (9.49s)
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.