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 XprobePlugin, reference main (c80f08), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 11:29:12 UTC.

Swift 6 data race errors: 2

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/johnno1962/XprobePlugin.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/XprobePlugin
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c80f086 WatchOS
Submodule path 'codemirror5': checked out 'be9e01eedbf33282fe85ebec69d026e12a6e2959'
Submodule 'codemirror5' (https://github.com/codemirror/codemirror5) registered for path 'codemirror5'
Cloning into '/Users/admin/builder/spi-builder-workspace/codemirror5'...
Cloned https://github.com/johnno1962/XprobePlugin.git
Revision (git rev-parse @):
c80f086ca7038c5e9236e1b15fea3f9e59395183
SUCCESS checkout https://github.com/johnno1962/XprobePlugin.git at main
Fetching https://github.com/johnno1962/SwiftTrace
[1/2067] Fetching swifttrace
Fetched https://github.com/johnno1962/SwiftTrace from cache (1.14s)
Computing version for https://github.com/johnno1962/SwiftTrace
Computed https://github.com/johnno1962/SwiftTrace at 8.6.1 (1.74s)
Creating working copy for https://github.com/johnno1962/SwiftTrace
Working copy of https://github.com/johnno1962/SwiftTrace resolved at 8.6.1
========================================
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": "xprobeplugin",
      "name": "XprobePlugin",
      "url": "https://github.com/johnno1962/XprobePlugin.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XprobePlugin",
      "dependencies": [
        {
          "identity": "swifttrace",
          "name": "SwiftTrace",
          "url": "https://github.com/johnno1962/SwiftTrace",
          "version": "8.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftTrace",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/johnno1962/XprobePlugin.git
[1/1973] Fetching xprobeplugin
Fetched https://github.com/johnno1962/XprobePlugin.git from cache (1.21s)
Fetching https://github.com/johnno1962/SwiftTrace from cache
Fetched https://github.com/johnno1962/SwiftTrace from cache (0.39s)
Computing version for https://github.com/johnno1962/SwiftTrace
Computed https://github.com/johnno1962/SwiftTrace at 8.6.1 (0.45s)
Creating working copy for https://github.com/johnno1962/SwiftTrace
Working copy of https://github.com/johnno1962/SwiftTrace resolved at 8.6.1
Creating working copy for https://github.com/johnno1962/XprobePlugin.git
Working copy of https://github.com/johnno1962/XprobePlugin.git resolved at main (c80f086)
warning: '.resolve-product-dependencies': dependency 'xprobeplugin' is not used by any target
Found 1 product dependencies
  - SwiftTrace
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/johnno1962/XprobePlugin.git
https://github.com/johnno1962/XprobePlugin.git
{
  "dependencies" : [
    {
      "identity" : "swifttrace",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.6.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/SwiftTrace"
    }
  ],
  "manifest_display_name" : "XprobePlugin",
  "name" : "XprobePlugin",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Xprobe",
      "targets" : [
        "Xprobe"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeSweep",
      "targets" : [
        "XprobeSweep"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeSwift",
      "targets" : [
        "XprobeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeUI",
      "targets" : [
        "XprobeUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XprobeUI",
      "module_type" : "ClangTarget",
      "name" : "XprobeUI",
      "path" : "Sources/XprobeUI",
      "product_memberships" : [
        "XprobeUI"
      ],
      "sources" : [
        "XprobeConsole.m",
        "XprobePluginMenuController.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "XprobeSwift",
      "module_type" : "SwiftTarget",
      "name" : "XprobeSwift",
      "path" : "Sources/XprobeSwift",
      "product_dependencies" : [
        "SwiftTraceD"
      ],
      "product_memberships" : [
        "Xprobe",
        "XprobeSwift"
      ],
      "sources" : [
        "XprobeSwift.swift"
      ],
      "target_dependencies" : [
        "XprobeSweep"
      ],
      "type" : "library"
    },
    {
      "c99name" : "XprobeSweep",
      "module_type" : "ClangTarget",
      "name" : "XprobeSweep",
      "path" : "Sources/XprobeSweep",
      "product_memberships" : [
        "Xprobe",
        "XprobeSweep",
        "XprobeSwift"
      ],
      "sources" : [
        "XprobeSweep.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Xprobe",
      "module_type" : "ClangTarget",
      "name" : "Xprobe",
      "path" : "Sources/Xprobe",
      "product_memberships" : [
        "Xprobe"
      ],
      "sources" : [
        "SweepSeeding.m",
        "Xprobe+Service.mm",
        "Xprobe.mm"
      ],
      "target_dependencies" : [
        "XprobeSwift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/20] Write sources
[1/20] Write swift-version-2F0A5646E1D333AE.txt
[2/20] Compiling SwiftTraceGutsD xt_forwarding_trampoline_arm7.s
[3/20] Compiling XprobeSweep XprobeSweep.m
[4/20] Compiling SwiftTraceGutsD xt_forwarding_trampoline_x64.s
[4/20] Compiling SwiftTraceGutsD xt_forwarding_trampoline_x86.s
[6/20] Write sources
[7/20] Compiling SwiftTraceGutsD xt_forwarding_trampoline_arm64.s
[8/20] Compiling SwiftTraceGutsD fishhook.c
[9/20] Compiling SwiftTraceGutsD ObjCBridge.mm
[10/20] Compiling SwiftTraceGutsD SwiftTrace.mm
[10/20] Compiling SwiftTraceGutsD fast_dladdr.mm
[10/20] Compiling SwiftTraceGutsD Trampolines.mm
[13/32] Compiling XprobeUI XprobePluginMenuController.m
[14/32] Compiling XprobeUI XprobeConsole.m
[16/32] Compiling SwiftTraceD SwiftInvoke.swift
[17/33] Compiling SwiftTraceD SwiftStats.swift
[18/33] Compiling SwiftTraceD SwiftInterpose.swift
[19/33] Compiling SwiftTraceD SwiftMeta.swift
[20/33] Compiling SwiftTraceD SwiftLifetime.swift
[21/33] Compiling SwiftTraceD SwiftStack.swift
[22/33] Compiling SwiftTraceD SwiftSwizzle.swift
[23/33] Emitting module SwiftTraceD
[24/33] Compiling SwiftTraceD SwiftArgs.swift
[25/33] Compiling SwiftTraceD SwiftAspects.swift
[26/33] Compiling SwiftTraceD EasyPointer.swift
[27/33] Compiling SwiftTraceD StringIndex.swift
[28/33] Compiling SwiftTraceD SwiftTrace.swift
[28/33] Write Objects.LinkFileList
[29/33] Linking libSwiftTraceD.dylib
[31/35] Emitting module XprobeSwift
/Users/admin/builder/spi-builder-workspace/Sources/XprobeSwift/XprobeSwift.swift:30:6: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
 28 | }
 29 |
 30 | @objc (XprobeSwift)
    |      `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
 31 | class XprobeSwift: NSObject {
 32 |
/Users/admin/builder/spi-builder-workspace/Sources/XprobeSwift/XprobeSwift.swift:226:16: warning: static property 'maxItems' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
224 |     }
225 |
226 |     static var maxItems = 100
    |                |- warning: static property 'maxItems' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'maxItems' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'maxItems' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
227 |
228 |     class func dumpValue(_ value: Any, target: inout IvarOutputStream?, indent: String?,
[32/35] Compiling XprobeSwift XprobeSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/XprobeSwift/XprobeSwift.swift:30:6: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
 28 | }
 29 |
 30 | @objc (XprobeSwift)
    |      `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
 31 | class XprobeSwift: NSObject {
 32 |
/Users/admin/builder/spi-builder-workspace/Sources/XprobeSwift/XprobeSwift.swift:226:16: warning: static property 'maxItems' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
224 |     }
225 |
226 |     static var maxItems = 100
    |                |- warning: static property 'maxItems' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'maxItems' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'maxItems' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
227 |
228 |     class func dumpValue(_ value: Any, target: inout IvarOutputStream?, indent: String?,
/Users/admin/builder/spi-builder-workspace/Sources/XprobeSwift/XprobeSwift.swift:107:20: warning: reference to class property 'logOutput' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |
106 |     @objc class func setDelegate(_ delegate: XtraceDelegate) {
107 |         SwiftTrace.logOutput = { msg, instance, indent in
    |                    `- warning: reference to class property 'logOutput' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 |             let msg = msg.hasPrefix("\n") ? msg[(.start+1)...] : msg
109 |             delegate.xtrace(msg, forInstance: instance, indent: indent)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftSwizzle.swift:25:23: note: class property declared here
 23 |      Hook to intercept all trace output
 24 |      */
 25 |     public static var logOutput: (String, UnsafeRawPointer?, Int) -> () = {
    |                       `- note: class property declared here
 26 |         print($0, terminator: "")
 27 |         _ = ($1, $2) // self, indent
[32/35] Compiling Xprobe SweepSeeding.m
[33/35] Compiling Xprobe Xprobe+Service.mm
[34/35] Compiling Xprobe Xprobe.mm
Build complete! (11.08s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swifttrace",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.6.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/SwiftTrace"
    }
  ],
  "manifest_display_name" : "XprobePlugin",
  "name" : "XprobePlugin",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Xprobe",
      "targets" : [
        "Xprobe"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeSweep",
      "targets" : [
        "XprobeSweep"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeSwift",
      "targets" : [
        "XprobeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XprobeUI",
      "targets" : [
        "XprobeUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XprobeUI",
      "module_type" : "ClangTarget",
      "name" : "XprobeUI",
      "path" : "Sources/XprobeUI",
      "product_memberships" : [
        "XprobeUI"
      ],
      "sources" : [
        "XprobeConsole.m",
        "XprobePluginMenuController.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "XprobeSwift",
      "module_type" : "SwiftTarget",
      "name" : "XprobeSwift",
      "path" : "Sources/XprobeSwift",
      "product_dependencies" : [
        "SwiftTraceD"
      ],
      "product_memberships" : [
        "Xprobe",
        "XprobeSwift"
      ],
      "sources" : [
        "XprobeSwift.swift"
      ],
      "target_dependencies" : [
        "XprobeSweep"
      ],
      "type" : "library"
    },
    {
      "c99name" : "XprobeSweep",
      "module_type" : "ClangTarget",
      "name" : "XprobeSweep",
      "path" : "Sources/XprobeSweep",
      "product_memberships" : [
        "Xprobe",
        "XprobeSweep",
        "XprobeSwift"
      ],
      "sources" : [
        "XprobeSweep.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Xprobe",
      "module_type" : "ClangTarget",
      "name" : "Xprobe",
      "path" : "Sources/Xprobe",
      "product_memberships" : [
        "Xprobe"
      ],
      "sources" : [
        "SweepSeeding.m",
        "Xprobe+Service.mm",
        "Xprobe.mm"
      ],
      "target_dependencies" : [
        "XprobeSwift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.