Build Information
Failed to build BrowserKit, reference main (40d79b
), with Swift 5.10 for macOS (SPM) on 17 Oct 2024 01:39:49 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: 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
========================================
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling BrowserKit WebViewType.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
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)?
^~~~~~~~~~~~~~~~~~~~~~
[7/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
^
[8/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
error: fatalError
BUILD FAILURE 5.10 macosSpm