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 ReadiumFuzi, reference 4.0.0 (347aab), with Swift 6.0 for macOS (SPM) on 11 Dec 2024 14:51:28 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.5
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readium/Fuzi.git
Reference: 4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/readium/Fuzi
 * tag               4.0.0      -> FETCH_HEAD
HEAD is now at 347aab1 Rename packages (#2)
Cloned https://github.com/readium/Fuzi.git
Revision (git rev-parse @):
347aab158ff8894966ff80469b384bb5337928cd
SUCCESS checkout https://github.com/readium/Fuzi.git at 4.0.0
========================================
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": "fuzi",
      "name": "ReadiumFuzi",
      "url": "https://github.com/readium/Fuzi.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fuzi",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/readium/Fuzi.git
[1/840] Fetching fuzi
Fetched https://github.com/readium/Fuzi.git from cache (0.84s)
Creating working copy for https://github.com/readium/Fuzi.git
Working copy of https://github.com/readium/Fuzi.git resolved at 4.0.0 (347aab1)
warning: '.resolve-product-dependencies': dependency 'fuzi' 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/readium/Fuzi.git
https://github.com/readium/Fuzi.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ReadiumFuzi",
  "name" : "ReadiumFuzi",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ReadiumFuzi",
      "targets" : [
        "ReadiumFuzi"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReadiumFuziTests",
      "module_type" : "SwiftTarget",
      "name" : "ReadiumFuziTests",
      "path" : "Tests",
      "sources" : [
        "AtomTests.swift",
        "CSSTests.swift",
        "DefaultNamespaceXPathTests.swift",
        "HTMLTests.swift",
        "VMAPTests.swift",
        "XMLTests.swift",
        "XPathFunctionResultTests.swift"
      ],
      "target_dependencies" : [
        "ReadiumFuzi"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ReadiumFuzi",
      "module_type" : "SwiftTarget",
      "name" : "ReadiumFuzi",
      "path" : "Sources",
      "product_memberships" : [
        "ReadiumFuzi"
      ],
      "sources" : [
        "Document.swift",
        "Element.swift",
        "Error.swift",
        "Helpers.swift",
        "Node.swift",
        "NodeSet.swift",
        "Queryable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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 ReadiumFuzi NodeSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/NodeSet.swift:104:21: warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | /// XPath selector result node set
102 | open class XPathNodeSet: NodeSet {
    |            `- note: class 'XPathNodeSet' does not conform to the 'Sendable' protocol
103 |   /// Empty node set
104 |   public static let emptySet = XPathNodeSet(cXPath: nil, document: nil)
    |                     |- warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'emptySet' 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
105 |
106 |   fileprivate var cXPath: xmlXPathObjectPtr?
[4/10] Compiling ReadiumFuzi Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:129:5: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |     let key = xmlNodeGetContent(self.cNode)
128 |     let stringValue = ^-^key ?? ""
129 |     xmlFree(key)
    |     `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 |     return stringValue
131 |   }()
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
  |            `- note: var declared here
[5/10] Compiling ReadiumFuzi Document.swift
[6/10] Compiling ReadiumFuzi Element.swift
/Users/admin/builder/spi-builder-workspace/Sources/Element.swift:72:7: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 70 |     if let xmlValue = xmlValue {
 71 |       value = ^-^xmlValue
 72 |       xmlFree(xmlValue)
    |       `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 73 |     }
 74 |     return value
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
  |            `- note: var declared here
[7/10] Compiling ReadiumFuzi Helpers.swift
[8/10] Compiling ReadiumFuzi Error.swift
[9/10] Compiling ReadiumFuzi Queryable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NodeSet.swift:104:21: warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | /// XPath selector result node set
102 | open class XPathNodeSet: NodeSet {
    |            `- note: class 'XPathNodeSet' does not conform to the 'Sendable' protocol
103 |   /// Empty node set
104 |   public static let emptySet = XPathNodeSet(cXPath: nil, document: nil)
    |                     |- warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'emptySet' 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
105 |
106 |   fileprivate var cXPath: xmlXPathObjectPtr?
[10/10] Emitting module ReadiumFuzi
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:129:5: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |     let key = xmlNodeGetContent(self.cNode)
128 |     let stringValue = ^-^key ?? ""
129 |     xmlFree(key)
    |     `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 |     return stringValue
131 |   }()
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
  |            `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/NodeSet.swift:104:21: warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | /// XPath selector result node set
102 | open class XPathNodeSet: NodeSet {
    |            `- note: class 'XPathNodeSet' does not conform to the 'Sendable' protocol
103 |   /// Empty node set
104 |   public static let emptySet = XPathNodeSet(cXPath: nil, document: nil)
    |                     |- warning: static property 'emptySet' is not concurrency-safe because non-'Sendable' type 'XPathNodeSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'emptySet' 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
105 |
106 |   fileprivate var cXPath: xmlXPathObjectPtr?
Build complete! (9.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ReadiumFuzi",
  "name" : "ReadiumFuzi",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ReadiumFuzi",
      "targets" : [
        "ReadiumFuzi"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReadiumFuziTests",
      "module_type" : "SwiftTarget",
      "name" : "ReadiumFuziTests",
      "path" : "Tests",
      "sources" : [
        "AtomTests.swift",
        "CSSTests.swift",
        "DefaultNamespaceXPathTests.swift",
        "HTMLTests.swift",
        "VMAPTests.swift",
        "XMLTests.swift",
        "XPathFunctionResultTests.swift"
      ],
      "target_dependencies" : [
        "ReadiumFuzi"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ReadiumFuzi",
      "module_type" : "SwiftTarget",
      "name" : "ReadiumFuzi",
      "path" : "Sources",
      "product_memberships" : [
        "ReadiumFuzi"
      ],
      "sources" : [
        "Document.swift",
        "Element.swift",
        "Error.swift",
        "Helpers.swift",
        "Node.swift",
        "NodeSet.swift",
        "Queryable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.