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 SwiftXMLParser, reference main (d8a923), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 18:18:08 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mkuliszkiewicz/SwiftXMLParser.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mkuliszkiewicz/SwiftXMLParser
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d8a9237 Update ParsingTests.swift
Cloned https://github.com/mkuliszkiewicz/SwiftXMLParser.git
Revision (git rev-parse @):
d8a92376bb415ebc67e28f24c9a82f55a0e2a4a5
SUCCESS checkout https://github.com/mkuliszkiewicz/SwiftXMLParser.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mkuliszkiewicz/SwiftXMLParser.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/5] Compiling SwiftXMLParser XMLElement.swift
[4/5] Compiling SwiftXMLParser SwiftXMLParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:47:31: warning: capture of 'self' with non-sendable type 'SwiftXMLParser' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  3 | import Foundation
  4 |
  5 | public final class SwiftXMLParser: NSObject {
    |                    `- note: class 'SwiftXMLParser' does not conform to the 'Sendable' protocol
  6 |     private var stack: [XMLElement] = []
  7 |     private var result = NSDictionary()
    :
 45 |         queue.async {
 46 |             let parser = XMLParser(data: data)
 47 |             parser.delegate = self
    |                               `- warning: capture of 'self' with non-sendable type 'SwiftXMLParser' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 48 |             parser.parse()
 49 |             self.parser = parser
/Users/admin/builder/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:30:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
 28 |                     continuation.resume(throwing: error)
 29 |                 case .success(let element):
 30 |                     continuation.resume(returning: element)
    |                                  |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
 31 |                 }
 32 |             }
[5/5] Emitting module SwiftXMLParser
Build complete! (5.66s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftXMLParser",
  "name" : "SwiftXMLParser",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftXMLParser",
      "targets" : [
        "SwiftXMLParser"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftXMLParserTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftXMLParserTests",
      "path" : "Tests/SwiftXMLParserTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftXMLParserTests/simple.xml",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ParsingTests.swift"
      ],
      "target_dependencies" : [
        "SwiftXMLParser"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftXMLParser",
      "module_type" : "SwiftTarget",
      "name" : "SwiftXMLParser",
      "path" : "Sources/SwiftXMLParser",
      "product_memberships" : [
        "SwiftXMLParser"
      ],
      "sources" : [
        "SwiftXMLParser.swift",
        "XMLElement.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.