Build Information
Successful build of AAInfographics, reference 10.0.0 (fc891f), with Swift 6.1 for macOS (SPM) on 23 Apr 2026 02:09:21 UTC.
Swift 6 data race errors: 2
Build Command
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AAChartModel/AAChartKit-Swift.git
Reference: 10.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AAChartModel/AAChartKit-Swift
* tag 10.0.0 -> FETCH_HEAD
HEAD is now at fc891fc Merge branch 'dev'
Cloned https://github.com/AAChartModel/AAChartKit-Swift.git
Revision (git rev-parse @):
fc891fc1f370a0c364a3ce81db0b7fdd011915ce
SUCCESS checkout https://github.com/AAChartModel/AAChartKit-Swift.git at 10.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/AAChartModel/AAChartKit-Swift.git
https://github.com/AAChartModel/AAChartKit-Swift.git
{
"dependencies" : [
],
"manifest_display_name" : "AAInfographics",
"name" : "AAInfographics",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AAInfographics",
"targets" : [
"AAInfographics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AAInfographics",
"module_type" : "SwiftTarget",
"name" : "AAInfographics",
"path" : "AAInfographics",
"product_memberships" : [
"AAInfographics"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/AAInfographics/AAJSFiles.bundle",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AAChartCreator/AAChartOptions/AAChartModel.swift",
"AAChartCreator/AAChartOptions/AAOptions.swift",
"AAChartCreator/AAChartOptions/AASeriesElement.swift",
"AAChartCreator/AAChartView/AAChartView+API.swift",
"AAChartCreator/AAChartView/AAChartView.swift",
"AAChartCreator/AAChartView/AAChartViewPluginLoader.swift",
"AAChartCreator/AAChartView/AAChartViewPluginProvider.swift",
"AAChartCreator/AASerializable.swift",
"AAOptionsModel/AAAnimation.swift",
"AAOptionsModel/AAAxis.swift",
"AAOptionsModel/AAAxisTitle.swift",
"AAOptionsModel/AABoxplot.swift",
"AAOptionsModel/AABubbleLegend.swift",
"AAOptionsModel/AAButtonTheme.swift",
"AAOptionsModel/AAChart.swift",
"AAOptionsModel/AAColumn.swift",
"AAOptionsModel/AACredits.swift",
"AAOptionsModel/AACrosshair.swift",
"AAOptionsModel/AADataLabels.swift",
"AAOptionsModel/AAEasing.swift",
"AAOptionsModel/AALabel.swift",
"AAOptionsModel/AALabels.swift",
"AAOptionsModel/AALang.swift",
"AAOptionsModel/AALayoutAlgorithm.swift",
"AAOptionsModel/AALegend.swift",
"AAOptionsModel/AAMarker.swift",
"AAOptionsModel/AAPackedbubble.swift",
"AAOptionsModel/AAPane.swift",
"AAOptionsModel/AAPie.swift",
"AAOptionsModel/AAPlotBandsElement.swift",
"AAOptionsModel/AAPlotLinesElement.swift",
"AAOptionsModel/AAPlotOptions.swift",
"AAOptionsModel/AAScatter.swift",
"AAOptionsModel/AAScrollablePlotArea.swift",
"AAOptionsModel/AASeries.swift",
"AAOptionsModel/AAStates.swift",
"AAOptionsModel/AAStyle.swift",
"AAOptionsModel/AASubtitle.swift",
"AAOptionsModel/AATitle.swift",
"AAOptionsModel/AATooltip.swift",
"AAOptionsModel/AAXAxis.swift",
"AAOptionsModel/AAYAxis.swift",
"AATool/AAColor.swift",
"AATool/AAExtension.swift",
"AATool/AAGradientColor+DefaultThemes.swift",
"AATool/AAGradientColor+LinearGradient.swift",
"AATool/AAGradientColor+RadialGradient.swift",
"AATool/AAGradientColor.swift",
"PackageBundlePathLoader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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/3] Write sources
[1/3] Copying AAJSFiles.bundle
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/49] Emitting module AAInfographics
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
[5/54] Compiling AAInfographics AALabel.swift
[6/54] Compiling AAInfographics AALabels.swift
[7/54] Compiling AAInfographics AALang.swift
[8/54] Compiling AAInfographics AALayoutAlgorithm.swift
[9/54] Compiling AAInfographics AALegend.swift
[10/54] Compiling AAInfographics AAMarker.swift
[11/54] Compiling AAInfographics AAPackedbubble.swift
[12/54] Compiling AAInfographics AAPane.swift
[13/54] Compiling AAInfographics AAPie.swift
[14/54] Compiling AAInfographics AAPlotBandsElement.swift
[15/54] Compiling AAInfographics AAXAxis.swift
[16/54] Compiling AAInfographics AAYAxis.swift
[17/54] Compiling AAInfographics AAColor.swift
[18/54] Compiling AAInfographics AAExtension.swift
[19/54] Compiling AAInfographics AAGradientColor+DefaultThemes.swift
[20/54] Compiling AAInfographics AAColumn.swift
[21/54] Compiling AAInfographics AACredits.swift
[22/54] Compiling AAInfographics AACrosshair.swift
[23/54] Compiling AAInfographics AADataLabels.swift
[24/54] Compiling AAInfographics AAEasing.swift
[25/54] Compiling AAInfographics AAAxisTitle.swift
[26/54] Compiling AAInfographics AABoxplot.swift
[27/54] Compiling AAInfographics AABubbleLegend.swift
[28/54] Compiling AAInfographics AAButtonTheme.swift
[29/54] Compiling AAInfographics AAChart.swift
[30/54] Compiling AAInfographics AAGradientColor+LinearGradient.swift
[31/54] Compiling AAInfographics AAGradientColor+RadialGradient.swift
[32/54] Compiling AAInfographics AAGradientColor.swift
[33/54] Compiling AAInfographics PackageBundlePathLoader.swift
[34/54] Compiling AAInfographics resource_bundle_accessor.swift
[35/54] Compiling AAInfographics AAPlotLinesElement.swift
[36/54] Compiling AAInfographics AAPlotOptions.swift
[37/54] Compiling AAInfographics AAScatter.swift
[38/54] Compiling AAInfographics AAScrollablePlotArea.swift
[39/54] Compiling AAInfographics AASeries.swift
[40/54] Compiling AAInfographics AAStates.swift
[41/54] Compiling AAInfographics AAStyle.swift
[42/54] Compiling AAInfographics AASubtitle.swift
[43/54] Compiling AAInfographics AATitle.swift
[44/54] Compiling AAInfographics AATooltip.swift
[45/54] Compiling AAInfographics AAChartViewPluginLoader.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:223:23: warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
63 | // Loader for standard version, handling plugin loading and scripts
64 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
| `- note: class 'AAChartViewPluginLoader' does not conform to the 'Sendable' protocol
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
:
221 |
222 | pluginIOQueue.async { [weak self, weak webView] in
223 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
224 | DispatchQueue.main.async {
225 | completion(Set())
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:225:21: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
223 | guard let self else {
224 | DispatchQueue.main.async {
225 | completion(Set())
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
226 | }
227 | return
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:286:72: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
284 | --------------------------------------------------
285 | """)
286 | self.completeOnMainThread(with: Set(), completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
287 | } else {
288 | self.completeOnMainThread(with: successfullyReadPaths, completion: completion)
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:319: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
317 | ) {
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, 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
320 | completion(error)
321 | }
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/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:353:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
347 | }
348 |
349 | private func onMainThread(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
350 | if Thread.isMainThread {
351 | block()
352 | } else {
353 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
354 | }
355 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:320:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, error in
320 | completion(error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
321 | }
322 | }
[46/54] Compiling AAInfographics AAChartViewPluginProvider.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:223:23: warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
63 | // Loader for standard version, handling plugin loading and scripts
64 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
| `- note: class 'AAChartViewPluginLoader' does not conform to the 'Sendable' protocol
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
:
221 |
222 | pluginIOQueue.async { [weak self, weak webView] in
223 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
224 | DispatchQueue.main.async {
225 | completion(Set())
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:225:21: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
223 | guard let self else {
224 | DispatchQueue.main.async {
225 | completion(Set())
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
226 | }
227 | return
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:286:72: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
284 | --------------------------------------------------
285 | """)
286 | self.completeOnMainThread(with: Set(), completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
287 | } else {
288 | self.completeOnMainThread(with: successfullyReadPaths, completion: completion)
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:319: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
317 | ) {
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, 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
320 | completion(error)
321 | }
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/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:353:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
347 | }
348 |
349 | private func onMainThread(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
350 | if Thread.isMainThread {
351 | block()
352 | } else {
353 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
354 | }
355 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:320:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, error in
320 | completion(error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
321 | }
322 | }
[47/54] Compiling AAInfographics AASerializable.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:223:23: warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
63 | // Loader for standard version, handling plugin loading and scripts
64 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
| `- note: class 'AAChartViewPluginLoader' does not conform to the 'Sendable' protocol
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
:
221 |
222 | pluginIOQueue.async { [weak self, weak webView] in
223 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
224 | DispatchQueue.main.async {
225 | completion(Set())
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:225:21: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
223 | guard let self else {
224 | DispatchQueue.main.async {
225 | completion(Set())
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
226 | }
227 | return
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:286:72: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
284 | --------------------------------------------------
285 | """)
286 | self.completeOnMainThread(with: Set(), completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
287 | } else {
288 | self.completeOnMainThread(with: successfullyReadPaths, completion: completion)
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:319: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
317 | ) {
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, 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
320 | completion(error)
321 | }
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/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:353:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
347 | }
348 |
349 | private func onMainThread(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
350 | if Thread.isMainThread {
351 | block()
352 | } else {
353 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
354 | }
355 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:320:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, error in
320 | completion(error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
321 | }
322 | }
[48/54] Compiling AAInfographics AAAnimation.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:223:23: warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
63 | // Loader for standard version, handling plugin loading and scripts
64 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
| `- note: class 'AAChartViewPluginLoader' does not conform to the 'Sendable' protocol
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
:
221 |
222 | pluginIOQueue.async { [weak self, weak webView] in
223 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
224 | DispatchQueue.main.async {
225 | completion(Set())
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:225:21: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
223 | guard let self else {
224 | DispatchQueue.main.async {
225 | completion(Set())
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
226 | }
227 | return
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:286:72: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
284 | --------------------------------------------------
285 | """)
286 | self.completeOnMainThread(with: Set(), completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
287 | } else {
288 | self.completeOnMainThread(with: successfullyReadPaths, completion: completion)
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:319: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
317 | ) {
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, 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
320 | completion(error)
321 | }
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/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:353:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
347 | }
348 |
349 | private func onMainThread(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
350 | if Thread.isMainThread {
351 | block()
352 | } else {
353 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
354 | }
355 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:320:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, error in
320 | completion(error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
321 | }
322 | }
[49/54] Compiling AAInfographics AAAxis.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:67:24: warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
| |- warning: static property 'scriptCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSString>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'scriptCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let cache = NSCache<NSString, NSString>()
69 | cache.countLimit = 64
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:223:23: warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
63 | // Loader for standard version, handling plugin loading and scripts
64 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
65 | internal final class AAChartViewPluginLoader: AAChartViewPluginLoaderProtocol {
| `- note: class 'AAChartViewPluginLoader' does not conform to the 'Sendable' protocol
66 | private let pluginProvider: AAChartViewPluginProviderProtocol
67 | private static let scriptCache: NSCache<NSString, NSString> = {
:
221 |
222 | pluginIOQueue.async { [weak self, weak webView] in
223 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'AAChartViewPluginLoader?' in a '@Sendable' closure
224 | DispatchQueue.main.async {
225 | completion(Set())
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:225:21: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
223 | guard let self else {
224 | DispatchQueue.main.async {
225 | completion(Set())
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
226 | }
227 | return
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:286:72: warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
284 | --------------------------------------------------
285 | """)
286 | self.completeOnMainThread(with: Set(), completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Set<String>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
287 | } else {
288 | self.completeOnMainThread(with: successfullyReadPaths, completion: completion)
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:319: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
317 | ) {
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, 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
320 | completion(error)
321 | }
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/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:353:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
347 | }
348 |
349 | private func onMainThread(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
350 | if Thread.isMainThread {
351 | block()
352 | } else {
353 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
354 | }
355 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginProvider.swift:55:24: warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
42 | private let bundlePathLoader: AAChartBundlePathLoadingProtocol
43 |
44 | private struct AAChartPluginConfiguration {
| `- note: consider making struct 'AAChartPluginConfiguration' conform to the 'Sendable' protocol
45 | let types: Set<AAChartType>
46 | let scripts: [AAChartPluginScriptType]
:
53 |
54 | /// Plugin configurations for standard version chart types
55 | private static let pluginConfigurations: [AAChartPluginConfiguration] = [
| |- warning: static property 'pluginConfigurations' is not concurrency-safe because non-'Sendable' type '[AAChartViewPluginProvider.AAChartPluginConfiguration]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pluginConfigurations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | // --- Funnel & Pyramid Charts ---
57 | .init(types: [.funnel, .pyramid], scripts: [.funnel]),
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartViewPluginLoader.swift:320:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
318 | onMainThread {
319 | webView.evaluateJavaScript(javaScript) { _, error in
320 | completion(error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
321 | }
322 | }
[50/54] Compiling AAInfographics AAChartModel.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:367:22: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
365 | .visible(aaChartModel.xAxisVisible) //whether the x axis is visible
366 | .tickInterval(aaChartModel.xAxisTickInterval) //Number of x-axis coordinate point intervals
367 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
368 | .text(aaChartModel.xAxisTitle)) //x axis title
369 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:391:18: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
389 | .lineWidth(aaChartModel.yAxisLineWidth) //Set the width of the y-axis axis, which is 0 to hide the y-axis axis
390 | .visible(aaChartModel.yAxisVisible)
391 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
392 | .text(aaChartModel.yAxisTitle)) //y axis title
393 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:45: warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
WebKit.WKUserContentController.removeAllUserScripts:2:22: note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeAllUserScripts()}
| `- note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/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: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:9: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:390:9: warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
378 |
379 | //添加一个 debug log 方法, 用于打印一些调试信息
380 | private func debugLog(_ message: String) {
| |- note: calls to instance method 'debugLog' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'WKWebView'
381 | #if DEBUG
382 | print(message)
:
388 | configuration.userContentController.removeAllUserScripts()
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
| `- warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
391 | }
392 | }
[51/54] Compiling AAInfographics AAOptions.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:367:22: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
365 | .visible(aaChartModel.xAxisVisible) //whether the x axis is visible
366 | .tickInterval(aaChartModel.xAxisTickInterval) //Number of x-axis coordinate point intervals
367 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
368 | .text(aaChartModel.xAxisTitle)) //x axis title
369 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:391:18: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
389 | .lineWidth(aaChartModel.yAxisLineWidth) //Set the width of the y-axis axis, which is 0 to hide the y-axis axis
390 | .visible(aaChartModel.yAxisVisible)
391 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
392 | .text(aaChartModel.yAxisTitle)) //y axis title
393 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:45: warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
WebKit.WKUserContentController.removeAllUserScripts:2:22: note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeAllUserScripts()}
| `- note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/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: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:9: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:390:9: warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
378 |
379 | //添加一个 debug log 方法, 用于打印一些调试信息
380 | private func debugLog(_ message: String) {
| |- note: calls to instance method 'debugLog' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'WKWebView'
381 | #if DEBUG
382 | print(message)
:
388 | configuration.userContentController.removeAllUserScripts()
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
| `- warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
391 | }
392 | }
[52/54] Compiling AAInfographics AASeriesElement.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:367:22: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
365 | .visible(aaChartModel.xAxisVisible) //whether the x axis is visible
366 | .tickInterval(aaChartModel.xAxisTickInterval) //Number of x-axis coordinate point intervals
367 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
368 | .text(aaChartModel.xAxisTitle)) //x axis title
369 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:391:18: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
389 | .lineWidth(aaChartModel.yAxisLineWidth) //Set the width of the y-axis axis, which is 0 to hide the y-axis axis
390 | .visible(aaChartModel.yAxisVisible)
391 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
392 | .text(aaChartModel.yAxisTitle)) //y axis title
393 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:45: warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
WebKit.WKUserContentController.removeAllUserScripts:2:22: note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeAllUserScripts()}
| `- note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/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: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:9: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:390:9: warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
378 |
379 | //添加一个 debug log 方法, 用于打印一些调试信息
380 | private func debugLog(_ message: String) {
| |- note: calls to instance method 'debugLog' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'WKWebView'
381 | #if DEBUG
382 | print(message)
:
388 | configuration.userContentController.removeAllUserScripts()
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
| `- warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
391 | }
392 | }
[53/54] Compiling AAInfographics AAChartView+API.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:367:22: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
365 | .visible(aaChartModel.xAxisVisible) //whether the x axis is visible
366 | .tickInterval(aaChartModel.xAxisTickInterval) //Number of x-axis coordinate point intervals
367 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
368 | .text(aaChartModel.xAxisTitle)) //x axis title
369 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:391:18: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
389 | .lineWidth(aaChartModel.yAxisLineWidth) //Set the width of the y-axis axis, which is 0 to hide the y-axis axis
390 | .visible(aaChartModel.yAxisVisible)
391 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
392 | .text(aaChartModel.yAxisTitle)) //y axis title
393 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:45: warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
WebKit.WKUserContentController.removeAllUserScripts:2:22: note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeAllUserScripts()}
| `- note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/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: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:9: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:390:9: warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
378 |
379 | //添加一个 debug log 方法, 用于打印一些调试信息
380 | private func debugLog(_ message: String) {
| |- note: calls to instance method 'debugLog' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'WKWebView'
381 | #if DEBUG
382 | print(message)
:
388 | configuration.userContentController.removeAllUserScripts()
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
| `- warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
391 | }
392 | }
[54/54] Compiling AAInfographics AAChartView.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:367:22: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
365 | .visible(aaChartModel.xAxisVisible) //whether the x axis is visible
366 | .tickInterval(aaChartModel.xAxisTickInterval) //Number of x-axis coordinate point intervals
367 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
368 | .text(aaChartModel.xAxisTitle)) //x axis title
369 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartOptions/AAOptions.swift:391:18: warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
389 | .lineWidth(aaChartModel.yAxisLineWidth) //Set the width of the y-axis axis, which is 0 to hide the y-axis axis
390 | .visible(aaChartModel.yAxisVisible)
391 | .title(AATitle()
| `- warning: 'title' is deprecated: Use `public func title(_ prop: AAAxisTitle?) -> Self {...}` instead. AATitle is deprecated for axis titles.
392 | .text(aaChartModel.yAxisTitle)) //y axis title
393 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:398:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
396 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
397 | extension AAChartView: WKUIDelegate {
398 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, WKFrameInfo, @escaping () -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' to another extension to silence this warning
399 | _ webView: WKWebView,
400 | runJavaScriptAlertPanelWithMessage message: String,
WebKit.WKUIDelegate.webView:3:28: note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
1 | protocol WKUIDelegate {
2 | @available(macOS 10.10, *)
3 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void)}
| `- note: requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:45: warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: call to main actor-isolated instance method 'removeAllUserScripts()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
WebKit.WKUserContentController.removeAllUserScripts:2:22: note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeAllUserScripts()}
| `- note: calls to instance method 'removeAllUserScripts()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/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: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:388:9: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
386 |
387 | deinit {
388 | configuration.userContentController.removeAllUserScripts()
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/AAInfographics/AAChartCreator/AAChartView/AAChartView.swift:390:9: warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
378 |
379 | //添加一个 debug log 方法, 用于打印一些调试信息
380 | private func debugLog(_ message: String) {
| |- note: calls to instance method 'debugLog' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'WKWebView'
381 | #if DEBUG
382 | print(message)
:
388 | configuration.userContentController.removeAllUserScripts()
389 | NotificationCenter.default.removeObserver(self)
390 | debugLog("👻👻👻 AAChartView instance \(self) has been destroyed!")
| `- warning: call to main actor-isolated instance method 'debugLog' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
391 | }
392 | }
Build complete! (7.29s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AAInfographics",
"name" : "AAInfographics",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AAInfographics",
"targets" : [
"AAInfographics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AAInfographics",
"module_type" : "SwiftTarget",
"name" : "AAInfographics",
"path" : "AAInfographics",
"product_memberships" : [
"AAInfographics"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/AAInfographics/AAJSFiles.bundle",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AAChartCreator/AAChartOptions/AAChartModel.swift",
"AAChartCreator/AAChartOptions/AAOptions.swift",
"AAChartCreator/AAChartOptions/AASeriesElement.swift",
"AAChartCreator/AAChartView/AAChartView+API.swift",
"AAChartCreator/AAChartView/AAChartView.swift",
"AAChartCreator/AAChartView/AAChartViewPluginLoader.swift",
"AAChartCreator/AAChartView/AAChartViewPluginProvider.swift",
"AAChartCreator/AASerializable.swift",
"AAOptionsModel/AAAnimation.swift",
"AAOptionsModel/AAAxis.swift",
"AAOptionsModel/AAAxisTitle.swift",
"AAOptionsModel/AABoxplot.swift",
"AAOptionsModel/AABubbleLegend.swift",
"AAOptionsModel/AAButtonTheme.swift",
"AAOptionsModel/AAChart.swift",
"AAOptionsModel/AAColumn.swift",
"AAOptionsModel/AACredits.swift",
"AAOptionsModel/AACrosshair.swift",
"AAOptionsModel/AADataLabels.swift",
"AAOptionsModel/AAEasing.swift",
"AAOptionsModel/AALabel.swift",
"AAOptionsModel/AALabels.swift",
"AAOptionsModel/AALang.swift",
"AAOptionsModel/AALayoutAlgorithm.swift",
"AAOptionsModel/AALegend.swift",
"AAOptionsModel/AAMarker.swift",
"AAOptionsModel/AAPackedbubble.swift",
"AAOptionsModel/AAPane.swift",
"AAOptionsModel/AAPie.swift",
"AAOptionsModel/AAPlotBandsElement.swift",
"AAOptionsModel/AAPlotLinesElement.swift",
"AAOptionsModel/AAPlotOptions.swift",
"AAOptionsModel/AAScatter.swift",
"AAOptionsModel/AAScrollablePlotArea.swift",
"AAOptionsModel/AASeries.swift",
"AAOptionsModel/AAStates.swift",
"AAOptionsModel/AAStyle.swift",
"AAOptionsModel/AASubtitle.swift",
"AAOptionsModel/AATitle.swift",
"AAOptionsModel/AATooltip.swift",
"AAOptionsModel/AAXAxis.swift",
"AAOptionsModel/AAYAxis.swift",
"AATool/AAColor.swift",
"AATool/AAExtension.swift",
"AATool/AAGradientColor+DefaultThemes.swift",
"AATool/AAGradientColor+LinearGradient.swift",
"AATool/AAGradientColor+RadialGradient.swift",
"AATool/AAGradientColor.swift",
"PackageBundlePathLoader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.