Build Information
Failed to build Sankey, reference 1.0.1 (961ea3
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 01:22:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxhumber/Sankey.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxhumber/Sankey
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at 961ea36 Merge pull request #1 from cjw85/hot-reload
Cloned https://github.com/maxhumber/Sankey.git
Revision (git rev-parse @):
961ea360863df4212193bbde6cd9c1d4a811be4f
SUCCESS checkout https://github.com/maxhumber/Sankey.git at 1.0.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/maxhumber/Sankey.git
https://github.com/maxhumber/Sankey.git
{
"dependencies" : [
],
"manifest_display_name" : "Sankey",
"name" : "Sankey",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Sankey",
"targets" : [
"Sankey"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SankeyTests",
"module_type" : "SwiftTarget",
"name" : "SankeyTests",
"path" : "Tests/SankeyTests",
"sources" : [
"SankeyTests.swift"
],
"target_dependencies" : [
"Sankey"
],
"type" : "test"
},
{
"c99name" : "Sankey",
"module_type" : "SwiftTarget",
"name" : "Sankey",
"path" : "Sources/Sankey",
"product_memberships" : [
"Sankey"
],
"sources" : [
"Diagram/SankeyDiagram+init.swift",
"Diagram/SankeyDiagram.swift",
"Link/SankeyLink+CustomStringConvertible.swift",
"Link/SankeyLink+ExpressibleByArrayLiteral.swift",
"Link/SankeyLink.swift",
"Node/SankeyNode.swift",
"Options/Sankey/Link/Color/SankeyOptions.Sankey.Link.Color.swift",
"Options/Sankey/Link/ColorMode/SankeyOptions.Sankey.Link.ColorMode.swift",
"Options/Sankey/Link/SankeyOptions.Sankey.Link.swift",
"Options/Sankey/Node/ColorMode/SankeyOptions.Sankey.Node.ColorMode.swift",
"Options/Sankey/Node/Label/SankeyOptions.Sankey.Node.Label.swift",
"Options/Sankey/Node/SankeyOptions.Sankey.Node.swift",
"Options/Sankey/SankeyOptions.Sankey.swift",
"Options/SankeyOptions+CustomStringConvertible.swift",
"Options/SankeyOptions+init.swift",
"Options/SankeyOptions.swift",
"Options/Tooltip/SankeyOptions.Tooltip.swift",
"Options/Tooltip/TextStyle/SankeyOptions.Tooltip.TextStyle.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/20] Compiling Sankey SankeyOptions.Sankey.Node.Label.swift
[4/20] Compiling Sankey SankeyOptions.Sankey.Node.swift
[5/21] Compiling Sankey SankeyOptions.Tooltip.swift
[6/21] Compiling Sankey SankeyLink.swift
[7/21] Compiling Sankey SankeyNode.swift
[8/21] Compiling Sankey SankeyLink+CustomStringConvertible.swift
[9/21] Compiling Sankey SankeyLink+ExpressibleByArrayLiteral.swift
[10/21] Compiling Sankey SankeyOptions.Sankey.Link.swift
[11/21] Compiling Sankey SankeyOptions.Sankey.Node.ColorMode.swift
[12/21] Compiling Sankey SankeyOptions.Sankey.Link.Color.swift
[13/21] Compiling Sankey SankeyOptions.Sankey.Link.ColorMode.swift
[14/21] Compiling Sankey SankeyOptions.Sankey.swift
[15/21] Compiling Sankey SankeyOptions+CustomStringConvertible.swift
[16/21] Compiling Sankey SankeyOptions+init.swift
[17/21] Compiling Sankey SankeyOptions.swift
[18/21] Compiling Sankey SankeyOptions.Tooltip.TextStyle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/21] Emitting module Sankey
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
[20/21] Compiling Sankey SankeyDiagram+init.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:32:9: warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | var parent: SankeyDiagram
14 |
15 | init(parent: SankeyDiagram) {
| |- note: calls to initializer 'init(parent:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'WKScriptMessageHandler'
16 | self.parent = parent
17 | }
:
29 | }
30 |
31 | public func makeCoordinator() -> Coordinator {
| `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
32 | Coordinator(parent: self)
| `- warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:45:17: error: cannot assign to property: 'isOpaque' is a get-only property
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
| `- error: cannot assign to property: 'isOpaque' is a get-only property
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:46:17: error: value of type 'WKWebView' has no member 'scrollView'
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
| `- error: value of type 'WKWebView' has no member 'scrollView'
47 | webview.loadHTMLString(html(), baseURL: nil)
48 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:38:33: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:41:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
41 | let config = WKWebViewConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | config.userContentController = contentController
43 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:42:16: warning: main actor-isolated property 'userContentController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
41 | let config = WKWebViewConfiguration()
42 | config.userContentController = contentController
| `- warning: main actor-isolated property 'userContentController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: mutation of this property is only permitted within the actor
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: mutation of this property is only permitted within the actor
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:44:23: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
:
42 | config.userContentController = contentController
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:114:1: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
112 | on the web view.
113 | */
114 | - (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
115 |
116 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:47:17: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
:
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
| `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | DispatchQueue.main.async {
49 | self.webView = webview
WebKit.WKWebView.loadHTMLString:2:22: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?}
| `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:70:21: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private func updateChartData(for webview: WKWebView) {
| `- note: add '@MainActor' to make instance method 'updateChartData(for:)' part of global actor 'MainActor'
61 | let dataString = data.map { $0.description }.joined(separator: ", ")
62 |
:
68 | drawChart([\(dataString)], \(optionsString));
69 | """
70 | webview.evaluateJavaScript(updateScript, completionHandler: { (result, error) in
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | if let error = error {
72 | print("JavaScript error: \(error)")
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:142:22: error: value of type 'SankeyDiagram' has no member 'frame'
140 | )
141 | // Will take up full View, unless you constrain it...
142 | .frame(height: geo.size.height * 0.5)
| `- error: value of type 'SankeyDiagram' has no member 'frame'
143 | Button {
144 | data.append(
[21/21] Compiling Sankey SankeyDiagram.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:32:9: warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | var parent: SankeyDiagram
14 |
15 | init(parent: SankeyDiagram) {
| |- note: calls to initializer 'init(parent:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'WKScriptMessageHandler'
16 | self.parent = parent
17 | }
:
29 | }
30 |
31 | public func makeCoordinator() -> Coordinator {
| `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
32 | Coordinator(parent: self)
| `- warning: call to main actor-isolated initializer 'init(parent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:45:17: error: cannot assign to property: 'isOpaque' is a get-only property
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
| `- error: cannot assign to property: 'isOpaque' is a get-only property
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:46:17: error: value of type 'WKWebView' has no member 'scrollView'
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
| `- error: value of type 'WKWebView' has no member 'scrollView'
47 | webview.loadHTMLString(html(), baseURL: nil)
48 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:38:33: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:41:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
41 | let config = WKWebViewConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | config.userContentController = contentController
43 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:42:16: warning: main actor-isolated property 'userContentController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
40 |
41 | let config = WKWebViewConfiguration()
42 | config.userContentController = contentController
| `- warning: main actor-isolated property 'userContentController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: mutation of this property is only permitted within the actor
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: mutation of this property is only permitted within the actor
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:44:23: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
:
42 | config.userContentController = contentController
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:114:1: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
112 | on the web view.
113 | */
114 | - (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
115 |
116 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:47:17: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
:
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
| `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | DispatchQueue.main.async {
49 | self.webView = webview
WebKit.WKWebView.loadHTMLString:2:22: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?}
| `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:70:21: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private func updateChartData(for webview: WKWebView) {
| `- note: add '@MainActor' to make instance method 'updateChartData(for:)' part of global actor 'MainActor'
61 | let dataString = data.map { $0.description }.joined(separator: ", ")
62 |
:
68 | drawChart([\(dataString)], \(optionsString));
69 | """
70 | webview.evaluateJavaScript(updateScript, completionHandler: { (result, error) in
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | if let error = error {
72 | print("JavaScript error: \(error)")
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:142:22: error: value of type 'SankeyDiagram' has no member 'frame'
140 | )
141 | // Will take up full View, unless you constrain it...
142 | .frame(height: geo.size.height * 0.5)
| `- error: value of type 'SankeyDiagram' has no member 'frame'
143 | Button {
144 | data.append(
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/19] Compiling Sankey SankeyOptions.Tooltip.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/20] Compiling Sankey SankeyOptions+init.swift
[4/20] Compiling Sankey SankeyOptions.swift
[5/20] Compiling Sankey SankeyOptions.Sankey.Link.swift
[6/20] Compiling Sankey SankeyOptions.Sankey.Node.ColorMode.swift
[7/20] Compiling Sankey SankeyOptions.Sankey.swift
[8/20] Compiling Sankey SankeyOptions+CustomStringConvertible.swift
[9/20] Compiling Sankey SankeyLink+CustomStringConvertible.swift
[10/20] Compiling Sankey SankeyLink+ExpressibleByArrayLiteral.swift
[11/20] Compiling Sankey SankeyLink.swift
[12/20] Compiling Sankey SankeyNode.swift
[13/20] Compiling Sankey SankeyDiagram+init.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:45:17: error: cannot assign to property: 'isOpaque' is a get-only property
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
| `- error: cannot assign to property: 'isOpaque' is a get-only property
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:46:17: error: value of type 'WKWebView' has no member 'scrollView'
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
| `- error: value of type 'WKWebView' has no member 'scrollView'
47 | webview.loadHTMLString(html(), baseURL: nil)
48 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:142:22: error: value of type 'SankeyDiagram' has no member 'frame'
140 | )
141 | // Will take up full View, unless you constrain it...
142 | .frame(height: geo.size.height * 0.5)
| `- error: value of type 'SankeyDiagram' has no member 'frame'
143 | Button {
144 | data.append(
[14/20] Compiling Sankey SankeyDiagram.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:45:17: error: cannot assign to property: 'isOpaque' is a get-only property
43 |
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
| `- error: cannot assign to property: 'isOpaque' is a get-only property
46 | webview.scrollView.isScrollEnabled = false
47 | webview.loadHTMLString(html(), baseURL: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:46:17: error: value of type 'WKWebView' has no member 'scrollView'
44 | let webview = WKWebView(frame: .zero, configuration: config)
45 | webview.isOpaque = false
46 | webview.scrollView.isScrollEnabled = false
| `- error: value of type 'WKWebView' has no member 'scrollView'
47 | webview.loadHTMLString(html(), baseURL: nil)
48 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:142:22: error: value of type 'SankeyDiagram' has no member 'frame'
140 | )
141 | // Will take up full View, unless you constrain it...
142 | .frame(height: geo.size.height * 0.5)
| `- error: value of type 'SankeyDiagram' has no member 'frame'
143 | Button {
144 | data.append(
[15/20] Compiling Sankey SankeyOptions.Sankey.Link.Color.swift
[16/20] Compiling Sankey SankeyOptions.Sankey.Link.ColorMode.swift
[17/20] Emitting module Sankey
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:37:37: error: cannot find type 'Context' in scope
35 | @State private var webView: WKWebView?
36 |
37 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
38 | let contentController = WKUserContentController()
39 | contentController.add(context.coordinator, name: "chartInitialized")
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:54:61: error: cannot find type 'Context' in scope
52 | }
53 |
54 | public func updateUIView(_ webview: WKWebView, context: Context) {
| `- error: cannot find type 'Context' in scope
55 | if isChartInitialized {
56 | updateChartData(for: webview)
/Users/admin/builder/spi-builder-workspace/Sources/Sankey/Diagram/SankeyDiagram.swift:6:30: error: cannot find type 'UIViewRepresentable' in scope
4 | /// A SwiftUI-compatible Sankey Diagram (powered by Google Charts)
5 | /// - Important: Requires an Internet connection
6 | public struct SankeyDiagram: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
7 | public let data: [SankeyLink]
8 | public let options: SankeyOptions
[18/20] Compiling Sankey SankeyOptions.Sankey.Node.Label.swift
[19/20] Compiling Sankey SankeyOptions.Sankey.Node.swift
[20/20] Compiling Sankey SankeyOptions.Tooltip.TextStyle.swift
BUILD FAILURE 6.1 macosSpm