The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of PerfectXML, reference master (977d27), with Swift 6.2 (beta) for macOS (SPM) on 17 Jun 2025 12:26:10 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-xml.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-xml
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 977d277 Updated import
Cloned https://github.com/perfectlysoft/perfect-xml.git
Revision (git rev-parse @):
977d27770b74f8e73653b9f569b7dac1bfea4150
SUCCESS checkout https://github.com/perfectlysoft/perfect-xml.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-xml.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling PerfectXML XPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XPath.swift:84:2: warning: 'public' modifier is redundant for instance method declared in a public extension
 82 | 	/// Execute the XPath and return the result(s).
 83 | 	/// Accepts and array of tuples holding namespace prefixes and uris.
 84 | 	public func extract(path: String, namespaces: [(String, String)] = [(String, String)]()) -> XPathObject {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
 85 | 		guard let ctx = initializeContext() else {
 86 | 			return .none
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XPath.swift:118:2: warning: 'public' modifier is redundant for instance method declared in a public extension
116 | 	/// Execute the XPath and return a single resul tnode or nil.
117 | 	/// Accepts and array of tuples holding namespace prefixes and uris.
118 | 	public func extractOne(path: String, namespaces: [(String, String)] = [(String, String)]()) -> XNode? {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 		guard case .nodeSet(let nodes) = extract(path: path, namespaces: namespaces) else {
120 | 			return nil
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XPath.swift:99:8: warning: immutable value 'errorTracker' was never used; consider replacing with '_' or removing it [#no-usage]
 97 | 				return
 98 | 			}
 99 | 			let errorTracker: XErrorTracker = Unmanaged.fromOpaque(userData).takeUnretainedValue()
    |        `- warning: immutable value 'errorTracker' was never used; consider replacing with '_' or removing it [#no-usage]
100 |
101 | 			print("help")
[4/8] Compiling PerfectXML XMLDOM.swift
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XMLDOM.swift:331:49: warning: initialization of 'UnsafePointer<String.UTF8View.Element>' (aka 'UnsafePointer<UInt8>') results in a dangling pointer [#TemporaryPointers]
329 | 		_ = XDocument.initialize
330 | 		let src = Array(fromSource.utf8)
331 | 		let p = UnsafeMutablePointer<UInt8>(mutating: UnsafePointer(src))
    |                                                 |             |- note: implicit argument conversion from '[String.UTF8View.Element]' (aka 'Array<UInt8>') to 'UnsafePointer<String.UTF8View.Element>' (aka 'UnsafePointer<UInt8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                 |             `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                                 `- warning: initialization of 'UnsafePointer<String.UTF8View.Element>' (aka 'UnsafePointer<UInt8>') results in a dangling pointer [#TemporaryPointers]
332 | 		guard let doc = htmlParseDoc(p, encoding) else {
333 | 			return nil
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[5/8] Emitting module PerfectXML
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XPath.swift:84:2: warning: 'public' modifier is redundant for instance method declared in a public extension
 82 | 	/// Execute the XPath and return the result(s).
 83 | 	/// Accepts and array of tuples holding namespace prefixes and uris.
 84 | 	public func extract(path: String, namespaces: [(String, String)] = [(String, String)]()) -> XPathObject {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
 85 | 		guard let ctx = initializeContext() else {
 86 | 			return .none
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/XPath.swift:118:2: warning: 'public' modifier is redundant for instance method declared in a public extension
116 | 	/// Execute the XPath and return a single resul tnode or nil.
117 | 	/// Accepts and array of tuples holding namespace prefixes and uris.
118 | 	public func extractOne(path: String, namespaces: [(String, String)] = [(String, String)]()) -> XNode? {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 		guard case .nodeSet(let nodes) = extract(path: path, namespaces: namespaces) else {
120 | 			return nil
[6/8] Compiling PerfectXML Codable.swift
[7/8] Compiling PerfectXML SAX.swift
/Users/admin/builder/spi-builder-workspace/Sources/PerfectXML/SAX.swift:105:14: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
103 | 	public func pushData(_ d: [UInt8]) throws {
104 | 		let ctx = try getCtxt()
105 | 		let code = UnsafePointer(d).withMemoryRebound(to: Int8.self, capacity: d.count) {
    |              |             |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |             `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
106 | 			return xmlParseChunk(ctx, $0, Int32(d.count), 0)
107 | 		}
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[8/8] Compiling PerfectXML XMLStream.swift
Build complete! (4.90s)
Fetching https://github.com/PerfectlySoft/Perfect-libxml2.git
[1/89] Fetching perfect-libxml2
Fetched https://github.com/PerfectlySoft/Perfect-libxml2.git from cache (0.64s)
Computing version for https://github.com/PerfectlySoft/Perfect-libxml2.git
Computed https://github.com/PerfectlySoft/Perfect-libxml2.git at 3.0.1 (1.16s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-libxml2.git
Working copy of https://github.com/PerfectlySoft/Perfect-libxml2.git resolved at 3.0.1
warning: 'perfect-libxml2': ignoring declared target(s) 'libxml2' in the system package
warning: 'spi-builder-workspace': dependency 'perfect-libxml2' is not used by any target
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" : [
    {
      "identity" : "perfect-libxml2",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PerfectlySoft/Perfect-libxml2.git"
    }
  ],
  "manifest_display_name" : "PerfectXML",
  "name" : "PerfectXML",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PerfectXML",
      "targets" : [
        "PerfectXML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PerfectXMLTests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectXMLTests",
      "path" : "Tests/PerfectXMLTests",
      "sources" : [
        "PerfectXMLTests.swift"
      ],
      "target_dependencies" : [
        "PerfectXML"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectXML",
      "module_type" : "SwiftTarget",
      "name" : "PerfectXML",
      "path" : "Sources/PerfectXML",
      "product_memberships" : [
        "PerfectXML"
      ],
      "sources" : [
        "Codable.swift",
        "SAX.swift",
        "XMLDOM.swift",
        "XMLStream.swift",
        "XPath.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.