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 Life, reference main (230acd), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 05:18:16 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zntfdr/Life.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/zntfdr/Life
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 230acd2 Merge pull request #3 from zntfdr/swift-5.5-migration
Cloned https://github.com/zntfdr/Life.git
Revision (git rev-parse @):
230acd22b5441ed10eee376dd6d4da4b9c9978ed
SUCCESS checkout https://github.com/zntfdr/Life.git at main
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-tools-support-core.git
[1/12353] Fetching swift-argument-parser
[125/18875] Fetching swift-argument-parser, swift-tools-support-core
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.49s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (1.49s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.2.4 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.2 (0.67s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.2.4
========================================
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": "life",
      "name": "Life",
      "url": "https://github.com/zntfdr/Life.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Life",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser.git",
          "version": "1.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-tools-support-core",
          "name": "swift-tools-support-core",
          "url": "https://github.com/apple/swift-tools-support-core.git",
          "version": "0.2.7",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-tools-support-core",
          "dependencies": [
            {
              "identity": "swift-system",
              "name": "swift-system",
              "url": "https://github.com/apple/swift-system.git",
              "version": "1.1.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/zntfdr/Life.git
[1/93] Fetching life
Fetched https://github.com/zntfdr/Life.git from cache (1.00s)
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.75s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.75s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.3 (0.03s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.2.7 (0.69s)
Fetching https://github.com/apple/swift-system.git
[1/3901] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.92s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.68s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.2.7
Creating working copy for https://github.com/zntfdr/Life.git
Working copy of https://github.com/zntfdr/Life.git resolved at main (230acd2)
Found 2 product dependencies
  - swift-argument-parser
  - swift-tools-support-core
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/zntfdr/Life.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
Building for debugging...
[0/14] Write sources
[4/14] Write life-cli-entitlement.plist
[8/14] Compiling TSCclibc process.c
[9/14] Compiling TSCclibc libc.c
[10/14] Write swift-version--7754E27361AE5C74.txt
[12/22] Emitting module Life
[13/22] Compiling Life Cell.swift
[14/22] Compiling Life Mode.swift
[15/22] Compiling Life World.swift
[16/22] Emitting module ArgumentParserToolInfo
[17/22] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/57] Compiling TSCLibc libc.swift
[19/57] Emitting module TSCLibc
[20/98] Compiling TSCBasic PathShims.swift
[21/98] Compiling TSCBasic Process.swift
[22/98] Compiling TSCBasic ProcessEnv.swift
[23/98] Compiling TSCBasic JSONMapper.swift
[24/101] Compiling TSCBasic GraphAlgorithms.swift
[25/101] Compiling TSCBasic HashAlgorithms.swift
[26/101] Compiling TSCBasic JSON.swift
[27/101] Compiling TSCBasic Path.swift
[28/101] Compiling TSCBasic CStringArray.swift
[29/101] Compiling TSCBasic CacheableSequence.swift
[30/101] Compiling TSCBasic FileInfo.swift
[31/101] Compiling TSCBasic FileSystem.swift
[32/101] Compiling TSCBasic Closable.swift
[33/101] Compiling TSCBasic CodableResult.swift
[34/101] Compiling TSCBasic CollectionAlgorithms.swift
[35/101] Compiling TSCBasic CollectionExtensions.swift
[36/101] Compiling TSCBasic Condition.swift
[37/101] Compiling TSCBasic Await.swift
[38/101] Compiling TSCBasic Base64URL.swift
[39/101] Compiling TSCBasic ByteString.swift
[40/101] Compiling ArgumentParser StringExtensions.swift
[41/101] Compiling ArgumentParser Tree.swift
[42/101] Compiling TSCBasic DictionaryExtensions.swift
[43/101] Compiling TSCBasic DictionaryLiteralExtensions.swift
[44/101] Compiling TSCBasic EditDistance.swift
[45/105] Compiling ArgumentParser SequenceExtensions.swift
[48/105] Emitting module ArgumentParser
[49/105] Compiling TSCBasic SortedArray.swift
[50/105] Compiling TSCBasic StringConversions.swift
[51/105] Compiling TSCBasic SynchronizedQueue.swift
[52/105] Compiling TSCBasic TemporaryFile.swift
[53/105] Emitting module TSCBasic
[54/105] Compiling TSCBasic OSLog.swift
[55/105] Compiling TSCBasic ObjectIdentifierProtocol.swift
[56/105] Compiling TSCBasic OrderedDictionary.swift
[57/105] Compiling TSCBasic OrderedSet.swift
[67/105] Compiling TSCBasic ProcessSet.swift
[68/105] Compiling TSCBasic RegEx.swift
[69/105] Compiling TSCBasic Result.swift
[70/105] Compiling TSCBasic KeyedPair.swift
[71/105] Compiling TSCBasic LazyCache.swift
[72/105] Compiling TSCBasic Lock.swift
[89/105] Compiling TSCBasic Thread.swift
[90/105] Compiling TSCBasic Tuple.swift
[91/105] Compiling TSCBasic WritableByteStream.swift
[92/105] Compiling TSCBasic misc.swift
[103/142] Compiling TSCUtility FSWatch.swift
[104/142] Compiling TSCUtility FloatingPointExtensions.swift
[105/142] Compiling TSCUtility Git.swift
[106/142] Compiling TSCUtility Hex.swift
[107/146] Compiling TSCUtility IndexStore.swift
[108/146] Compiling TSCUtility InterruptHandler.swift
[109/146] Compiling TSCUtility JSONMessageStreamingParser.swift
[110/146] Compiling TSCUtility Netrc.swift
[111/146] Compiling TSCUtility Tracing.swift
[112/146] Compiling TSCUtility Triple.swift
[113/146] Compiling TSCUtility URL.swift
[114/146] Compiling TSCUtility Verbosity.swift
[115/146] Compiling TSCUtility BuildFlags.swift
[116/146] Compiling TSCUtility CollectionExtensions.swift
[117/146] Compiling TSCUtility Context.swift
[118/146] Compiling TSCUtility Diagnostics.swift
[119/146] Compiling TSCUtility SerializedDiagnostics.swift
[120/146] Compiling TSCUtility SimplePersistence.swift
[121/146] Compiling TSCUtility StringExtensions.swift
[122/146] Compiling TSCUtility StringMangling.swift
[123/146] Compiling TSCUtility Platform.swift
[124/146] Compiling TSCUtility PolymorphicCodable.swift
[125/146] Compiling TSCUtility ProgressAnimation.swift
[126/146] Compiling TSCUtility SQLite.swift
[127/146] Compiling TSCUtility Archiver.swift
[128/146] Compiling TSCUtility ArgumentParser.swift
[129/146] Compiling TSCUtility ArgumentParserShellCompletion.swift
[130/146] Compiling TSCUtility Array+Extensions.swift
[131/146] Compiling TSCUtility Version.swift
[132/146] Compiling TSCUtility Versioning.swift
[133/146] Compiling TSCUtility dlopen.swift
[134/146] Compiling TSCUtility misc.swift
[135/146] Emitting module TSCUtility
[136/146] Compiling TSCUtility OSLog.swift
[137/146] Compiling TSCUtility OrderedZip.swift
[138/146] Compiling TSCUtility PersistenceCache.swift
[139/146] Compiling TSCUtility PkgConfig.swift
[140/146] Compiling TSCUtility Bits.swift
[141/146] Compiling TSCUtility Bitstream.swift
[142/146] Compiling TSCUtility BitstreamReader.swift
[143/146] Compiling TSCUtility BitstreamWriter.swift
[144/150] Compiling lifeCLI Mode.swift
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Mode.swift:4:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Life' introduce this conformance in the future
 2 | import Life
 3 |
 4 | extension Mode: ExpressibleByArgument {
   | |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Life' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |   public init?(argument: String) {
 6 |     switch argument {
[145/150] Compiling lifeCLI Command.swift
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Command.swift:25:7: warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |     while !world.aliveCells.isEmpty {
24 |       printWorld(world)
25 |       stdoutStream.flush()
   |       `- warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 |       usleep(generationPeriod)
27 |       world.spawnNextGeneration()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/WritableByteStream.swift:783:12: note: var declared here
781 |
782 | /// Public stdout stream instance.
783 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
    |            `- note: var declared here
784 |     filePointer: TSCLibc.stdout,
785 |     closeOnDeinit: false))
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Command.swift:30:5: warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
28 |       clearWorld()
29 |     }
30 |     stdoutStream.flush()
   |     `- warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
31 |   }
32 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/WritableByteStream.swift:783:12: note: var declared here
781 |
782 | /// Public stdout stream instance.
783 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
    |            `- note: var declared here
784 |     filePointer: TSCLibc.stdout,
785 |     closeOnDeinit: false))
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Command.swift:48:7: warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
46 |   func clearWorld() {
47 |     for _ in 0..<rows {
48 |       stdoutStream <<< "\u{001B}[2K\r\u{001B}[1A" // clear entire row & go up one row
   |       `- warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
49 |     }
50 |   }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/WritableByteStream.swift:783:12: note: var declared here
781 |
782 | /// Public stdout stream instance.
783 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
    |            `- note: var declared here
784 |     filePointer: TSCLibc.stdout,
785 |     closeOnDeinit: false))
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Command.swift:60:7: warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
58 |         line += world.isCellAlive(cell) ? "█" : " "
59 |       }
60 |       stdoutStream <<< "\(line)\u{001B}[0m\n"
   |       `- warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
61 |     }
62 |   }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/WritableByteStream.swift:783:12: note: var declared here
781 |
782 | /// Public stdout stream instance.
783 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
    |            `- note: var declared here
784 |     filePointer: TSCLibc.stdout,
785 |     closeOnDeinit: false))
[146/150] Compiling lifeCLI Life.swift
[147/150] Emitting module lifeCLI
/Users/admin/builder/spi-builder-workspace/Sources/lifeCLI/Mode.swift:4:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Life' introduce this conformance in the future
 2 | import Life
 3 |
 4 | extension Mode: ExpressibleByArgument {
   | |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Life' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |   public init?(argument: String) {
 6 |     switch argument {
[147/150] Write Objects.LinkFileList
[148/150] Linking life-cli
[149/150] Applying life-cli
Build complete! (22.57s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "1.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.4",
            "upper_bound" : "0.3.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core.git"
    }
  ],
  "manifest_display_name" : "Life",
  "name" : "Life",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Life",
      "targets" : [
        "Life"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "life-cli",
      "targets" : [
        "lifeCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "lifeCLI",
      "module_type" : "SwiftTarget",
      "name" : "lifeCLI",
      "path" : "Sources/lifeCLI",
      "product_dependencies" : [
        "SwiftToolsSupport-auto",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "life-cli"
      ],
      "sources" : [
        "Command.swift",
        "Life.swift",
        "Mode.swift"
      ],
      "target_dependencies" : [
        "Life"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "LifeTests",
      "module_type" : "SwiftTarget",
      "name" : "LifeTests",
      "path" : "Tests/LifeTests",
      "sources" : [
        "CellTests.swift",
        "WorldAddTests.swift",
        "WorldContainsTests.swift",
        "WorldGenerationTests.swift",
        "WorldInitializationTests.swift",
        "WorldIsAliveTests.swift",
        "WorldNeighborsTests.swift",
        "WorldOscillatorPatternTests.swift",
        "WorldRemoveTests.swift",
        "WorldResetTests.swift",
        "WorldStillPatternTests.swift"
      ],
      "target_dependencies" : [
        "Life"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Life",
      "module_type" : "SwiftTarget",
      "name" : "Life",
      "path" : "Sources/Life",
      "product_memberships" : [
        "Life",
        "life-cli"
      ],
      "sources" : [
        "Cell.swift",
        "Mode.swift",
        "World.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.