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 JebiXML, reference master (cdd529), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 02:16:07 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kewlbear/XMLDocument.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kewlbear/XMLDocument
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cdd5292 rename package
Cloned https://github.com/kewlbear/XMLDocument.git
Revision (git rev-parse @):
cdd52923952964657a088f70c795457ef6ed736e
SUCCESS checkout https://github.com/kewlbear/XMLDocument.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kewlbear/XMLDocument.git
https://github.com/kewlbear/XMLDocument.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JebiXML",
  "name" : "JebiXML",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JebiXML",
      "targets" : [
        "JebiXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "libxml2XMLDocument",
      "module_type" : "SystemLibraryTarget",
      "name" : "libxml2XMLDocument",
      "path" : "Sources/libxml2",
      "product_memberships" : [
        "JebiXML"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "XMLDocumentTests",
      "module_type" : "SwiftTarget",
      "name" : "XMLDocumentTests",
      "path" : "Tests/XMLDocumentTests",
      "sources" : [
        "XCTestManifests.swift",
        "XMLDocumentTests.swift"
      ],
      "target_dependencies" : [
        "JebiXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JebiXML",
      "module_type" : "SwiftTarget",
      "name" : "JebiXML",
      "path" : "Sources/XMLDocument",
      "product_memberships" : [
        "JebiXML"
      ],
      "sources" : [
        "XMLDocument.swift"
      ],
      "target_dependencies" : [
        "libxml2XMLDocument"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/4] Compiling JebiXML XMLDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:51:30: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
 49 |         let option = 0
 50 |         // FIXME: xmlParseMemory?
 51 |         _docPtr = xmlReadDoc(UnsafeRawPointer(cur).assumingMemoryBound(to: xmlChar.self), url, charsetName, CInt(option))
    |                              |                |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                              |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                              `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
 52 |
 53 |         super.init(nodePtr: nil, owner: nil)
/Users/admin/builder/spi-builder-workspace/Sources/XMLDocument/XMLDocument.swift:234:25: 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
232 |                     let content = xmlNodeGetContent($0)
233 |                     defer {
234 |                         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
235 |                     }
236 |                     return content.flatMap { String(utf8String: UnsafeRawPointer($0).assumingMemoryBound(to: CChar.self)) }
/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/XMLDocument/XMLDocument.swift:246:17: 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
244 |                 let escaped = xmlEncodeSpecialChars(node.pointee.doc, newValue ?? "")
245 |                 xmlNodeSetContent(node, escaped)
246 |                 xmlFree(escaped)
    |                 `- 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
247 |             }
248 |         }
/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 */
[4/4] Emitting module JebiXML
Build complete! (4.22s)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libxml-2.0 using your system-packager:
    brew install libxml2
warning: you may be able to install libxml-2.0 using your system-packager:
    brew install libxml2
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JebiXML",
  "name" : "JebiXML",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JebiXML",
      "targets" : [
        "JebiXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "libxml2XMLDocument",
      "module_type" : "SystemLibraryTarget",
      "name" : "libxml2XMLDocument",
      "path" : "Sources/libxml2",
      "product_memberships" : [
        "JebiXML"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "XMLDocumentTests",
      "module_type" : "SwiftTarget",
      "name" : "XMLDocumentTests",
      "path" : "Tests/XMLDocumentTests",
      "sources" : [
        "XCTestManifests.swift",
        "XMLDocumentTests.swift"
      ],
      "target_dependencies" : [
        "JebiXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JebiXML",
      "module_type" : "SwiftTarget",
      "name" : "JebiXML",
      "path" : "Sources/XMLDocument",
      "product_memberships" : [
        "JebiXML"
      ],
      "sources" : [
        "XMLDocument.swift"
      ],
      "target_dependencies" : [
        "libxml2XMLDocument"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.