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 Fuzi, reference 3.1.3 (f08c83), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 12:56:40 UTC.

Swift 6 data race errors: 2

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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cezheng/Fuzi.git
Reference: 3.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cezheng/Fuzi
 * tag               3.1.3      -> FETCH_HEAD
HEAD is now at f08c832 Bumps version to 3.1.3
Cloned https://github.com/cezheng/Fuzi.git
Revision (git rev-parse @):
f08c8323da21e985f3772610753bcfc652c2103f
SUCCESS checkout https://github.com/cezheng/Fuzi.git at 3.1.3
========================================
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": "Fuzi",
      "url": "https://github.com/cezheng/Fuzi.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fuzi",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/cezheng/Fuzi.git
[1/1315] Fetching fuzi
Fetched https://github.com/cezheng/Fuzi.git from cache (0.90s)
Creating working copy for https://github.com/cezheng/Fuzi.git
Working copy of https://github.com/cezheng/Fuzi.git resolved at 3.1.3 (f08c832)
warning: '.resolve-product-dependencies': dependency 'fuzi' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/cezheng/Fuzi.git
https://github.com/cezheng/Fuzi.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuzi",
  "name" : "Fuzi",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Fuzi",
      "targets" : [
        "Fuzi"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FuziTests",
      "module_type" : "SwiftTarget",
      "name" : "FuziTests",
      "path" : "Tests",
      "sources" : [
        "AtomTests.swift",
        "CSSTests.swift",
        "DefaultNamespaceXPathTests.swift",
        "HTMLTests.swift",
        "VMAPTests.swift",
        "XMLTests.swift",
        "XPathFunctionResultTests.swift"
      ],
      "target_dependencies" : [
        "Fuzi"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fuzi",
      "module_type" : "SwiftTarget",
      "name" : "Fuzi",
      "path" : "Sources",
      "product_memberships" : [
        "Fuzi"
      ],
      "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.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling Fuzi Helpers.swift
[4/10] Compiling Fuzi 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 |   }()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/libxml/globals.h:257:23: note: var declared here
255 | XMLPUBVAR xmlMallocFunc xmlMallocAtomic LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
256 | XMLPUBVAR xmlReallocFunc xmlRealloc LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
257 | XMLPUBVAR xmlFreeFunc xmlFree;
    |                       `- note: var declared here
258 | XMLPUBVAR xmlStrdupFunc xmlMemStrdup LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
259 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */
[5/10] Compiling Fuzi Queryable.swift
[6/10] Compiling Fuzi 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: add '@MainActor' to make static property 'emptySet' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |
106 |   fileprivate var cXPath: xmlXPathObjectPtr?
[7/10] Compiling Fuzi Error.swift
[8/10] Compiling Fuzi Document.swift
[9/10] Emitting module Fuzi
/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 |   }()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/libxml/globals.h:257:23: note: var declared here
255 | XMLPUBVAR xmlMallocFunc xmlMallocAtomic LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
256 | XMLPUBVAR xmlReallocFunc xmlRealloc LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
257 | XMLPUBVAR xmlFreeFunc xmlFree;
    |                       `- note: var declared here
258 | XMLPUBVAR xmlStrdupFunc xmlMemStrdup LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
259 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */
/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: add '@MainActor' to make static property 'emptySet' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |
106 |   fileprivate var cXPath: xmlXPathObjectPtr?
[10/10] Compiling Fuzi 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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/libxml/globals.h:257:23: note: var declared here
255 | XMLPUBVAR xmlMallocFunc xmlMallocAtomic LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
256 | XMLPUBVAR xmlReallocFunc xmlRealloc LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
257 | XMLPUBVAR xmlFreeFunc xmlFree;
    |                       `- note: var declared here
258 | XMLPUBVAR xmlStrdupFunc xmlMemStrdup LIBXML_API_DEPRECATED_MEMORY_ALLOCATION_FUNCTIONS;
259 | #endif /* LIBXML_THREAD_ALLOC_ENABLED */
Build complete! (5.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuzi",
  "name" : "Fuzi",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Fuzi",
      "targets" : [
        "Fuzi"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FuziTests",
      "module_type" : "SwiftTarget",
      "name" : "FuziTests",
      "path" : "Tests",
      "sources" : [
        "AtomTests.swift",
        "CSSTests.swift",
        "DefaultNamespaceXPathTests.swift",
        "HTMLTests.swift",
        "VMAPTests.swift",
        "XMLTests.swift",
        "XPathFunctionResultTests.swift"
      ],
      "target_dependencies" : [
        "Fuzi"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fuzi",
      "module_type" : "SwiftTarget",
      "name" : "Fuzi",
      "path" : "Sources",
      "product_memberships" : [
        "Fuzi"
      ],
      "sources" : [
        "Document.swift",
        "Element.swift",
        "Error.swift",
        "Helpers.swift",
        "Node.swift",
        "NodeSet.swift",
        "Queryable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.