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 SwiftKSUID, reference main (f203df), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 07:21:59 UTC.

Swift 6 data race errors: 1

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/toffaletti/swiftksuid.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/toffaletti/swiftksuid
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f203dff use benchmark package
Cloned https://github.com/toffaletti/swiftksuid.git
Revision (git rev-parse @):
f203dff014024b2ed9e4da5b3f220eaf1124b5e0
SUCCESS checkout https://github.com/toffaletti/swiftksuid.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/toffaletti/swiftksuid.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/10] Write sources
[4/10] Write BenchmarkBoilerplateGenerator-tool-entitlement.plist
[5/10] Compiling CSystem shims.c
[6/10] Write swift-version-117DEE11B69C53C9.txt
[8/33] Emitting module SystemPackage
[9/35] Emitting module ArgumentParserToolInfo
[10/35] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/74] Compiling ArgumentParser HelpCommand.swift
[12/74] Compiling ArgumentParser HelpGenerator.swift
[13/74] Compiling ArgumentParser SplitArguments.swift
[14/74] Compiling ArgumentParser DumpHelpGenerator.swift
[15/74] Compiling ArgumentParser ExpressibleByArgument.swift
[16/74] Compiling ArgumentParser ParserError.swift
[17/74] Compiling ArgumentParser InputOrigin.swift
[18/74] Compiling ArgumentParser Name.swift
[19/74] Compiling ArgumentParser ZshCompletionsGenerator.swift
[20/74] Compiling ArgumentParser Argument.swift
[21/74] Compiling ArgumentParser CommandParser.swift
[22/74] Compiling ArgumentParser InputKey.swift
[23/74] Compiling ArgumentParser Parsed.swift
[24/74] Compiling ArgumentParser ParsedValues.swift
[25/74] Compiling ArgumentParser BashCompletionsGenerator.swift
[26/74] Compiling ArgumentParser CompletionsGenerator.swift
[27/74] Compiling ArgumentParser FishCompletionsGenerator.swift
[28/74] Compiling ArgumentParser CommandConfiguration.swift
[29/74] Compiling ArgumentParser CommandGroup.swift
[30/74] Compiling ArgumentParser EnumerableFlag.swift
[31/74] Compiling ArgumentParser NameSpecification.swift
[32/74] Compiling ArgumentParser Option.swift
[33/74] Compiling ArgumentParser OptionGroup.swift
[34/74] Compiling ArgumentParser AsyncParsableCommand.swift
[35/78] Compiling ArgumentParser ArgumentDefinition.swift
[36/78] Compiling ArgumentParser ArgumentSet.swift
[37/78] Emitting module ArgumentParser
[38/78] Compiling ArgumentParser ParsableArguments.swift
[39/78] Compiling ArgumentParser ParsableArgumentsValidation.swift
[40/78] Compiling ArgumentParser ParsableCommand.swift
[41/78] Compiling ArgumentParser ArgumentDecoder.swift
[42/78] Compiling ArgumentParser Platform.swift
[43/78] Compiling ArgumentParser SequenceExtensions.swift
[44/78] Compiling ArgumentParser StringExtensions.swift
[45/78] Compiling ArgumentParser Tree.swift
[50/78] Compiling ArgumentParser ArgumentHelp.swift
[51/78] Compiling ArgumentParser ArgumentVisibility.swift
[52/78] Compiling ArgumentParser CompletionKind.swift
[53/78] Compiling ArgumentParser Errors.swift
[54/78] Compiling ArgumentParser Flag.swift
[64/78] Compiling ArgumentParser MessageInfo.swift
[65/78] Compiling ArgumentParser UsageGenerator.swift
[66/78] Compiling ArgumentParser CollectionExtensions.swift
[76/80] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[77/80] Emitting module BenchmarkBoilerplateGenerator
[77/80] Write Objects.LinkFileList
[78/80] Linking BenchmarkBoilerplateGenerator-tool
[79/80] Applying BenchmarkBoilerplateGenerator-tool
Build of product 'BenchmarkBoilerplateGenerator' complete! (14.85s)
[1/1] Compiling plugin BenchmarkCommandPlugin
[2/2] Compiling plugin BenchmarkPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/25] Write sources
[10/25] Write BenchmarkSwiftKSUID-entitlement.plist
[11/25] Write sources
[14/25] Compiling CSystem shims.c
[15/25] Compiling CDarwinOperatingSystemStats CDarwinOperatingSystemStats.c
[16/25] Compiling _NumericsShims _NumericsShims.c
[17/25] Write swift-version-117DEE11B69C53C9.txt
[18/25] Generating plugin support files
[19/25] Write sources
[20/25] Compiling _AtomicsShims.c
[21/25] Compiling SwiftRuntimeHooks shims.c
[23/80] Emitting module SystemPackage
[24/82] Compiling RealModule Float80+Real.swift
[25/82] Compiling RealModule Real.swift
[26/83] Compiling RealModule RealFunctions.swift
[27/83] Compiling RealModule ApproximateEquality.swift
[28/83] Compiling RealModule AlgebraicField.swift
[29/83] Emitting module RealModule
[30/83] Compiling RealModule Float+Real.swift
[31/83] Compiling RealModule ElementaryFunctions.swift
[32/83] Compiling RealModule Double+Real.swift
[33/83] Compiling RealModule AugmentedArithmetic.swift
[34/83] Compiling RealModule Float16+Real.swift
[35/83] Compiling Atomics UnsafeAtomic.swift
[36/83] Compiling Atomics UnsafeAtomicLazyReference.swift
[37/83] Compiling Atomics ManagedAtomic.swift
[38/83] Compiling Atomics ManagedAtomicLazyReference.swift
[39/83] Compiling Atomics AtomicMemoryOrderings.swift
[40/83] Compiling Atomics DoubleWord.swift
[41/83] Compiling Atomics AtomicStorage.swift
[42/83] Compiling Atomics AtomicValue.swift
[43/90] Compiling ArgumentParserToolInfo ToolInfo.swift
[44/90] Emitting module ArgumentParserToolInfo
[45/129] Compiling ArgumentParser ParsableArgumentsValidation.swift
[46/129] Compiling ArgumentParser ParsableCommand.swift
[47/129] Compiling ArgumentParser SplitArguments.swift
[48/129] Compiling ArgumentParser DumpHelpGenerator.swift
[49/129] Compiling ArgumentParser ArgumentSet.swift
[50/129] Compiling ArgumentParser CommandParser.swift
[53/129] Compiling ComplexModule Differentiable.swift
[54/129] Compiling ComplexModule ElementaryFunctions.swift
[55/129] Compiling ComplexModule Arithmetic.swift
[56/129] Compiling ComplexModule Complex.swift
[57/129] Compiling ArgumentParser Argument.swift
[58/129] Compiling ArgumentParser ParsableArguments.swift
[59/129] Compiling ArgumentParser HelpCommand.swift
[60/129] Compiling ArgumentParser ArgumentDefinition.swift
[65/129] Compiling ArgumentParser ArgumentDecoder.swift
[66/129] Compiling ArgumentParser ParserError.swift
[67/129] Compiling ArgumentParser FishCompletionsGenerator.swift
[68/129] Compiling ArgumentParser ZshCompletionsGenerator.swift
[69/129] Compiling ArgumentParser HelpGenerator.swift
[70/129] Compiling ArgumentParser MessageInfo.swift
[71/129] Compiling ArgumentParser UsageGenerator.swift
[72/129] Compiling ArgumentParser CollectionExtensions.swift
[73/129] Compiling ArgumentParser BashCompletionsGenerator.swift
[74/129] Compiling ArgumentParser CompletionsGenerator.swift
[75/129] Emitting module ComplexModule
[76/131] Emitting module Numerics
[77/131] Compiling Numerics Numerics.swift
[80/133] Emitting module Atomics
[85/133] Compiling ArgumentParser InputKey.swift
[86/133] Compiling ArgumentParser NameSpecification.swift
[87/133] Compiling ArgumentParser CommandConfiguration.swift
[88/133] Compiling ArgumentParser CommandGroup.swift
[89/133] Compiling ArgumentParser EnumerableFlag.swift
[90/133] Compiling ArgumentParser ExpressibleByArgument.swift
[91/137] Compiling ArgumentParser Platform.swift
[92/137] Compiling ArgumentParser SequenceExtensions.swift
[93/137] Compiling ArgumentParser StringExtensions.swift
[94/137] Compiling ArgumentParser Tree.swift
[95/137] Compiling ArgumentParser ArgumentHelp.swift
[96/137] Compiling ArgumentParser ArgumentVisibility.swift
[97/137] Compiling ArgumentParser CompletionKind.swift
[98/137] Compiling ArgumentParser Errors.swift
[99/137] Compiling ArgumentParser Flag.swift
[100/137] Emitting module ArgumentParser
[101/137] Compiling ArgumentParser InputOrigin.swift
[102/137] Compiling ArgumentParser Name.swift
[103/137] Compiling ArgumentParser Parsed.swift
[104/137] Compiling ArgumentParser ParsedValues.swift
[105/137] Compiling SwiftKSUID SwiftKSUID.swift
[106/137] Compiling SwiftKSUID Base62.swift
[107/137] Emitting module SwiftKSUID
[109/137] Compiling ArgumentParser Option.swift
[110/137] Compiling ArgumentParser OptionGroup.swift
[111/137] Compiling ArgumentParser AsyncParsableCommand.swift
[116/137] Emitting module Histogram
[117/137] Compiling Histogram Histogram.swift
[135/165] Compiling Benchmark ARCStats.swift
[136/165] Compiling Benchmark ARCStatsProducer.swift
[137/165] Compiling Benchmark Benchmark+ConvenienceInitializers.swift
[138/167] Compiling Benchmark OperatingSystemStatsProducer+Linux.swift
[139/167] Compiling Benchmark Progress.swift
[140/167] Compiling Benchmark ProgressElements.swift
[141/167] Compiling Benchmark BenchmarkRunner.swift
[142/167] Compiling Benchmark BenchmarkThresholds+Defaults.swift
[143/167] Compiling Benchmark BenchmarkThresholds.swift
[144/167] Compiling Benchmark Benchmark.swift
[145/167] Compiling Benchmark BenchmarkClock.swift
[146/167] Compiling Benchmark BenchmarkExecutor+Extensions.swift
[147/167] Compiling Benchmark Utilities.swift
[148/167] Compiling Benchmark Statistics.swift
[149/167] Compiling Benchmark MallocStats.swift
[150/167] Compiling Benchmark MallocStatsProducer+jemalloc.swift
[151/167] Compiling Benchmark NIOLock.swift
[152/167] Emitting module Benchmark
[153/167] Compiling Benchmark BenchmarkExecutor.swift
[154/167] Compiling Benchmark BenchmarkInternals.swift
[155/167] Compiling Benchmark BenchmarkMetric+Defaults.swift
[156/167] Compiling Benchmark BenchmarkMetric.swift
[157/167] Compiling Benchmark BenchmarkResult.swift
[158/167] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[159/167] Compiling Benchmark lock.swift
[160/167] Compiling Benchmark OperatingSystemStats.swift
[161/167] Compiling Benchmark OperatingSystemStatsProducer+Darwin.swift
[162/167] Compiling Benchmark Blackhole.swift
[163/167] Compiling Benchmark Int+Extensions.swift
[164/167] Compiling Benchmark MallocStats+jemalloc-support.swift
[165/170] Compiling BenchmarkSwiftKSUID __BenchmarkBoilerplate.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[166/170] Emitting module BenchmarkSwiftKSUID
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[167/170] Compiling BenchmarkSwiftKSUID BenchmarkSwiftKSUID.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Benchmarks/BenchmarkSwiftKSUID/BenchmarkSwiftKSUID.swift:4:5: warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftKSUID
 3 |
 4 | let benchmarks = {
   |     |- warning: let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> Benchmark?' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 | 	Benchmark("BenchmarkCreateKSUID") { benchmark in
 6 | 		for _ in benchmark.scaledIterations {
[167/170] Write Objects.LinkFileList
[168/170] Linking BenchmarkSwiftKSUID
[169/170] Applying BenchmarkSwiftKSUID
Build complete! (70.52s)
Fetching https://github.com/apple/swift-testing.git
[1/12878] Fetching swift-testing
Fetched https://github.com/apple/swift-testing.git from cache (1.49s)
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/ordo-one/package-benchmark
[1/5119] Fetching package-benchmark
[5120/70182] Fetching package-benchmark, swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.13s)
Fetched https://github.com/ordo-one/package-benchmark from cache (3.13s)
Computing version for https://github.com/ordo-one/package-benchmark
warning: 'package-benchmark': Building for SPI@macOS, disabling Jemalloc
Computed https://github.com/ordo-one/package-benchmark at 1.25.0 (3.52s)
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetching https://github.com/ordo-one/TextTable
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-system
[1/203] Fetching texttable
[190/552] Fetching texttable, hdrhistogram-swift
[295/2121] Fetching texttable, hdrhistogram-swift, swift-atomics
[916/5759] Fetching texttable, hdrhistogram-swift, swift-atomics, swift-system
[1656/17928] Fetching texttable, hdrhistogram-swift, swift-atomics, swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (1.14s)
[2838/14290] Fetching texttable, hdrhistogram-swift, swift-atomics, swift-argument-parser
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (1.63s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.63s)
Fetched https://github.com/ordo-one/TextTable from cache (1.63s)
Fetched https://github.com/apple/swift-atomics from cache (1.63s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.67s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.66s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.14s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.68s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.51s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.52s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.51s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.0 (0.72s)
Creating working copy for https://github.com/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
Creating working copy for https://github.com/ordo-one/package-benchmark
Working copy of https://github.com/ordo-one/package-benchmark resolved at 1.25.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 600.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-testing.git
Working copy of https://github.com/apple/swift-testing.git resolved at 0.9.0 (c392dad)
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
warning: 'package-benchmark': Building for SPI@macOS, disabling Jemalloc
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-testing",
      "requirement" : {
        "revision" : [
          "0.9.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-testing.git"
    },
    {
      "identity" : "package-benchmark",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ordo-one/package-benchmark"
    }
  ],
  "manifest_display_name" : "SwiftKSUID",
  "name" : "SwiftKSUID",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftKSUID",
      "targets" : [
        "SwiftKSUID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BenchmarkSwiftKSUID",
      "targets" : [
        "BenchmarkSwiftKSUID"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftKSUIDTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKSUIDTests",
      "path" : "Tests/SwiftKSUIDTests",
      "product_dependencies" : [
        "Testing"
      ],
      "sources" : [
        "Scaffolding.swift",
        "SwiftKSUIDTests.swift"
      ],
      "target_dependencies" : [
        "SwiftKSUID"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftKSUID",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKSUID",
      "path" : "Sources/SwiftKSUID",
      "product_memberships" : [
        "SwiftKSUID",
        "BenchmarkSwiftKSUID"
      ],
      "sources" : [
        "Base62.swift",
        "SwiftKSUID.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkSwiftKSUID",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkSwiftKSUID",
      "path" : "Benchmarks/BenchmarkSwiftKSUID",
      "product_dependencies" : [
        "Benchmark",
        "BenchmarkPlugin"
      ],
      "product_memberships" : [
        "BenchmarkSwiftKSUID"
      ],
      "sources" : [
        "BenchmarkSwiftKSUID.swift"
      ],
      "target_dependencies" : [
        "SwiftKSUID"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.10"
}
Done.