Build Information
Failed to build BrowserKit, reference 2.0.0 (40d79b
), with Swift 5.10 for macOS (SPM) on 17 Oct 2024 01:38:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/markbattistella/BrowserKit.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/markbattistella/BrowserKit
* tag 2.0.0 -> FETCH_HEAD
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 2.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/markbattistella/BrowserKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/8] Compiling BrowserKit WebViewType.swift
[4/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
private let configureSafari: ((inout SFSafariViewController.Configuration) -> Void)?
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:33:40: error: cannot find type 'SFSafariViewController' in scope
private let configureSafariView: ((SFSafariViewController) -> Void)?
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:102:32: error: 'nil' requires a contextual type
self.configureSafari = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:103:36: error: 'nil' requires a contextual type
self.configureSafariView = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:123:32: error: 'nil' requires a contextual type
self.configureSafari = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:124:36: error: 'nil' requires a contextual type
self.configureSafariView = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:146:32: error: 'nil' requires a contextual type
self.configureSafari = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:147:36: error: 'nil' requires a contextual type
self.configureSafariView = nil
^
[5/8] Compiling BrowserKit AgnosticViewRepresentable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling BrowserKit WebKitWebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:95:23: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in Swift 6
let webView = WKWebView(frame: .zero, configuration: configuration)
^
WebKit.WKWebView:9:12: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
public init(frame: CGRect, configuration: WKWebViewConfiguration)
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:92:18: note: add '@MainActor' to make instance method 'makeWebView()' part of global actor 'MainActor'
private func makeWebView() -> WKWebView {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:109:21: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in Swift 6
webView.load(URLRequest(url: url))
^
WebKit.WKWebView:11:15: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
open func load(_ request: URLRequest) -> WKNavigation?
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:107:18: note: add '@MainActor' to make instance method 'loadContent(into:)' part of global actor 'MainActor'
private func loadContent(into webView: WKWebView) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:111:21: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in Swift 6
webView.loadHTMLString(htmlString, baseURL: htmlBaseUrl)
^
WebKit.WKWebView:19:15: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
^
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Internal/WebKitWebView.swift:107:18: note: add '@MainActor' to make instance method 'loadContent(into:)' part of global actor 'MainActor'
private func loadContent(into webView: WKWebView) {
^
@MainActor
[7/8] Compiling BrowserKit SafariWebView.swift
[8/8] Emitting module BrowserKit
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:30:42: error: cannot find type 'SFSafariViewController' in scope
private let configureSafari: ((inout SFSafariViewController.Configuration) -> Void)?
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/BrowserKit/Public/WebView.swift:33:40: error: cannot find type 'SFSafariViewController' in scope
private let configureSafariView: ((SFSafariViewController) -> Void)?
^~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 macosSpm