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 BrowserKit, reference main (40d79b), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 17:01:37 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/markbattistella/BrowserKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/markbattistella/BrowserKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 40d79be 2024-10-17 - URL fixes
Cloned https://github.com/markbattistella/BrowserKit.git
Revision (git rev-parse @):
40d79beaf9f92a6c041c00882f7dafa70f455055
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/markbattistella/BrowserKit.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": "browserkit",
      "name": "BrowserKit",
      "url": "https://github.com/markbattistella/BrowserKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BrowserKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/markbattistella/BrowserKit.git
[1/50] Fetching browserkit
Fetched https://github.com/markbattistella/BrowserKit.git from cache (0.69s)
Creating working copy for https://github.com/markbattistella/BrowserKit.git
Working copy of https://github.com/markbattistella/BrowserKit.git resolved at main (40d79be)
warning: '.resolve-product-dependencies': dependency 'browserkit' 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/markbattistella/BrowserKit.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/8] Compiling BrowserKit WebKitWebView.swift
[4/8] Compiling BrowserKit AgnosticViewRepresentable.swift
[5/8] Compiling BrowserKit SafariWebView.swift
[6/8] Emitting module BrowserKit
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:30:42: error: cannot find type 'SFSafariViewController' in scope
 28 |
 29 |     /// A closure used to configure the Safari view controller's configuration.
 30 |     private let configureSafari: ((inout SFSafariViewController.Configuration) -> Void)?
    |                                          `- error: cannot find type 'SFSafariViewController' in scope
 31 |
 32 |     /// A closure used to configure the `SFSafariViewController` instance directly.
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:33:40: error: cannot find type 'SFSafariViewController' in scope
 31 |
 32 |     /// A closure used to configure the `SFSafariViewController` instance directly.
 33 |     private let configureSafariView: ((SFSafariViewController) -> Void)?
    |                                        `- error: cannot find type 'SFSafariViewController' in scope
 34 |
 35 |     /// A closure used to configure the `WKWebViewConfiguration` object.
[7/8] Compiling BrowserKit WebViewType.swift
[8/8] Compiling BrowserKit WebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:30:42: error: cannot find type 'SFSafariViewController' in scope
 28 |
 29 |     /// A closure used to configure the Safari view controller's configuration.
 30 |     private let configureSafari: ((inout SFSafariViewController.Configuration) -> Void)?
    |                                          `- error: cannot find type 'SFSafariViewController' in scope
 31 |
 32 |     /// A closure used to configure the `SFSafariViewController` instance directly.
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:33:40: error: cannot find type 'SFSafariViewController' in scope
 31 |
 32 |     /// A closure used to configure the `SFSafariViewController` instance directly.
 33 |     private let configureSafariView: ((SFSafariViewController) -> Void)?
    |                                        `- error: cannot find type 'SFSafariViewController' in scope
 34 |
 35 |     /// A closure used to configure the `WKWebViewConfiguration` object.
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:102:32: error: 'nil' requires a contextual type
100 |         self.htmlBaseUrl = nil
101 |         self.webViewType = .webkit
102 |         self.configureSafari = nil
    |                                `- error: 'nil' requires a contextual type
103 |         self.configureSafariView = nil
104 |         self.configureWebKit = webKitConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:103:36: error: 'nil' requires a contextual type
101 |         self.webViewType = .webkit
102 |         self.configureSafari = nil
103 |         self.configureSafariView = nil
    |                                    `- error: 'nil' requires a contextual type
104 |         self.configureWebKit = webKitConfiguration
105 |         self.configureWebView = webViewConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:123:32: error: 'nil' requires a contextual type
121 |         self.htmlBaseUrl = nil
122 |         self.webViewType = .webkit
123 |         self.configureSafari = nil
    |                                `- error: 'nil' requires a contextual type
124 |         self.configureSafariView = nil
125 |         self.configureWebKit = webKitConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:124:36: error: 'nil' requires a contextual type
122 |         self.webViewType = .webkit
123 |         self.configureSafari = nil
124 |         self.configureSafariView = nil
    |                                    `- error: 'nil' requires a contextual type
125 |         self.configureWebKit = webKitConfiguration
126 |         self.configureWebView = webViewConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:146:32: error: 'nil' requires a contextual type
144 |         self.htmlBaseUrl = htmlBaseUrl
145 |         self.webViewType = .webkit
146 |         self.configureSafari = nil
    |                                `- error: 'nil' requires a contextual type
147 |         self.configureSafariView = nil
148 |         self.configureWebKit = webKitConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:147:36: error: 'nil' requires a contextual type
145 |         self.webViewType = .webkit
146 |         self.configureSafari = nil
147 |         self.configureSafariView = nil
    |                                    `- error: 'nil' requires a contextual type
148 |         self.configureWebKit = webKitConfiguration
149 |         self.configureWebView = webViewConfiguration
BUILD FAILURE 6.0 macosSpm