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 StyledMarkdown, reference 0.0.6 (5894ca), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 05:19:08 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cocoatoucher/StyledMarkdown.git
Reference: 0.0.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cocoatoucher/StyledMarkdown
 * tag               0.0.6      -> FETCH_HEAD
HEAD is now at 5894ca2 Passing comment to AttributedString initializer.
Cloned https://github.com/cocoatoucher/StyledMarkdown.git
Revision (git rev-parse @):
5894ca265349b41e5e260ad780dea83bff932c88
SUCCESS checkout https://github.com/cocoatoucher/StyledMarkdown.git at 0.0.6
========================================
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": "styledmarkdown",
      "name": "StyledMarkdown",
      "url": "https://github.com/cocoatoucher/StyledMarkdown.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StyledMarkdown",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/cocoatoucher/StyledMarkdown.git
[1/135] Fetching styledmarkdown
Fetched https://github.com/cocoatoucher/StyledMarkdown.git from cache (1.04s)
Creating working copy for https://github.com/cocoatoucher/StyledMarkdown.git
Working copy of https://github.com/cocoatoucher/StyledMarkdown.git resolved at 0.0.6 (5894ca2)
warning: '.resolve-product-dependencies': dependency 'styledmarkdown' 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/cocoatoucher/StyledMarkdown.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "StyledMarkdown",
  "name" : "StyledMarkdown",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "StyledMarkdown",
      "targets" : [
        "StyledMarkdown"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StyledMarkdownTests",
      "module_type" : "SwiftTarget",
      "name" : "StyledMarkdownTests",
      "path" : "Tests/StyledMarkdownTests",
      "sources" : [
        "StyledMarkdownTests.swift"
      ],
      "target_dependencies" : [
        "StyledMarkdown"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StyledMarkdown",
      "module_type" : "SwiftTarget",
      "name" : "StyledMarkdown",
      "path" : "Sources",
      "product_memberships" : [
        "StyledMarkdown"
      ],
      "sources" : [
        "StyledMarkdown/AttributedString.StyledMarkdown.swift",
        "StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift",
        "StyledMarkdown/Style/Style.swift",
        "StyledMarkdown/Style/StyleGroup.swift",
        "StyledMarkdown/Style/StyleModifier.swift",
        "StyledMarkdown/Style/StyleProtocol.swift",
        "StyledMarkdown/Text.StyledMarkdown.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/10] Compiling StyledMarkdown Text.StyledMarkdown.swift
[4/10] Compiling StyledMarkdown StyleModifier.swift
[5/10] Compiling StyledMarkdown StyleProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/StyledMarkdown/Style/StyleProtocol.swift:24:21: warning: conformance of 'NSFont' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
22 |             case .font(let font):
23 |                 if let uiFont = font as? FontType {
24 |                     source.font = uiFont
   |                     `- warning: conformance of 'NSFont' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
25 |                 } else {
26 |                     source.font = font as? SwiftUI.Font
AppKit.NSFont:2:11: note: conformance of 'NSFont' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension NSFont : @unchecked Sendable {
  |           `- note: conformance of 'NSFont' to 'Sendable' has been explicitly marked unavailable here
3 | }
[6/10] Compiling StyledMarkdown StyleGroup.swift
[7/10] Compiling StyledMarkdown AttributeScopes.StyledMarkdownAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift:32:16: warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     typealias Value = String
31 |
32 |     static var name = "style"
   |                |- warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'name' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'name' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift:41:16: warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 |     }
40 |
41 |     static var name = "link"
   |                |- warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'name' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'name' 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
42 | }
43 |
[8/10] Compiling StyledMarkdown AttributedString.StyledMarkdown.swift
[9/10] Emitting module StyledMarkdown
/Users/admin/builder/spi-builder-workspace/Sources/StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift:32:16: warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     typealias Value = String
31 |
32 |     static var name = "style"
   |                |- warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'name' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'name' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift:41:16: warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 |     }
40 |
41 |     static var name = "link"
   |                |- warning: static property 'name' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'name' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'name' 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
42 | }
43 |
[10/10] Compiling StyledMarkdown Style.swift
Build complete! (16.07s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "StyledMarkdown",
  "name" : "StyledMarkdown",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "StyledMarkdown",
      "targets" : [
        "StyledMarkdown"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StyledMarkdownTests",
      "module_type" : "SwiftTarget",
      "name" : "StyledMarkdownTests",
      "path" : "Tests/StyledMarkdownTests",
      "sources" : [
        "StyledMarkdownTests.swift"
      ],
      "target_dependencies" : [
        "StyledMarkdown"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StyledMarkdown",
      "module_type" : "SwiftTarget",
      "name" : "StyledMarkdown",
      "path" : "Sources",
      "product_memberships" : [
        "StyledMarkdown"
      ],
      "sources" : [
        "StyledMarkdown/AttributedString.StyledMarkdown.swift",
        "StyledMarkdown/Style/AttributeScopes.StyledMarkdownAttributes.swift",
        "StyledMarkdown/Style/Style.swift",
        "StyledMarkdown/Style/StyleGroup.swift",
        "StyledMarkdown/Style/StyleModifier.swift",
        "StyledMarkdown/Style/StyleProtocol.swift",
        "StyledMarkdown/Text.StyledMarkdown.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.