The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ReadiumFuzi, reference master (173ec9), with Swift 6.1 for macOS (SPM) on 15 Aug 2026 16:02:09 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: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readium/Fuzi.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/readium/Fuzi
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 173ec94 Declare the Swift version in the podspec (#3)
Cloned https://github.com/readium/Fuzi.git
Revision (git rev-parse @):
173ec944ca6f2e8024ceb7324bcb8a3cc95a0661
SUCCESS checkout https://github.com/readium/Fuzi.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
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.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 ReadiumFuzi Document.swift
[4/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 |   }()
/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?
[5/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: 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?
[6/10] Compiling ReadiumFuzi Error.swift
[7/10] Compiling ReadiumFuzi Helpers.swift
[8/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 |   }()
/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 */
[9/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
/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 */
[10/10] Compiling ReadiumFuzi Queryable.swift
Build complete! (5.49s)
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.