The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of WebView, reference main (8abc88), with Swift 6.0 for macOS (SPM) on 31 Dec 2024 16:14:38 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.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 8abc88c Merge pull request #13 from Ericarman/bug/memeory-leak-fix
Cloned https://github.com/kylehickinson/swiftui-webview.git
Revision (git rev-parse @):
8abc88c7c5c98da391a60a401110ddf59a7b961a
SUCCESS checkout https://github.com/kylehickinson/swiftui-webview.git at main
========================================
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/77] Fetching swiftui-webview
Fetched https://github.com/kylehickinson/swiftui-webview.git from cache (0.65s)
Creating working copy for https://github.com/kylehickinson/swiftui-webview.git
Working copy of https://github.com/kylehickinson/swiftui-webview.git resolved at main (8abc88c)
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
https://github.com/kylehickinson/swiftui-webview.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WebView",
  "name" : "WebView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "WebView",
      "targets" : [
        "WebView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WebView",
      "module_type" : "SwiftTarget",
      "name" : "WebView",
      "path" : "Sources/WebView",
      "product_memberships" : [
        "WebView"
      ],
      "sources" : [
        "WebView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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-5BDAB9E9C0126B9D.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:21:19: warning: capture of 'self' with non-sendable type 'WebViewStore?' in a `@Sendable` closure
  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 {
    :
 19 |     func subscriber<Value>(for keyPath: KeyPath<WKWebView, Value>) -> NSKeyValueObservation {
 20 |       return webView.observe(keyPath, options: [.prior]) { [weak self] _, change in
 21 |         guard let self else { return }
    |                   `- warning: capture of 'self' with non-sendable type 'WebViewStore?' in a `@Sendable` closure
 22 |
 23 |         if change.isPrior {
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:30:25: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
 28 |     // Setup observers for all KVO compliant properties
 29 |     observers = [
 30 |       subscriber(for: \.title),
    |                         `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
 31 |       subscriber(for: \.url),
 32 |       subscriber(for: \.isLoading),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:31:25: warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
 29 |     observers = [
 30 |       subscriber(for: \.title),
 31 |       subscriber(for: \.url),
    |                         `- warning: cannot form key path to main actor-isolated property 'url'; this is an error in the Swift 6 language mode
 32 |       subscriber(for: \.isLoading),
 33 |       subscriber(for: \.estimatedProgress),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:32:25: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
 30 |       subscriber(for: \.title),
 31 |       subscriber(for: \.url),
 32 |       subscriber(for: \.isLoading),
    |                         `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
 33 |       subscriber(for: \.estimatedProgress),
 34 |       subscriber(for: \.hasOnlySecureContent),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:33:25: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
 31 |       subscriber(for: \.url),
 32 |       subscriber(for: \.isLoading),
 33 |       subscriber(for: \.estimatedProgress),
    |                         `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
 34 |       subscriber(for: \.hasOnlySecureContent),
 35 |       subscriber(for: \.serverTrust),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:34:25: warning: cannot form key path to main actor-isolated property 'hasOnlySecureContent'; this is an error in the Swift 6 language mode
 32 |       subscriber(for: \.isLoading),
 33 |       subscriber(for: \.estimatedProgress),
 34 |       subscriber(for: \.hasOnlySecureContent),
    |                         `- warning: cannot form key path to main actor-isolated property 'hasOnlySecureContent'; this is an error in the Swift 6 language mode
 35 |       subscriber(for: \.serverTrust),
 36 |       subscriber(for: \.canGoBack),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:35:25: warning: cannot form key path to main actor-isolated property 'serverTrust'; this is an error in the Swift 6 language mode
 33 |       subscriber(for: \.estimatedProgress),
 34 |       subscriber(for: \.hasOnlySecureContent),
 35 |       subscriber(for: \.serverTrust),
    |                         `- warning: cannot form key path to main actor-isolated property 'serverTrust'; this is an error in the Swift 6 language mode
 36 |       subscriber(for: \.canGoBack),
 37 |       subscriber(for: \.canGoForward)
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:36:25: warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
 34 |       subscriber(for: \.hasOnlySecureContent),
 35 |       subscriber(for: \.serverTrust),
 36 |       subscriber(for: \.canGoBack),
    |                         `- warning: cannot form key path to main actor-isolated property 'canGoBack'; this is an error in the Swift 6 language mode
 37 |       subscriber(for: \.canGoForward)
 38 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:37:25: warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
 35 |       subscriber(for: \.serverTrust),
 36 |       subscriber(for: \.canGoBack),
 37 |       subscriber(for: \.canGoForward)
    |                         `- warning: cannot form key path to main actor-isolated property 'canGoForward'; this is an error in the Swift 6 language mode
 38 |     ]
 39 |     if #available(iOS 15.0, macOS 12.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:41:27: warning: cannot form key path to main actor-isolated property 'themeColor'; this is an error in the Swift 6 language mode
 39 |     if #available(iOS 15.0, macOS 12.0, *) {
 40 |       observers += [
 41 |         subscriber(for: \.themeColor),
    |                           `- warning: cannot form key path to main actor-isolated property 'themeColor'; this is an error in the Swift 6 language mode
 42 |         subscriber(for: \.underPageBackgroundColor),
 43 |         subscriber(for: \.microphoneCaptureState),
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:42:27: warning: cannot form key path to main actor-isolated property 'underPageBackgroundColor'; this is an error in the Swift 6 language mode
 40 |       observers += [
 41 |         subscriber(for: \.themeColor),
 42 |         subscriber(for: \.underPageBackgroundColor),
    |                           `- warning: cannot form key path to main actor-isolated property 'underPageBackgroundColor'; this is an error in the Swift 6 language mode
 43 |         subscriber(for: \.microphoneCaptureState),
 44 |         subscriber(for: \.cameraCaptureState)
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:43:27: warning: cannot form key path to main actor-isolated property 'microphoneCaptureState'; this is an error in the Swift 6 language mode
 41 |         subscriber(for: \.themeColor),
 42 |         subscriber(for: \.underPageBackgroundColor),
 43 |         subscriber(for: \.microphoneCaptureState),
    |                           `- warning: cannot form key path to main actor-isolated property 'microphoneCaptureState'; this is an error in the Swift 6 language mode
 44 |         subscriber(for: \.cameraCaptureState)
 45 |       ]
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:44:27: warning: cannot form key path to main actor-isolated property 'cameraCaptureState'; this is an error in the Swift 6 language mode
 42 |         subscriber(for: \.underPageBackgroundColor),
 43 |         subscriber(for: \.microphoneCaptureState),
 44 |         subscriber(for: \.cameraCaptureState)
    |                           `- warning: cannot form key path to main actor-isolated property 'cameraCaptureState'; this is an error in the Swift 6 language mode
 45 |       ]
 46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WebView/WebView.swift:49:42: warning: cannot form key path to main actor-isolated property 'fullscreenState'; this is an error in the Swift 6 language mode
 47 | #if swift(>=5.7)
 48 |     if #available(iOS 16.0, macOS 13.0, *) {
 49 |       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
 50 |     }
 51 | #else
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/3] Emitting module WebView
[3/3] Compiling WebView WebView.swift
Build complete! (0.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WebView",
  "name" : "WebView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "WebView",
      "targets" : [
        "WebView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WebView",
      "module_type" : "SwiftTarget",
      "name" : "WebView",
      "path" : "Sources/WebView",
      "product_memberships" : [
        "WebView"
      ],
      "sources" : [
        "WebView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.