The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of AAInfographics-Pro, reference master (b93dfb), with Swift 6.1 for macOS (SPM) on 28 Oct 2025 16:48:42 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AAChartModel/AAChartKit-Swift-Pro
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b93dfb3 Fix typo in CHINESE-README.md
Cloned https://github.com/AAChartModel/AAChartKit-Swift-Pro.git
Revision (git rev-parse @):
b93dfb3e736caa0b52136e69eae5cecc10990a2f
SUCCESS checkout https://github.com/AAChartModel/AAChartKit-Swift-Pro.git at master
========================================
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/AAOrganization.swift",
        "AAOptionsProModel/AAPackedbubble.swift",
        "AAOptionsProModel/AAParallelAxes.swift",
        "AAOptionsProModel/AAPictorial.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/50] Emitting module AAInfographics_Pro
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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 |
[5/55] Compiling AAInfographics_Pro AAItem.swift
[6/55] Compiling AAInfographics_Pro AALayoutAlgorithm.swift
[7/55] Compiling AAInfographics_Pro AALevelsElement.swift
[8/55] Compiling AAInfographics_Pro AAOrganization.swift
[9/55] Compiling AAInfographics_Pro AAPackedbubble.swift
[10/55] Compiling AAInfographics_Pro AAColor.swift
[11/55] Compiling AAInfographics_Pro AAExtension.swift
[12/55] Compiling AAInfographics_Pro AAGradientColor.swift
[13/55] Compiling AAInfographics_Pro PackageBundlePathLoader.swift
[14/55] Compiling AAInfographics_Pro resource_bundle_accessor.swift
[15/55] Compiling AAInfographics_Pro AAYAxis.swift
[16/55] Compiling AAInfographics_Pro AABulletDataElement.swift
[17/55] Compiling AAInfographics_Pro AAColorAxis.swift
[18/55] Compiling AAInfographics_Pro AAData.swift
[19/55] Compiling AAInfographics_Pro AAHeatmap.swift
[20/55] Compiling AAInfographics_Pro AASeriesElement.swift
[21/55] Compiling AAInfographics_Pro AAAnimation.swift
[22/55] Compiling AAInfographics_Pro AAAxis.swift
[23/55] Compiling AAInfographics_Pro AABoxplot.swift
[24/55] Compiling AAInfographics_Pro AAChart.swift
[25/55] Compiling AAInfographics_Pro AAParallelAxes.swift
[26/55] Compiling AAInfographics_Pro AAPictorial.swift
[27/55] Compiling AAInfographics_Pro AASolidgauge.swift
[28/55] Compiling AAInfographics_Pro AASolidgaugeDataElement.swift
[29/55] Compiling AAInfographics_Pro AATreemap.swift
[30/55] Compiling AAInfographics_Pro AALang.swift
[31/55] Compiling AAInfographics_Pro AALegend.swift
[32/55] Compiling AAInfographics_Pro AAMarker.swift
[33/55] Compiling AAInfographics_Pro AAPane.swift
[34/55] Compiling AAInfographics_Pro AAPlotBandsElement.swift
[35/55] Compiling AAInfographics_Pro AACredits.swift
[36/55] Compiling AAInfographics_Pro AACrosshair.swift
[37/55] Compiling AAInfographics_Pro AADataLabels.swift
[38/55] Compiling AAInfographics_Pro AALabel.swift
[39/55] Compiling AAInfographics_Pro AALabels.swift
[40/55] Compiling AAInfographics_Pro AAStyle.swift
[41/55] Compiling AAInfographics_Pro AASubtitle.swift
[42/55] Compiling AAInfographics_Pro AATitle.swift
[43/55] Compiling AAInfographics_Pro AATooltip.swift
[44/55] Compiling AAInfographics_Pro AAXAxis.swift
[45/55] Compiling AAInfographics_Pro AAPlotLinesElement.swift
[46/55] Compiling AAInfographics_Pro AAPlotOptions.swift
[47/55] Compiling AAInfographics_Pro AAScrollablePlotArea.swift
[48/55] Compiling AAInfographics_Pro AASeries.swift
[49/55] Compiling AAInfographics_Pro AAStates.swift
[50/55] Compiling AAInfographics_Pro AAChartModel.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
[51/55] Compiling AAInfographics_Pro AAChartView+API.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
[52/55] Compiling AAInfographics_Pro AAChartView.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
[53/55] Compiling AAInfographics_Pro AAChartViewPluginProvider.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
[54/55] Compiling AAInfographics_Pro AAOptions.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
[55/55] Compiling AAInfographics_Pro AASerializable.swift
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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-Pro/AAChartCreator/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 | }
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:401: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
363 |
364 |     // Function to load and evaluate scripts as a single combined batch
365 |     private func loadAndEvaluateCombinedPluginScript(
    |                  `- note: add '@MainActor' to make instance method 'loadAndEvaluateCombinedPluginScript(webView:scriptsToLoad:dependencies:completion:)' part of global actor 'MainActor'
366 |         webView: WKWebView,
367 |         scriptsToLoad: Set<String>,
    :
399 |         debugLog("ℹ️ [ProPluginLoader] Evaluating combined plugin scripts (\(successfullyReadPaths.count) files)...")
400 |
401 |         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
402 |             if let error = error {
403 |                  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:438: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
435 |     // Need a way to evaluate JS safely, similar to AAChartView's method
436 |     // This could be passed in or made static/global if appropriate
437 |     private func safeEvaluateJavaScriptString(webView: WKWebView, _ jsString: String) {
    |                  `- note: add '@MainActor' to make instance method 'safeEvaluateJavaScriptString(webView:_:)' part of global actor 'MainActor'
438 |          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
439 |              #if DEBUG
440 |              // 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:422:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
420 |                      """
421 |                  }
422 |                 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
423 |                 ❌ [ProPluginLoader] Error evaluating combined plugin scripts:
424 |                 --------------------------------------------------
/Users/admin/builder/spi-builder-workspace/AAInfographics-Pro/AAChartCreator/AAChartViewPluginProvider.swift:428:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
426 |                 --------------------------------------------------
427 |                 """)
428 |                 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
429 |             } else {
430 |                 completion(successfullyReadPaths)
Build complete! (7.66s)
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/AAOrganization.swift",
        "AAOptionsProModel/AAPackedbubble.swift",
        "AAOptionsProModel/AAParallelAxes.swift",
        "AAOptionsProModel/AAPictorial.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.