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 SwiftXmlRpc, reference 0.8.7 (be525d), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 04:54:30 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/SwiftXmlRpc.git
Reference: 0.8.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/helje5/SwiftXmlRpc
 * tag               0.8.7      -> FETCH_HEAD
HEAD is now at be525df Merge branch 'develop'
Cloned https://github.com/helje5/SwiftXmlRpc.git
Revision (git rev-parse @):
be525dff74501f447290b1473861340f7fe416dd
SUCCESS checkout https://github.com/helje5/SwiftXmlRpc.git at 0.8.7
========================================
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": "swiftxmlrpc",
      "name": "SwiftXmlRpc",
      "url": "https://github.com/helje5/SwiftXmlRpc.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftXmlRpc",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/helje5/SwiftXmlRpc.git
[1/153] Fetching swiftxmlrpc
Fetched https://github.com/helje5/SwiftXmlRpc.git from cache (0.75s)
Creating working copy for https://github.com/helje5/SwiftXmlRpc.git
Working copy of https://github.com/helje5/SwiftXmlRpc.git resolved at 0.8.7 (be525df)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/helje5/SwiftXmlRpc.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/7] Write sources
[2/7] Write xmlrpc_call-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/16] Compiling XmlRpc XmlRpcParser.swift
[6/16] Compiling XmlRpc XmlRpcUtilities.swift
[7/16] Compiling XmlRpc XmlRpcValueRepresentable.swift
[8/16] Compiling XmlRpc XmlRpcMultiCall.swift
[9/16] Compiling XmlRpc XmlRpcLiterals.swift
[10/16] Compiling XmlRpc XmlRpcGeneration.swift
[11/16] Compiling XmlRpc XmlRpc.swift
[12/16] Emitting module XmlRpc
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:80:10: warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 78 |   public enum ClientError: Swift.Error {
 79 |     case transportError            (Swift.Error)
 80 |     case httpError                 (status: Int, headers: [AnyHashable : Any])
    |          `- warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 81 |     case noContentInResponse
 82 |     case couldNotDecodeDataAsString(Data, encoding: String.Encoding)
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:158:16: warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |       if let error = error {
157 |         print("ERROR:", error, response as Any, data as Any)
158 |         return yield(.transportError(error), nil)
    |                |- warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 |       }
160 |
[13/16] Compiling XmlRpc XmlRpcClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:80:10: warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 78 |   public enum ClientError: Swift.Error {
 79 |     case transportError            (Swift.Error)
 80 |     case httpError                 (status: Int, headers: [AnyHashable : Any])
    |          `- warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 81 |     case noContentInResponse
 82 |     case couldNotDecodeDataAsString(Data, encoding: String.Encoding)
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:158:16: warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |       if let error = error {
157 |         print("ERROR:", error, response as Any, data as Any)
158 |         return yield(.transportError(error), nil)
    |                |- warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 |       }
160 |
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:244:9: warning: capture of 'client' with non-sendable type 'XmlRpcClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |  */
 75 | @dynamicMemberLookup
 76 | public struct XmlRpcClient {
    |               `- note: consider making struct 'XmlRpcClient' conform to the 'Sendable' protocol
 77 |
 78 |   public enum ClientError: Swift.Error {
    :
242 |       let client = self.client
243 |       DispatchQueue.global().async {
244 |         client.call(methodCall) { error, value in
    |         `- warning: capture of 'client' with non-sendable type 'XmlRpcClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 |           if let error = error { result = .failure(error) }
246 |           else                 { result = .success(value) }
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:245:34: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
243 |       DispatchQueue.global().async {
244 |         client.call(methodCall) { error, value in
245 |           if let error = error { result = .failure(error) }
    |                                  `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
246 |           else                 { result = .success(value) }
247 |           semaphore.signal()
/Users/admin/builder/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:246:34: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
244 |         client.call(methodCall) { error, value in
245 |           if let error = error { result = .failure(error) }
246 |           else                 { result = .success(value) }
    |                                  `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
247 |           semaphore.signal()
248 |         }
[14/18] Emitting module xmlrpc_call
[15/18] Compiling xmlrpc_call main.swift
[15/18] Write Objects.LinkFileList
[16/18] Linking xmlrpc_call
[17/18] Applying xmlrpc_call
Build complete! (9.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftXmlRpc",
  "name" : "SwiftXmlRpc",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "XmlRpc",
      "targets" : [
        "XmlRpc"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "xmlrpc_call",
      "targets" : [
        "xmlrpc_call"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "xmlrpc_call",
      "module_type" : "SwiftTarget",
      "name" : "xmlrpc_call",
      "path" : "Sources/xmlrpc_call",
      "product_memberships" : [
        "xmlrpc_call"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XmlRpc"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "XmlRpcTests",
      "module_type" : "SwiftTarget",
      "name" : "XmlRpcTests",
      "path" : "Tests/XmlRpcTests",
      "sources" : [
        "GenerationTests.swift",
        "ParserTests.swift",
        "TestData.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "XmlRpc"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XmlRpc",
      "module_type" : "SwiftTarget",
      "name" : "XmlRpc",
      "path" : "Sources/XmlRpc",
      "product_memberships" : [
        "XmlRpc",
        "xmlrpc_call"
      ],
      "sources" : [
        "XmlRpc.swift",
        "XmlRpcClient.swift",
        "XmlRpcGeneration.swift",
        "XmlRpcLiterals.swift",
        "XmlRpcMultiCall.swift",
        "XmlRpcParser.swift",
        "XmlRpcUtilities.swift",
        "XmlRpcValueRepresentable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.