Build Information
Successful build of AAInfographics-Pro, reference 9.0.1 (793f2b
), with Swift 6.1 for macOS (SPM) on 5 Aug 2025 13:25:32 UTC.
Swift 6 data race errors: 0
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 InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
Reference: 9.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AAChartModel/AAChartKit-Swift-Pro
* tag 9.0.1 -> FETCH_HEAD
HEAD is now at 793f2bc Update AAInfographics-Pro.podspec
Cloned https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
Revision (git rev-parse @):
793f2bc1ab19f8990eeb159aea9b0412aa20e412
SUCCESS checkout https://github.com/AAChartModel/AAChartKit-Swift-Pro.git at 9.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "aachartkit-swift-pro",
"name": "AAInfographics-Pro",
"url": "https://github.com/AAChartModel/AAChartKit-Swift-Pro.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AAChartKit-Swift-Pro",
"dependencies": [
]
}
]
}
Fetching https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
[1/2260] Fetching aachartkit-swift-pro
Fetched https://github.com/AAChartModel/AAChartKit-Swift-Pro.git from cache (1.02s)
Creating working copy for https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
Working copy of https://github.com/AAChartModel/AAChartKit-Swift-Pro.git resolved at 9.0.1 (793f2bc)
warning: '.resolve-product-dependencies': dependency 'aachartkit-swift-pro' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
{
"dependencies" : [
],
"manifest_display_name" : "AAInfographics-Pro",
"name" : "AAInfographics-Pro",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AAInfographics-Pro",
"targets" : [
"AAInfographics-Pro"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AAInfographics_Pro",
"module_type" : "SwiftTarget",
"name" : "AAInfographics-Pro",
"path" : "AAInfographics-Pro",
"product_memberships" : [
"AAInfographics-Pro"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAJSFiles.bundle",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AAChartCreator/AAChartModel.swift",
"AAChartCreator/AAChartView+API.swift",
"AAChartCreator/AAChartView.swift",
"AAChartCreator/AAChartViewPluginProvider.swift",
"AAChartCreator/AAOptions.swift",
"AAChartCreator/AASerializable.swift",
"AAChartCreator/AASeriesElement.swift",
"AAOptionsModel/AAAnimation.swift",
"AAOptionsModel/AAAxis.swift",
"AAOptionsModel/AABoxplot.swift",
"AAOptionsModel/AAChart.swift",
"AAOptionsModel/AACredits.swift",
"AAOptionsModel/AACrosshair.swift",
"AAOptionsModel/AADataLabels.swift",
"AAOptionsModel/AALabel.swift",
"AAOptionsModel/AALabels.swift",
"AAOptionsModel/AALang.swift",
"AAOptionsModel/AALegend.swift",
"AAOptionsModel/AAMarker.swift",
"AAOptionsModel/AAPane.swift",
"AAOptionsModel/AAPlotBandsElement.swift",
"AAOptionsModel/AAPlotLinesElement.swift",
"AAOptionsModel/AAPlotOptions.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",
"AAOptionsProModel/AABulletDataElement.swift",
"AAOptionsProModel/AAColorAxis.swift",
"AAOptionsProModel/AAData.swift",
"AAOptionsProModel/AAHeatmap.swift",
"AAOptionsProModel/AAItem.swift",
"AAOptionsProModel/AALayoutAlgorithm.swift",
"AAOptionsProModel/AALevelsElement.swift",
"AAOptionsProModel/AAPackedbubble.swift",
"AAOptionsProModel/AAParallelAxes.swift",
"AAOptionsProModel/AASolidgauge.swift",
"AAOptionsProModel/AASolidgaugeDataElement.swift",
"AAOptionsProModel/AATreemap.swift",
"AATool/AAColor.swift",
"AATool/AAExtension.swift",
"AATool/AAGradientColor.swift",
"PackageBundlePathLoader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/Info.plist': File not found.
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_Pro
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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 |
[5/53] Compiling AAInfographics_Pro AAExtension.swift
[6/53] Compiling AAInfographics_Pro AAGradientColor.swift
[7/53] Compiling AAInfographics_Pro PackageBundlePathLoader.swift
[8/53] Compiling AAInfographics_Pro resource_bundle_accessor.swift
[9/53] Compiling AAInfographics_Pro AASerializable.swift
[10/53] Compiling AAInfographics_Pro AASeriesElement.swift
[11/53] Compiling AAInfographics_Pro AAAnimation.swift
[12/53] Compiling AAInfographics_Pro AAAxis.swift
[13/53] Compiling AAInfographics_Pro AABoxplot.swift
[14/53] Compiling AAInfographics_Pro AAParallelAxes.swift
[15/53] Compiling AAInfographics_Pro AASolidgauge.swift
[16/53] Compiling AAInfographics_Pro AASolidgaugeDataElement.swift
[17/53] Compiling AAInfographics_Pro AATreemap.swift
[18/53] Compiling AAInfographics_Pro AAColor.swift
[19/53] Compiling AAInfographics_Pro AAHeatmap.swift
[20/53] Compiling AAInfographics_Pro AAItem.swift
[21/53] Compiling AAInfographics_Pro AALayoutAlgorithm.swift
[22/53] Compiling AAInfographics_Pro AALevelsElement.swift
[23/53] Compiling AAInfographics_Pro AAPackedbubble.swift
[24/53] Compiling AAInfographics_Pro AAChart.swift
[25/53] Compiling AAInfographics_Pro AACredits.swift
[26/53] Compiling AAInfographics_Pro AACrosshair.swift
[27/53] Compiling AAInfographics_Pro AADataLabels.swift
[28/53] Compiling AAInfographics_Pro AALabel.swift
[29/53] Compiling AAInfographics_Pro AAStates.swift
[30/53] Compiling AAInfographics_Pro AAStyle.swift
[31/53] Compiling AAInfographics_Pro AASubtitle.swift
[32/53] Compiling AAInfographics_Pro AATitle.swift
[33/53] Compiling AAInfographics_Pro AATooltip.swift
[34/53] Compiling AAInfographics_Pro AALabels.swift
[35/53] Compiling AAInfographics_Pro AALang.swift
[36/53] Compiling AAInfographics_Pro AALegend.swift
[37/53] Compiling AAInfographics_Pro AAMarker.swift
[38/53] Compiling AAInfographics_Pro AAPane.swift
[39/53] Compiling AAInfographics_Pro AAXAxis.swift
[40/53] Compiling AAInfographics_Pro AAYAxis.swift
[41/53] Compiling AAInfographics_Pro AABulletDataElement.swift
[42/53] Compiling AAInfographics_Pro AAColorAxis.swift
[43/53] Compiling AAInfographics_Pro AAData.swift
[44/53] Compiling AAInfographics_Pro AAPlotBandsElement.swift
[45/53] Compiling AAInfographics_Pro AAPlotLinesElement.swift
[46/53] Compiling AAInfographics_Pro AAPlotOptions.swift
[47/53] Compiling AAInfographics_Pro AAScrollablePlotArea.swift
[48/53] Compiling AAInfographics_Pro AASeries.swift
[49/53] Compiling AAInfographics_Pro AAChartModel.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:374: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
362 |
363 | //添加一个 debug log 方法, 用于打印一些调试信息
364 | 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'
365 | #if DEBUG
366 | print(message)
:
372 | configuration.userContentController.removeAllUserScripts()
373 | NotificationCenter.default.removeObserver(self)
374 | 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
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:364:17: 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
327 |
328 | // Function to load and evaluate scripts as a single combined batch
329 | private func loadAndEvaluateCombinedPluginScript(
| `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:completion:)' part of global actor 'MainActor'
330 | webView: WKWebView,
331 | scriptsToLoad: Set<String>,
:
362 | debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
363 |
364 | webView.evaluateJavaScript(combinedJSString) { _, 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
365 | if let error = error {
366 | var errorDetails = "Error: \(error.localizedDescription)"
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401:18: 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
398 | // Need a way to evaluate JS safely, similar to AAChartView's method
399 | // This could be passed in or made static/global if appropriate
400 | private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
| `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
401 | webView.evaluateJavaScript(jsString, completionHandler: { (item, 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
402 | #if DEBUG
403 | // Simplified error logging for brevity, reuse AAChartView's detailed logging if needed
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:385:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
383 | """
384 | }
385 | self.debugLog("""
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
386 | ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
387 | --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:391:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
389 | --------------------------------------------------
390 | """)
391 | completion(Set())
| |- 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
392 | } else {
393 | completion(successfullyReadPaths)
[50/53] Compiling AAInfographics_Pro AAChartView+API.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:374: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
362 |
363 | //添加一个 debug log 方法, 用于打印一些调试信息
364 | 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'
365 | #if DEBUG
366 | print(message)
:
372 | configuration.userContentController.removeAllUserScripts()
373 | NotificationCenter.default.removeObserver(self)
374 | 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
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:364:17: 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
327 |
328 | // Function to load and evaluate scripts as a single combined batch
329 | private func loadAndEvaluateCombinedPluginScript(
| `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:completion:)' part of global actor 'MainActor'
330 | webView: WKWebView,
331 | scriptsToLoad: Set<String>,
:
362 | debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
363 |
364 | webView.evaluateJavaScript(combinedJSString) { _, 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
365 | if let error = error {
366 | var errorDetails = "Error: \(error.localizedDescription)"
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401:18: 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
398 | // Need a way to evaluate JS safely, similar to AAChartView's method
399 | // This could be passed in or made static/global if appropriate
400 | private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
| `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
401 | webView.evaluateJavaScript(jsString, completionHandler: { (item, 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
402 | #if DEBUG
403 | // Simplified error logging for brevity, reuse AAChartView's detailed logging if needed
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:385:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
383 | """
384 | }
385 | self.debugLog("""
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
386 | ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
387 | --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:391:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
389 | --------------------------------------------------
390 | """)
391 | completion(Set())
| |- 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
392 | } else {
393 | completion(successfullyReadPaths)
[51/53] Compiling AAInfographics_Pro AAChartView.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:374: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
362 |
363 | //添加一个 debug log 方法, 用于打印一些调试信息
364 | 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'
365 | #if DEBUG
366 | print(message)
:
372 | configuration.userContentController.removeAllUserScripts()
373 | NotificationCenter.default.removeObserver(self)
374 | 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
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:364:17: 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
327 |
328 | // Function to load and evaluate scripts as a single combined batch
329 | private func loadAndEvaluateCombinedPluginScript(
| `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:completion:)' part of global actor 'MainActor'
330 | webView: WKWebView,
331 | scriptsToLoad: Set<String>,
:
362 | debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
363 |
364 | webView.evaluateJavaScript(combinedJSString) { _, 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
365 | if let error = error {
366 | var errorDetails = "Error: \(error.localizedDescription)"
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401:18: 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
398 | // Need a way to evaluate JS safely, similar to AAChartView's method
399 | // This could be passed in or made static/global if appropriate
400 | private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
| `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
401 | webView.evaluateJavaScript(jsString, completionHandler: { (item, 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
402 | #if DEBUG
403 | // Simplified error logging for brevity, reuse AAChartView's detailed logging if needed
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:385:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
383 | """
384 | }
385 | self.debugLog("""
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
386 | ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
387 | --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:391:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
389 | --------------------------------------------------
390 | """)
391 | completion(Set())
| |- 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
392 | } else {
393 | completion(successfullyReadPaths)
[52/53] Compiling AAInfographics_Pro AAChartViewPluginProvider.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:374: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
362 |
363 | //添加一个 debug log 方法, 用于打印一些调试信息
364 | 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'
365 | #if DEBUG
366 | print(message)
:
372 | configuration.userContentController.removeAllUserScripts()
373 | NotificationCenter.default.removeObserver(self)
374 | 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
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:364:17: 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
327 |
328 | // Function to load and evaluate scripts as a single combined batch
329 | private func loadAndEvaluateCombinedPluginScript(
| `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:completion:)' part of global actor 'MainActor'
330 | webView: WKWebView,
331 | scriptsToLoad: Set<String>,
:
362 | debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
363 |
364 | webView.evaluateJavaScript(combinedJSString) { _, 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
365 | if let error = error {
366 | var errorDetails = "Error: \(error.localizedDescription)"
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401:18: 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
398 | // Need a way to evaluate JS safely, similar to AAChartView's method
399 | // This could be passed in or made static/global if appropriate
400 | private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
| `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
401 | webView.evaluateJavaScript(jsString, completionHandler: { (item, 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
402 | #if DEBUG
403 | // Simplified error logging for brevity, reuse AAChartView's detailed logging if needed
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:385:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
383 | """
384 | }
385 | self.debugLog("""
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
386 | ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
387 | --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:391:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
389 | --------------------------------------------------
390 | """)
391 | completion(Set())
| |- 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
392 | } else {
393 | completion(successfullyReadPaths)
[53/53] Compiling AAInfographics_Pro AAOptions.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | open func webView(
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
383 | _ webView: WKWebView,
384 | runJavaScriptAlertPanelWithMessage message: String,
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartView.swift:382:15: warning: instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
380 | @available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
381 | extension AAChartView: WKUIDelegate {
382 | 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
383 | _ webView: WKWebView,
384 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:372: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
370 |
371 | deinit {
372 | 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
373 | NotificationCenter.default.removeObserver(self)
374 | 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-Pro/AAChartCreator/AAChartView.swift:374: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
362 |
363 | //添加一个 debug log 方法, 用于打印一些调试信息
364 | 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'
365 | #if DEBUG
366 | print(message)
:
372 | configuration.userContentController.removeAllUserScripts()
373 | NotificationCenter.default.removeObserver(self)
374 | 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
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:364:17: 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
327 |
328 | // Function to load and evaluate scripts as a single combined batch
329 | private func loadAndEvaluateCombinedPluginScript(
| `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:completion:)' part of global actor 'MainActor'
330 | webView: WKWebView,
331 | scriptsToLoad: Set<String>,
:
362 | debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
363 |
364 | webView.evaluateJavaScript(combinedJSString) { _, 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
365 | if let error = error {
366 | var errorDetails = "Error: \(error.localizedDescription)"
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401:18: 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
398 | // Need a way to evaluate JS safely, similar to AAChartView's method
399 | // This could be passed in or made static/global if appropriate
400 | private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
| `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
401 | webView.evaluateJavaScript(jsString, completionHandler: { (item, 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
402 | #if DEBUG
403 | // Simplified error logging for brevity, reuse AAChartView's detailed logging if needed
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-Pro/AAChartCreator/AAChartViewPluginProvider.swift:385:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
383 | """
384 | }
385 | self.debugLog("""
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
386 | ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
387 | --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:391:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
389 | --------------------------------------------------
390 | """)
391 | completion(Set())
| |- 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
392 | } else {
393 | completion(successfullyReadPaths)
Build complete! (7.41s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/Info.plist': File not found.
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AAInfographics-Pro",
"name" : "AAInfographics-Pro",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AAInfographics-Pro",
"targets" : [
"AAInfographics-Pro"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AAInfographics_Pro",
"module_type" : "SwiftTarget",
"name" : "AAInfographics-Pro",
"path" : "AAInfographics-Pro",
"product_memberships" : [
"AAInfographics-Pro"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAJSFiles.bundle",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AAChartCreator/AAChartModel.swift",
"AAChartCreator/AAChartView+API.swift",
"AAChartCreator/AAChartView.swift",
"AAChartCreator/AAChartViewPluginProvider.swift",
"AAChartCreator/AAOptions.swift",
"AAChartCreator/AASerializable.swift",
"AAChartCreator/AASeriesElement.swift",
"AAOptionsModel/AAAnimation.swift",
"AAOptionsModel/AAAxis.swift",
"AAOptionsModel/AABoxplot.swift",
"AAOptionsModel/AAChart.swift",
"AAOptionsModel/AACredits.swift",
"AAOptionsModel/AACrosshair.swift",
"AAOptionsModel/AADataLabels.swift",
"AAOptionsModel/AALabel.swift",
"AAOptionsModel/AALabels.swift",
"AAOptionsModel/AALang.swift",
"AAOptionsModel/AALegend.swift",
"AAOptionsModel/AAMarker.swift",
"AAOptionsModel/AAPane.swift",
"AAOptionsModel/AAPlotBandsElement.swift",
"AAOptionsModel/AAPlotLinesElement.swift",
"AAOptionsModel/AAPlotOptions.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",
"AAOptionsProModel/AABulletDataElement.swift",
"AAOptionsProModel/AAColorAxis.swift",
"AAOptionsProModel/AAData.swift",
"AAOptionsProModel/AAHeatmap.swift",
"AAOptionsProModel/AAItem.swift",
"AAOptionsProModel/AALayoutAlgorithm.swift",
"AAOptionsProModel/AALevelsElement.swift",
"AAOptionsProModel/AAPackedbubble.swift",
"AAOptionsProModel/AAParallelAxes.swift",
"AAOptionsProModel/AASolidgauge.swift",
"AAOptionsProModel/AASolidgaugeDataElement.swift",
"AAOptionsProModel/AATreemap.swift",
"AATool/AAColor.swift",
"AATool/AAExtension.swift",
"AATool/AAGradientColor.swift",
"PackageBundlePathLoader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/Info.plist': File not found.
Done.