This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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

Failed to build WebView with Swift 6.0 for macOS (SPM).

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/kylehickinson/swiftui-webview.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylehickinson/swiftui-webview
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b733415 Fix build for iOS 16/macOS 13
Cloned https://github.com/kylehickinson/swiftui-webview.git
Revision (git rev-parse @):
b733415f0c73f88ef7fc2c02a38362f41936818c
SUCCESS checkout https://github.com/kylehickinson/swiftui-webview.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kylehickinson/swiftui-webview.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
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 |     if #available(iOS 15.0, macOS 12.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:39:27: warning: cannot form key path to main actor-isolated property 'themeColor'; this is an error in the Swift 6 language mode
 37 |     if #available(iOS 15.0, macOS 12.0, *) {
 38 |       observers += [
 39 |         subscriber(for: \.themeColor),
    |                           `- warning: cannot form key path to main actor-isolated property 'themeColor'; this is an error in the Swift 6 language mode
 40 |         subscriber(for: \.underPageBackgroundColor),
 41 |         subscriber(for: \.microphoneCaptureState),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:40:27: warning: cannot form key path to main actor-isolated property 'underPageBackgroundColor'; this is an error in the Swift 6 language mode
 38 |       observers += [
 39 |         subscriber(for: \.themeColor),
 40 |         subscriber(for: \.underPageBackgroundColor),
    |                           `- warning: cannot form key path to main actor-isolated property 'underPageBackgroundColor'; this is an error in the Swift 6 language mode
 41 |         subscriber(for: \.microphoneCaptureState),
 42 |         subscriber(for: \.cameraCaptureState)
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:41:27: warning: cannot form key path to main actor-isolated property 'microphoneCaptureState'; this is an error in the Swift 6 language mode
 39 |         subscriber(for: \.themeColor),
 40 |         subscriber(for: \.underPageBackgroundColor),
 41 |         subscriber(for: \.microphoneCaptureState),
    |                           `- warning: cannot form key path to main actor-isolated property 'microphoneCaptureState'; this is an error in the Swift 6 language mode
 42 |         subscriber(for: \.cameraCaptureState)
 43 |       ]
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:42:27: warning: cannot form key path to main actor-isolated property 'cameraCaptureState'; this is an error in the Swift 6 language mode
 40 |         subscriber(for: \.underPageBackgroundColor),
 41 |         subscriber(for: \.microphoneCaptureState),
 42 |         subscriber(for: \.cameraCaptureState)
    |                           `- warning: cannot form key path to main actor-isolated property 'cameraCaptureState'; this is an error in the Swift 6 language mode
 43 |       ]
 44 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:47:42: warning: cannot form key path to main actor-isolated property 'fullscreenState'; this is an error in the Swift 6 language mode
 45 | #if swift(>=5.7)
 46 |     if #available(iOS 16.0, macOS 13.0, *) {
 47 |       observers.append(subscriber(for: \.fullscreenState))
    |                                          `- warning: cannot form key path to main actor-isolated property 'fullscreenState'; this is an error in the Swift 6 language mode
 48 |     }
 49 | #else
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.