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 main (1b9b25), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 18:41:35 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rhx/SwiftLibXML
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1b9b259 Add documentation generator
Cloned https://github.com/rhx/SwiftLibXML.git
Revision (git rev-parse @):
1b9b259c27cd70868d50bdd9f6bffcb824d81b24
SUCCESS checkout https://github.com/rhx/SwiftLibXML.git at main
========================================
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
[1/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git from cache (0.69s)
Creating working copy for https://github.com/rhx/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at main (1b9b259)
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" : "5.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 XMLPath.swift
[5/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 */
[6/9] Emitting module SwiftLibXML
[7/9] Compiling SwiftLibXML EmptySequence.swift
[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 XMLAttribute.swift
Build complete! (2.46s)
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" : "5.2"
}
Done.