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 Markdown, reference main (e6b09b), with Swift 6.0 for macOS (SPM) on 12 Oct 2024 13:28:04 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jaywcjlove/swiftui-markdown.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jaywcjlove/swiftui-markdown
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e6b09bf ci: update workflows config.
Cloned https://github.com/jaywcjlove/swiftui-markdown.git
Revision (git rev-parse @):
e6b09bfbf5eb47111aa661d29ab990b62abac70e
SUCCESS checkout https://github.com/jaywcjlove/swiftui-markdown.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftui-markdown",
      "name": "Markdown",
      "url": "https://github.com/jaywcjlove/swiftui-markdown.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-markdown",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jaywcjlove/swiftui-markdown.git
[1/521] Fetching swiftui-markdown
Fetched https://github.com/jaywcjlove/swiftui-markdown.git from cache (1.14s)
Creating working copy for https://github.com/jaywcjlove/swiftui-markdown.git
Working copy of https://github.com/jaywcjlove/swiftui-markdown.git resolved at main (e6b09bf)
warning: '.resolve-product-dependencies': dependency 'swiftui-markdown' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/jaywcjlove/swiftui-markdown.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[1/3] Copying web.bundle
[2/3] Write swift-version--4A847ED0836F2485.txt
[4/8] Compiling Markdown Markdown.swift
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/Markdown.swift:124:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'MarkdownStyle' may have shared mutable state; this is an error in the Swift 6 language mode
122 |
123 | private struct MarkdownStyleKey: EnvironmentKey {
124 |   static let defaultValue = MarkdownStyle()
    |              |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'MarkdownStyle' may have shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/MarkdownStyle.swift:10:15: note: consider making struct 'MarkdownStyle' conform to the 'Sendable' protocol
 8 | import SwiftUI
 9 |
10 | public struct MarkdownStyle: Hashable {
   |               `- note: consider making struct 'MarkdownStyle' conform to the 'Sendable' protocol
11 |     public var padding: Int?
12 |     public var paddingTop: Int?
[5/8] Compiling Markdown resource_bundle_accessor.swift
[6/8] Compiling Markdown MarkdownWebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/MarkdownWebView.swift:125:17: warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
123 |     }
124 |     ///  open links in browsers
125 |     public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
    |                 |- warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
    |                 |- note: candidate has non-matching type '(WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> ()'
    |                 `- note: move 'webView(_:decidePolicyFor:decisionHandler:)' to an extension to silence this warning
126 |         if let url = navigationAction.request.url {
127 |             if url.isFileURL == false {
WebKit.WKNavigationDelegate:3:30: note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 1 | @MainActor public protocol WKNavigationDelegate : NSObjectProtocol {
 2 |     @available(macOS 10.10, *)
 3 |     @MainActor optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping @MainActor @Sendable (WKNavigationActionPolicy) -> Void)
   |                              `- note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 4 |     @available(macOS 10.10, *)
 5 |     optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy
[7/8] Emitting module Markdown
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/Markdown.swift:124:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'MarkdownStyle' may have shared mutable state; this is an error in the Swift 6 language mode
122 |
123 | private struct MarkdownStyleKey: EnvironmentKey {
124 |   static let defaultValue = MarkdownStyle()
    |              |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'MarkdownStyle' may have shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/MarkdownStyle.swift:10:15: note: consider making struct 'MarkdownStyle' conform to the 'Sendable' protocol
 8 | import SwiftUI
 9 |
10 | public struct MarkdownStyle: Hashable {
   |               `- note: consider making struct 'MarkdownStyle' conform to the 'Sendable' protocol
11 |     public var padding: Int?
12 |     public var paddingTop: Int?
/Users/admin/builder/spi-builder-workspace/Sources/Markdown/MarkdownWebView.swift:125:17: warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
123 |     }
124 |     ///  open links in browsers
125 |     public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
    |                 |- warning: instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
    |                 |- note: candidate has non-matching type '(WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> ()'
    |                 `- note: move 'webView(_:decidePolicyFor:decisionHandler:)' to an extension to silence this warning
126 |         if let url = navigationAction.request.url {
127 |             if url.isFileURL == false {
WebKit.WKNavigationDelegate:3:30: note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 1 | @MainActor public protocol WKNavigationDelegate : NSObjectProtocol {
 2 |     @available(macOS 10.10, *)
 3 |     @MainActor optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping @MainActor @Sendable (WKNavigationActionPolicy) -> Void)
   |                              `- note: requirement 'webView(_:decidePolicyFor:decisionHandler:)' declared here
 4 |     @available(macOS 10.10, *)
 5 |     optional func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy
[8/8] Compiling Markdown MarkdownStyle.swift
Build complete! (14.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Markdown",
  "name" : "Markdown",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Markdown",
      "targets" : [
        "Markdown"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MarkdownTests",
      "module_type" : "SwiftTarget",
      "name" : "MarkdownTests",
      "path" : "Tests/MarkdownTests",
      "sources" : [
        "MarkdownTests.swift"
      ],
      "target_dependencies" : [
        "Markdown"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Markdown",
      "module_type" : "SwiftTarget",
      "name" : "Markdown",
      "path" : "Sources/Markdown",
      "product_memberships" : [
        "Markdown"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Markdown/Resources/web.bundle",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Markdown.swift",
        "MarkdownStyle.swift",
        "MarkdownWebView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.