Build Information
Failed to build WebView, reference 0.3.0 (a67dca
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:51:07 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kylehickinson/swiftui-webview.git
Reference: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylehickinson/swiftui-webview
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at a67dcaf Update README
Cloned https://github.com/kylehickinson/swiftui-webview.git
Revision (git rev-parse @):
a67dcaff2377573a51f75761bb6e768b78931909
SUCCESS checkout https://github.com/kylehickinson/swiftui-webview.git at 0.3.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": "swiftui-webview",
"name": "WebView",
"url": "https://github.com/kylehickinson/swiftui-webview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-webview",
"dependencies": [
]
}
]
}
Fetching https://github.com/kylehickinson/swiftui-webview.git
[1/65] Fetching swiftui-webview
Fetched https://github.com/kylehickinson/swiftui-webview.git from cache (0.66s)
Creating working copy for https://github.com/kylehickinson/swiftui-webview.git
Working copy of https://github.com/kylehickinson/swiftui-webview.git resolved at 0.3.0 (a67dcaf)
warning: '.resolve-product-dependencies': dependency 'swiftui-webview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/kylehickinson/swiftui-webview.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module WebView
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:13:15: error: main actor-isolated default value in a nonisolated context
11 | }
12 |
13 | public init(webView: WKWebView = WKWebView()) {
| `- error: main actor-isolated default value in a nonisolated context
14 | self.webView = webView
15 | setupObservers()
[4/4] Compiling WebView WebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:13:15: error: main actor-isolated default value in a nonisolated context
11 | }
12 |
13 | public init(webView: WKWebView = WKWebView()) {
| `- error: main actor-isolated default value in a nonisolated context
14 | self.webView = webView
15 | setupObservers()
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:22:11: warning: capture of 'self' with non-sendable type 'WebViewStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 |
5 | @dynamicMemberLookup
6 | public class WebViewStore: ObservableObject {
| `- note: class 'WebViewStore' does not conform to the 'Sendable' protocol
7 | @Published public var webView: WKWebView {
8 | didSet {
:
20 | return webView.observe(keyPath, options: [.prior]) { _, change in
21 | if change.isPrior {
22 | self.objectWillChange.send()
| `- warning: capture of 'self' with non-sendable type 'WebViewStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:28:25: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
26 | // Setup observers for all KVO compliant properties
27 | observers = [
28 | subscriber(for: \.title),
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
29 | subscriber(for: \.url),
30 | subscriber(for: \.isLoading),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:29:25: warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
27 | observers = [
28 | subscriber(for: \.title),
29 | subscriber(for: \.url),
| `- warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
30 | subscriber(for: \.isLoading),
31 | subscriber(for: \.estimatedProgress),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:30:25: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
28 | subscriber(for: \.title),
29 | subscriber(for: \.url),
30 | subscriber(for: \.isLoading),
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
31 | subscriber(for: \.estimatedProgress),
32 | subscriber(for: \.hasOnlySecureContent),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:31:25: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
29 | subscriber(for: \.url),
30 | subscriber(for: \.isLoading),
31 | subscriber(for: \.estimatedProgress),
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
32 | subscriber(for: \.hasOnlySecureContent),
33 | subscriber(for: \.serverTrust),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:32:25: warning: cannot form key path to main actor-isolated property 'hasOnlySecureContent'; this is an error in the Swift 6 language mode
30 | subscriber(for: \.isLoading),
31 | subscriber(for: \.estimatedProgress),
32 | subscriber(for: \.hasOnlySecureContent),
| `- warning: cannot form key path to main actor-isolated property 'hasOnlySecureContent'; this is an error in the Swift 6 language mode
33 | subscriber(for: \.serverTrust),
34 | subscriber(for: \.canGoBack),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:33:25: warning: cannot form key path to main actor-isolated property 'serverTrust'; this is an error in the Swift 6 language mode
31 | subscriber(for: \.estimatedProgress),
32 | subscriber(for: \.hasOnlySecureContent),
33 | subscriber(for: \.serverTrust),
| `- warning: cannot form key path to main actor-isolated property 'serverTrust'; this is an error in the Swift 6 language mode
34 | subscriber(for: \.canGoBack),
35 | subscriber(for: \.canGoForward)
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:34:25: warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
32 | subscriber(for: \.hasOnlySecureContent),
33 | subscriber(for: \.serverTrust),
34 | subscriber(for: \.canGoBack),
| `- warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
35 | subscriber(for: \.canGoForward)
36 | ]
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:35:25: warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
33 | subscriber(for: \.serverTrust),
34 | subscriber(for: \.canGoBack),
35 | subscriber(for: \.canGoForward)
| `- warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
36 | ]
37 | }
BUILD FAILURE 6.0 macosSpm