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 Grain, reference 0.6.4 (a44e13), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 05:59:22 UTC.

Swift 6 data race errors: 8

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/muukii/Grain.git
Reference: 0.6.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/muukii/Grain
 * tag               0.6.4      -> FETCH_HEAD
HEAD is now at a44e13c Fix overload
Cloned https://github.com/muukii/Grain.git
Revision (git rev-parse @):
a44e13c2881c678c1bd5ac60c44da3ae60b445d4
SUCCESS checkout https://github.com/muukii/Grain.git at 0.6.4
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/jpsim/Yams.git from cache (0.81s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.82s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.82s)
Fetched https://github.com/apple/swift-system.git from cache (0.82s)
[1/30137] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.42s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.1 (3.02s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.6.2 (0.57s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.3.0 (0.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.4 (0.60s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.56s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.1
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.3.0
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/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.6.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.1.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": "grain",
      "name": "Grain",
      "url": "https://github.com/muukii/Grain.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Grain",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "1.5.0",
          "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.7.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-tools-support-core",
          "dependencies": [
          ]
        },
        {
          "identity": "alamofire",
          "name": "Alamofire",
          "url": "https://github.com/Alamofire/Alamofire.git",
          "version": "5.10.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
          "dependencies": [
          ]
        },
        {
          "identity": "yams",
          "name": "Yams",
          "url": "https://github.com/jpsim/Yams.git",
          "version": "5.3.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yams",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/muukii/Grain.git
[1/7881] Fetching grain
Fetched https://github.com/muukii/Grain.git from cache (3.59s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.57s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.60s)
Fetched https://github.com/jpsim/Yams.git from cache (0.70s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.70s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (1.24s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.3.1 (0.59s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.50s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.2 (0.61s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
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/muukii/Grain.git
Working copy of https://github.com/muukii/Grain.git resolved at 0.6.4 (a44e13c)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.3.1
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.7.2
Found 4 product dependencies
  - swift-argument-parser
  - swift-tools-support-core
  - Alamofire
  - Yams
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/muukii/Grain.git
https://github.com/muukii/Grain.git
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core.git"
    },
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.6.2",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "Grain",
  "name" : "Grain",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "GrainDescriptor",
      "targets" : [
        "GrainDescriptor"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "grain",
      "targets" : [
        "Grain",
        "GrainDescriptor"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GrainDescriptorTests",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptorTests",
      "path" : "Tests/GrainDescriptorTests",
      "sources" : [
        "APNs.swift",
        "Tests.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GrainDescriptor",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptor",
      "path" : "Sources/GrainDescriptor",
      "product_dependencies" : [
        "Yams",
        "Alamofire",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "GrainDescriptor",
        "grain"
      ],
      "sources" : [
        "Entrypoint.swift",
        "Logger.swift",
        "Source.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Grain",
      "module_type" : "SwiftTarget",
      "name" : "Grain",
      "path" : "Sources/Grain",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "grain"
      ],
      "sources" : [
        "CLI.swift",
        "FileSystem+.swift",
        "Logger.swift",
        "PlatformVersion.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
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
[1/1] Compiling plugin GenerateManualPlugin
Building for debugging...
[1/27] Write sources
[7/27] Write grain-entitlement.plist
[7/27] Write sources
[9/27] Write swift-version-2F0A5646E1D333AE.txt
[10/27] Write sources
[11/27] Compiling TSCclibc process.c
[11/27] Compiling CSystem shims.c
[13/27] Write sources
[14/27] Compiling TSCclibc libc.c
[15/27] Write sources
[16/86] Compiling writer.c
[17/86] Compiling reader.c
[18/86] Compiling api.c
[19/86] Compiling parser.c
[20/86] Compiling emitter.c
[21/86] Compiling scanner.c
[23/101] Emitting module ArgumentParserToolInfo
[24/101] Compiling ArgumentParserToolInfo ToolInfo.swift
[25/138] Emitting module SystemPackage
[26/140] Emitting module TSCLibc
[27/140] Compiling TSCLibc libc.swift
[28/140] Compiling ArgumentParser ParsedValues.swift
[29/140] Compiling ArgumentParser ParserError.swift
[30/140] Compiling ArgumentParser InputOrigin.swift
[31/140] Compiling ArgumentParser Name.swift
[32/140] Compiling ArgumentParser Parsed.swift
[33/140] Compiling SystemPackage Util.swift
[34/140] Compiling SystemPackage UtilConsumers.swift
[35/140] Compiling ArgumentParser BashCompletionsGenerator.swift
[36/140] Compiling ArgumentParser CompletionsGenerator.swift
[37/140] Compiling ArgumentParser FishCompletionsGenerator.swift
[38/140] Compiling ArgumentParser ZshCompletionsGenerator.swift
[39/140] Compiling ArgumentParser UsageGenerator.swift
[40/140] Compiling ArgumentParser CollectionExtensions.swift
[41/140] Compiling ArgumentParser NameSpecification.swift
[42/140] Compiling ArgumentParser Option.swift
[43/140] Compiling ArgumentParser HelpGenerator.swift
[44/140] Compiling ArgumentParser MessageInfo.swift
[45/140] Compiling ArgumentParser SplitArguments.swift
[46/140] Compiling ArgumentParser DumpHelpGenerator.swift
[47/140] Compiling ArgumentParser HelpCommand.swift
[48/140] Compiling ArgumentParser Errors.swift
[49/140] Compiling ArgumentParser Flag.swift
[50/181] Compiling TSCBasic RegEx.swift
[51/181] Compiling TSCBasic Result.swift
[52/181] Compiling TSCBasic SortedArray.swift
[53/181] Compiling TSCBasic Path.swift
[54/184] Compiling TSCBasic Await.swift
[55/184] Compiling TSCBasic Base64URL.swift
[56/184] Compiling TSCBasic ByteString.swift
[57/184] Compiling TSCBasic CStringArray.swift
[58/184] Compiling TSCBasic PathShims.swift
[59/184] Compiling TSCBasic Process.swift
[60/184] Compiling TSCBasic ProcessEnv.swift
[61/184] Compiling TSCBasic FileInfo.swift
[62/184] Emitting module ArgumentParser
[63/184] Emitting module TSCBasic
[64/188] Compiling TSCBasic DeltaAlgorithm.swift
[65/188] Compiling TSCBasic DiagnosticsEngine.swift
[66/188] Compiling TSCBasic DictionaryExtensions.swift
[67/188] Compiling TSCBasic DictionaryLiteralExtensions.swift
[68/188] Compiling TSCBasic EditDistance.swift
[69/188] Compiling TSCBasic CollectionExtensions.swift
[70/188] Compiling TSCBasic Condition.swift
[73/188] Compiling ArgumentParser SequenceExtensions.swift
[74/188] Compiling ArgumentParser StringExtensions.swift
[75/188] Compiling ArgumentParser Tree.swift
[76/188] Compiling TSCBasic KeyedPair.swift
[77/188] Compiling TSCBasic LazyCache.swift
[78/188] Compiling TSCBasic Lock.swift
[79/188] Compiling TSCBasic OSLog.swift
[80/188] Compiling TSCBasic ObjectIdentifierProtocol.swift
[81/188] Compiling TSCBasic OrderedDictionary.swift
[82/188] Compiling TSCBasic OrderedSet.swift
[83/188] Compiling TSCBasic ProcessSet.swift
[87/188] Compiling TSCBasic JSONMapper.swift
[88/188] Emitting module Alamofire
[89/191] Emitting module Yams
[90/192] Compiling TSCBasic Closable.swift
[91/192] Compiling TSCBasic CodableResult.swift
[92/192] Compiling TSCBasic CollectionAlgorithms.swift
[95/192] Compiling TSCBasic StringConversions.swift
[96/192] Compiling TSCBasic SynchronizedQueue.swift
[97/192] Compiling TSCBasic TemporaryFile.swift
[98/192] Compiling TSCBasic TerminalController.swift
[99/192] Compiling TSCBasic CacheableSequence.swift
[112/192] Compiling Yams Tag.swift
[113/192] Compiling Yams Representer.swift
[114/192] Compiling Yams String+Yams.swift
[117/192] Compiling Yams Resolver.swift
[134/192] Compiling Alamofire URLRequest+Alamofire.swift
[135/192] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[136/192] Compiling Alamofire Validation.swift
[164/192] Compiling TSCBasic Thread.swift
[165/192] Compiling TSCBasic Tuple.swift
[166/192] Compiling TSCBasic WritableByteStream.swift
[167/192] Compiling TSCBasic misc.swift
[178/192] Compiling Yams YamlError.swift
[183/192] Compiling TSCBasic JSON.swift
[188/229] Compiling TSCUtility BuildFlags.swift
[189/229] Compiling TSCUtility CollectionExtensions.swift
[190/229] Compiling TSCUtility Context.swift
[191/229] Compiling TSCUtility Diagnostics.swift
[192/233] Compiling TSCUtility FSWatch.swift
[193/233] Compiling TSCUtility FloatingPointExtensions.swift
[194/233] Compiling TSCUtility Git.swift
[195/233] Compiling TSCUtility Hex.swift
[196/233] Emitting module TSCUtility
[197/233] Compiling TSCUtility Tracing.swift
[198/233] Compiling TSCUtility Triple.swift
[199/233] Compiling TSCUtility URL.swift
[200/233] Compiling TSCUtility Verbosity.swift
[201/233] Compiling TSCUtility IndexStore.swift
[202/233] Compiling TSCUtility InterruptHandler.swift
[203/233] Compiling TSCUtility JSONMessageStreamingParser.swift
[204/233] Compiling TSCUtility Netrc.swift
[205/233] Compiling TSCUtility Version.swift
[206/233] Compiling TSCUtility Versioning.swift
[207/233] Compiling TSCUtility dlopen.swift
[208/233] Compiling TSCUtility misc.swift
[209/233] Compiling TSCUtility SerializedDiagnostics.swift
[210/233] Compiling TSCUtility SimplePersistence.swift
[211/233] Compiling TSCUtility StringExtensions.swift
[212/233] Compiling TSCUtility StringMangling.swift
[213/233] Compiling TSCUtility Platform.swift
[214/233] Compiling TSCUtility PolymorphicCodable.swift
[215/233] Compiling TSCUtility ProgressAnimation.swift
[216/233] Compiling TSCUtility SQLite.swift
[217/233] Compiling TSCUtility OSLog.swift
[218/233] Compiling TSCUtility OrderedZip.swift
[219/233] Compiling TSCUtility PersistenceCache.swift
[220/233] Compiling TSCUtility PkgConfig.swift
[221/233] Compiling TSCUtility Bits.swift
[222/233] Compiling TSCUtility Bitstream.swift
[223/233] Compiling TSCUtility BitstreamReader.swift
[224/233] Compiling TSCUtility BitstreamWriter.swift
[225/233] Compiling TSCUtility Archiver.swift
[226/233] Compiling TSCUtility ArgumentParser.swift
[227/233] Compiling TSCUtility ArgumentParserShellCompletion.swift
[228/233] Compiling TSCUtility Array+Extensions.swift
[229/237] Compiling GrainDescriptor Source.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Source.swift:37:1: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
 35 | }
 36 |
 37 | extension Never: GrainView {
    | |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
    | `- note: add @available attribute to enclosing extension
 38 |
 39 |   @_spi(JSONNever)
[230/237] Compiling GrainDescriptor Logger.swift
[231/237] Compiling GrainDescriptor Entrypoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:2:22: warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  1 | import Alamofire
  2 | @_implementationOnly import Darwin.C
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  3 | import Foundation
  4 | import TSCBasic
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:230:12: warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 94 | }
 95 |
 96 | public struct Context: Codable {
    |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 97 |
 98 |   public enum DomainError: Int, Error {
    :
228 | }
229 |
230 | public let context: Context = {
    |            |- warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'context' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 |   if let optIdx = CommandLine.arguments.firstIndex(of: "-context") {
232 |     let encodedContext = CommandLine.arguments[optIdx + 1]
[232/237] Emitting module GrainDescriptor
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:2:22: warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  1 | import Alamofire
  2 | @_implementationOnly import Darwin.C
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  3 | import Foundation
  4 | import TSCBasic
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:230:12: warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 94 | }
 95 |
 96 | public struct Context: Codable {
    |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 97 |
 98 |   public enum DomainError: Int, Error {
    :
228 | }
229 |
230 | public let context: Context = {
    |            |- warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'context' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 |   if let optIdx = CommandLine.arguments.firstIndex(of: "-context") {
232 |     let encodedContext = CommandLine.arguments[optIdx + 1]
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Source.swift:37:1: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
 35 | }
 36 |
 37 | extension Never: GrainView {
    | |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
    | `- note: add @available attribute to enclosing extension
 38 |
 39 |   @_spi(JSONNever)
[232/237] Write Objects.LinkFileList
[234/242] Compiling Grain FileSystem+.swift
[235/242] Compiling Grain PlatformVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grain/PlatformVersion.swift:8:21: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// Represents a platform version.
 5 | public struct PlatformVersion: Equatable, Hashable, Codable {
   |               `- note: consider making struct 'PlatformVersion' conform to the 'Sendable' protocol
 6 |
 7 |   /// The unknown platform version.
 8 |   public static let unknown: PlatformVersion = .init("0.0.0")
   |                     |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property 'unknown' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 |   /// The underlying version storage.
[236/242] Compiling Grain CLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:13:14: warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |   var errorDescription: String?
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
    |              |- warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'fileNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'fileNotFound' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:14:14: warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
    |              |- warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'runtimeNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'runtimeNotFound' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:39:18: warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |       var errorDescription: String?
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
    |                  |- warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failedToCompile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'failedToCompile' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:40:18: warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
    |                  |- warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'couldNotCreateOutputFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'couldNotCreateOutputFile' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:41:18: warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
    |                  |- warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failureInMakingOutput' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'failureInMakingOutput' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:53:38: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |       let validatedPaths = targetFilePaths.map {
 53 |         AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!)
    |                                      `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 54 |       }
 55 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:63:77: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |             let context = GrainDescriptor.Context(
 62 |               filePath: path,
 63 |               outputDir: outputDirectory.map { AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!) },
    |                                                                             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 64 |               userInfoString: userInfo
 65 |             )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:76:13: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 74 |     private func render(_ targetFilePath: AbsolutePath, context: GrainDescriptor.Context) async throws {
 75 |
 76 |       guard localFileSystem.exists(targetFilePath) else {
    |             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 77 |         throw CLIError.fileNotFound
 78 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:92:65: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 90 |
 91 |       /// a directory path of this process binary
 92 |       let applicationDirPath = try Utils.hostBinDir(fileSystem: localFileSystem)
    |                                                                 `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |
 94 |       var runtimeFrameworksPath: AbsolutePath {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:122:13: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 | """)
121 |
122 |       guard localFileSystem.exists(libraryPath) else {
    |             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
123 |         throw CLIError.runtimeNotFound
124 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:59:25: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 57 |
 58 |         for path in validatedPaths {
 59 |           group.addTask {
    |                         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |             let context = GrainDescriptor.Context(
 62 |               filePath: path,
 63 |               outputDir: outputDirectory.map { AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!) },
    |                          `- note: closure captures 'self' which is accessible to code in the current task
 64 |               userInfoString: userInfo
 65 |             )
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:230:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
228 |     do {
229 |       try withTemporaryDirectory { path, completion -> Void in
230 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
231 |           do {
232 |             let r = try await work(path)
    |                               `- note: closure captures 'work' which is accessible to code in the current task
233 |             completion(path)
234 |             continuation.resume(returning: r)
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:234:26: warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
232 |             let r = try await work(path)
233 |             completion(path)
234 |             continuation.resume(returning: r)
    |                          |- warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
    |                          `- note: task-isolated 'r' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
235 |           } catch {
236 |             print(error)
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:269:24: warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
267 |         switch result {
268 |         case .success(let r):
269 |           continuation.resume(returning: r)
    |                        |- warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
    |                        `- note: task-isolated 'r' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
270 |         case .failure(let e):
271 |           continuation.resume(throwing: e)
[237/242] Compiling Grain Logger.swift
[238/242] Emitting module Grain
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:13:14: warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |   var errorDescription: String?
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
    |              |- warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'fileNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'fileNotFound' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:14:14: warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
    |              |- warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'runtimeNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'runtimeNotFound' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:39:18: warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |       var errorDescription: String?
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
    |                  |- warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failedToCompile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'failedToCompile' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:40:18: warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
    |                  |- warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'couldNotCreateOutputFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'couldNotCreateOutputFile' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:41:18: warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
    |                  |- warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failureInMakingOutput' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: add '@MainActor' to make static property 'failureInMakingOutput' part of global actor 'MainActor'
    |                  `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/PlatformVersion.swift:8:21: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// Represents a platform version.
 5 | public struct PlatformVersion: Equatable, Hashable, Codable {
   |               `- note: consider making struct 'PlatformVersion' conform to the 'Sendable' protocol
 6 |
 7 |   /// The unknown platform version.
 8 |   public static let unknown: PlatformVersion = .init("0.0.0")
   |                     |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property 'unknown' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 |   /// The underlying version storage.
[238/242] Linking libGrainDescriptor.dylib
[239/242] Write Objects.LinkFileList
[240/242] Linking grain
[241/242] Applying grain
Build complete! (17.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core.git"
    },
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.6.2",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "Grain",
  "name" : "Grain",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "GrainDescriptor",
      "targets" : [
        "GrainDescriptor"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "grain",
      "targets" : [
        "Grain",
        "GrainDescriptor"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GrainDescriptorTests",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptorTests",
      "path" : "Tests/GrainDescriptorTests",
      "sources" : [
        "APNs.swift",
        "Tests.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GrainDescriptor",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptor",
      "path" : "Sources/GrainDescriptor",
      "product_dependencies" : [
        "Yams",
        "Alamofire",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "GrainDescriptor",
        "grain"
      ],
      "sources" : [
        "Entrypoint.swift",
        "Logger.swift",
        "Source.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Grain",
      "module_type" : "SwiftTarget",
      "name" : "Grain",
      "path" : "Sources/Grain",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "grain"
      ],
      "sources" : [
        "CLI.swift",
        "FileSystem+.swift",
        "Logger.swift",
        "PlatformVersion.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Done.