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 SwiftLibXML, reference 3.0.0 (dc6aee), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 18:41:06 UTC.

Swift 6 data race errors: 0

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/rhx/SwiftLibXML.git
Reference: 3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rhx/SwiftLibXML
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at dc6aee8 Return nil for non-existent attributes
Cloned https://github.com/rhx/SwiftLibXML.git
Revision (git rev-parse @):
dc6aee8a8344c443b3679a07fe3e7069bbba08b7
SUCCESS checkout https://github.com/rhx/SwiftLibXML.git at 3.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": "swiftlibxml",
      "name": "SwiftLibXML",
      "url": "https://github.com/rhx/SwiftLibXML.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftLibXML",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/rhx/SwiftLibXML.git
[7/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git from cache (0.83s)
Creating working copy for https://github.com/rhx/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at 3.0.0 (dc6aee8)
warning: '.resolve-product-dependencies': dependency 'swiftlibxml' 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/rhx/SwiftLibXML.git
https://github.com/rhx/SwiftLibXML.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftLibXML",
  "name" : "SwiftLibXML",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftLibXML",
      "targets" : [
        "SwiftLibXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLibXMLTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibXMLTests",
      "path" : "Tests/SwiftLibXMLTests",
      "sources" : [
        "SwiftLibXMLTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLibXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibXML",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibXML",
      "path" : "Sources/SwiftLibXML",
      "product_memberships" : [
        "SwiftLibXML"
      ],
      "sources" : [
        "EmptySequence.swift",
        "XMLAttribute.swift",
        "XMLDocument.swift",
        "XMLElement.swift",
        "XMLNameSpace.swift",
        "XMLPath.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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/9] Compiling SwiftLibXML XMLNameSpace.swift
[4/9] Compiling SwiftLibXML EmptySequence.swift
[5/9] Compiling SwiftLibXML XMLAttribute.swift
[6/9] Emitting module SwiftLibXML
[7/9] Compiling SwiftLibXML XMLElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLibXML/XMLElement.swift:34:9: 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
 32 |         let content: UnsafeMutablePointer<xmlChar>? = xmlNodeGetContent(node)
 33 |         let txt = content.map { String(cString: UnsafePointer<xmlChar>($0)) } ?? ""
 34 |         xmlFree(content)
    |         `- 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
 35 |         return txt
 36 |     }
/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 */
[8/9] Compiling SwiftLibXML XMLDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLibXML/XMLDocument.swift:66:9: 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
 64 |               let s = xmlNodeListGetString(xml, children, 1) else { return nil }
 65 |         let value = String(cString: UnsafePointer<xmlChar>(s))
 66 |         xmlFree(s)
    |         `- 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
 67 |         return value
 68 |     }
/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/9] Compiling SwiftLibXML XMLPath.swift
Build complete! (2.29s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftLibXML",
  "name" : "SwiftLibXML",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftLibXML",
      "targets" : [
        "SwiftLibXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLibXMLTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibXMLTests",
      "path" : "Tests/SwiftLibXMLTests",
      "sources" : [
        "SwiftLibXMLTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLibXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibXML",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibXML",
      "path" : "Sources/SwiftLibXML",
      "product_memberships" : [
        "SwiftLibXML"
      ],
      "sources" : [
        "EmptySequence.swift",
        "XMLAttribute.swift",
        "XMLDocument.swift",
        "XMLElement.swift",
        "XMLNameSpace.swift",
        "XMLPath.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.