This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SVGWebView with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZeeZide/SVGWebView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZeeZide/SVGWebView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4ddd1aa Update README.md
Cloned https://github.com/ZeeZide/SVGWebView.git
Revision (git rev-parse @):
4ddd1aaab938b4e1369fbf363257917e27ee65fe
SUCCESS checkout https://github.com/ZeeZide/SVGWebView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ZeeZide/SVGWebView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Compiling SVGWebView SVGWebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SVGWebView/SVGWebView.swift:136:21: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 |     let html : String
111 |
112 |     private func makeWebView() -> WKWebView {
    |                  `- note: add '@MainActor' to make instance method 'makeWebView()' part of global actor 'MainActor'
113 |       let prefs = WKPreferences()
114 |       #if os(macOS)
    :
134 |       }
135 |
136 |       let webView = WKWebView(frame: .zero, configuration: config)
    |                     `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 |       #if !os(macOS)
138 |         webView.scrollView.isScrollEnabled = false
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
  7 |     weak open var UIDelegate: (any WKUIDelegate)? { get set }
  8 |     open var backForwardList: WKBackForwardList { get }
  9 |     @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
    |                       `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
 10 |     public init?(coder: NSCoder)
 11 |     open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SVGWebView/SVGWebView.swift:141:15: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 |     let html : String
111 |
112 |     private func makeWebView() -> WKWebView {
    |                  `- note: add '@MainActor' to make instance method 'makeWebView()' part of global actor 'MainActor'
113 |       let prefs = WKPreferences()
114 |       #if os(macOS)
    :
139 |       #endif
140 |
141 |       webView.loadHTMLString(html, baseURL: nil)
    |               `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 |
143 |       // Sometimes necessary to make things show up initially. No idea why.
WebKit.WKWebView:19:26: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 17 |     @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
 18 |     open func loadFileURL(_ URL: URL, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation?
 19 |     @MainActor open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
    |                          `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 20 |     @available(macOS 10.11, *)
 21 |     open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/SVGWebView/SVGWebView.swift:153:15: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 |       return webView
151 |     }
152 |     private func updateWebView(_ webView: WKWebView, context: Context) {
    |                  `- note: add '@MainActor' to make instance method 'updateWebView(_:context:)' part of global actor 'MainActor'
153 |       webView.loadHTMLString(html, baseURL: nil)
    |               `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
154 |     }
155 |
WebKit.WKWebView:19:26: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 17 |     @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
 18 |     open func loadFileURL(_ URL: URL, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation?
 19 |     @MainActor open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
    |                          `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 20 |     @available(macOS 10.11, *)
 21 |     open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
[4/4] Emitting module SVGWebView
Build complete! (32.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SVGWebView",
  "name" : "SVGWebView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SVGWebView",
      "targets" : [
        "SVGWebView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SVGWebView",
      "module_type" : "SwiftTarget",
      "name" : "SVGWebView",
      "path" : "Sources/SVGWebView",
      "product_memberships" : [
        "SVGWebView"
      ],
      "sources" : [
        "SVGWebView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.