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 package-frostflake, reference 6.0.0 (00a9e6), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 01:31:10 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-frostflake.git
Reference: 6.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ordo-one/package-frostflake
 * tag               6.0.0      -> FETCH_HEAD
HEAD is now at 00a9e64 feat(major): Sync up with latest internal implementation (#69)
Cloned https://github.com/ordo-one/package-frostflake.git
Revision (git rev-parse @):
00a9e6444ce2ae013521b8faab635a36dbb214c7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-frostflake.git at 6.0.0
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/2044] Fetching swift-docc-plugin
[83/5963] Fetching swift-docc-plugin, swift-system
[971/18358] Fetching swift-docc-plugin, swift-system, swift-argument-parser
[3211/21546] Fetching swift-docc-plugin, swift-system, swift-argument-parser, swift-docc-symbolkit
Fetched https://github.com/apple/swift-system from cache (1.30s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.30s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.30s)
[1736/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.84s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.0 (0.44s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.4.0 (0.44s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.56s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.59s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
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": "package-frostflake",
      "name": "package-frostflake",
      "url": "https://github.com/ordo-one/package-frostflake.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-frostflake",
      "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-system",
          "name": "swift-system",
          "url": "https://github.com/apple/swift-system",
          "version": "1.4.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ordo-one/package-frostflake.git
[1/2170] Fetching package-frostflake
Fetched https://github.com/ordo-one/package-frostflake.git from cache (1.08s)
Fetching https://github.com/apple/swift-system from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-system from cache (0.55s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.55s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.43s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.03s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.4.0
Creating working copy for https://github.com/ordo-one/package-frostflake.git
Working copy of https://github.com/ordo-one/package-frostflake.git resolved at 6.0.0 (00a9e64)
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
Found 2 product dependencies
  - swift-argument-parser
  - swift-system
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ordo-one/package-frostflake.git
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    }
  ],
  "manifest_display_name" : "package-frostflake",
  "name" : "package-frostflake",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Frostflake",
      "targets" : [
        "Frostflake"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "flake",
      "targets" : [
        "FrostflakeUtility"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FrostflakeUtility",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeUtility",
      "path" : "Sources/FrostflakeUtility",
      "product_dependencies" : [
        "ArgumentParser",
        "SystemPackage"
      ],
      "product_memberships" : [
        "flake"
      ],
      "sources" : [
        "FrostflakeUtility.swift"
      ],
      "target_dependencies" : [
        "Frostflake"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FrostflakeTests",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeTests",
      "path" : "Tests/FrostflakeTests",
      "sources" : [
        "EpochDateTime.swift",
        "FrostflakeTests.swift"
      ],
      "target_dependencies" : [
        "FrostflakeUtility",
        "Frostflake"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Frostflake",
      "module_type" : "SwiftTarget",
      "name" : "Frostflake",
      "path" : "Sources/Frostflake",
      "product_memberships" : [
        "Frostflake",
        "flake"
      ],
      "sources" : [
        "Frostflake.swift",
        "FrostflakeDefinitions.swift",
        "FrostflakeHelpers.swift",
        "FrostflakeIdentifier+Base58.swift",
        "FrostflakeIdentifier.swift",
        "Lock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin Swift-DocC Preview
Building for debugging...
[3/14] Write sources
[7/14] Write flake-entitlement.plist
[8/14] Write sources
[9/14] Compiling CSystem shims.c
[10/14] Write swift-version--7754E27361AE5C74.txt
[12/44] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/44] Emitting module ArgumentParserToolInfo
[14/82] Compiling ArgumentParser Option.swift
[15/82] Compiling ArgumentParser OptionGroup.swift
[16/84] Emitting module Frostflake
/Users/admin/builder/spi-builder-workspace/Sources/Frostflake/Frostflake.swift:18:24: warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 |     // Class variables and functions
 18 |     private static var privateSharedGenerator: Frostflake?
    |                        |- warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'privateSharedGenerator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'privateSharedGenerator' 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
 19 |
 20 |     /// Convenience static variable when using the same generator in many places
/Users/admin/builder/spi-builder-workspace/Sources/Frostflake/Lock.swift:23:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
 21 | final class Lock {
 22 |     #if os(macOS)
 23 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
    |                         `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
 24 |     #else
 25 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[17/84] Compiling Frostflake Frostflake.swift
/Users/admin/builder/spi-builder-workspace/Sources/Frostflake/Frostflake.swift:18:24: warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 |     // Class variables and functions
 18 |     private static var privateSharedGenerator: Frostflake?
    |                        |- warning: static property 'privateSharedGenerator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'privateSharedGenerator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'privateSharedGenerator' 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
 19 |
 20 |     /// Convenience static variable when using the same generator in many places
[18/84] Compiling Frostflake FrostflakeDefinitions.swift
[19/84] Compiling Frostflake Lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Frostflake/Lock.swift:23:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
 21 | final class Lock {
 22 |     #if os(macOS)
 23 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
    |                         `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
 24 |     #else
 25 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[20/84] Compiling Frostflake FrostflakeIdentifier.swift
[21/84] Compiling Frostflake FrostflakeHelpers.swift
[22/84] Compiling Frostflake FrostflakeIdentifier+Base58.swift
[23/84] Compiling ArgumentParser FishCompletionsGenerator.swift
[24/84] Compiling ArgumentParser ZshCompletionsGenerator.swift
[25/84] Compiling ArgumentParser Argument.swift
[26/84] Compiling ArgumentParser ParsableArguments.swift
[27/84] Compiling ArgumentParser ParsableArgumentsValidation.swift
[28/84] Compiling ArgumentParser ParsableCommand.swift
[29/84] Compiling SystemPackage Util.swift
[30/84] Compiling SystemPackage UtilConsumers.swift
[31/84] Compiling ArgumentParser BashCompletionsGenerator.swift
[32/84] Compiling ArgumentParser CompletionsGenerator.swift
[33/84] Compiling ArgumentParser EnumerableFlag.swift
[34/84] Compiling ArgumentParser ExpressibleByArgument.swift
[35/84] Compiling ArgumentParser HelpGenerator.swift
[36/84] Compiling ArgumentParser MessageInfo.swift
[37/84] Compiling ArgumentParser UsageGenerator.swift
[38/84] Compiling ArgumentParser Flag.swift
[39/84] Compiling ArgumentParser NameSpecification.swift
[40/84] Emitting module SystemPackage
[41/84] Compiling ArgumentParser CollectionExtensions.swift
[42/84] Compiling ArgumentParser AsyncParsableCommand.swift
[43/84] Compiling ArgumentParser CommandConfiguration.swift
[48/88] Emitting module ArgumentParser
[58/88] Compiling ArgumentParser Platform.swift
[59/88] Compiling ArgumentParser SequenceExtensions.swift
[60/88] Compiling ArgumentParser StringExtensions.swift
[61/88] Compiling ArgumentParser Tree.swift
[62/88] Compiling ArgumentParser InputOrigin.swift
[63/88] Compiling ArgumentParser Name.swift
[64/88] Compiling ArgumentParser Parsed.swift
[65/88] Compiling ArgumentParser ParsedValues.swift
[66/88] Compiling ArgumentParser ArgumentDefinition.swift
[67/88] Compiling ArgumentParser ArgumentSet.swift
[68/88] Compiling ArgumentParser CommandParser.swift
[69/88] Compiling ArgumentParser InputKey.swift
[71/88] Compiling ArgumentParser ArgumentVisibility.swift
[72/88] Compiling ArgumentParser CompletionKind.swift
[73/88] Compiling ArgumentParser Errors.swift
[78/88] Compiling ArgumentParser ParserError.swift
[79/88] Compiling ArgumentParser SplitArguments.swift
[80/88] Compiling ArgumentParser DumpHelpGenerator.swift
[81/88] Compiling ArgumentParser HelpCommand.swift
[86/90] Emitting module FrostflakeUtility
/Users/admin/builder/spi-builder-workspace/Sources/FrostflakeUtility/FrostflakeUtility.swift:12:1: warning: extension declares a conformance of imported type 'FrostflakeIdentifier' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Frostflake' introduce this conformance in the future
10 | import Frostflake
11 |
12 | extension FrostflakeIdentifier: ExpressibleByArgument {
   | |- warning: extension declares a conformance of imported type 'FrostflakeIdentifier' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Frostflake' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
13 |     public init?(argument: String) {
14 |         if let frostflakeIdentifier = FrostflakeIdentifier(base58: argument) {
[87/90] Compiling FrostflakeUtility FrostflakeUtility.swift
/Users/admin/builder/spi-builder-workspace/Sources/FrostflakeUtility/FrostflakeUtility.swift:12:1: warning: extension declares a conformance of imported type 'FrostflakeIdentifier' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Frostflake' introduce this conformance in the future
10 | import Frostflake
11 |
12 | extension FrostflakeIdentifier: ExpressibleByArgument {
   | |- warning: extension declares a conformance of imported type 'FrostflakeIdentifier' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Frostflake' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
13 |     public init?(argument: String) {
14 |         if let frostflakeIdentifier = FrostflakeIdentifier(base58: argument) {
[87/90] Write Objects.LinkFileList
[88/90] Linking flake
[89/90] Applying flake
Build complete! (30.96s)
warning: 'swift-system': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/CMakeLists.txt
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "package-frostflake",
  "name" : "package-frostflake",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Frostflake",
      "targets" : [
        "Frostflake"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "flake",
      "targets" : [
        "FrostflakeUtility"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FrostflakeUtility",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeUtility",
      "path" : "Sources/FrostflakeUtility",
      "product_dependencies" : [
        "ArgumentParser",
        "SystemPackage"
      ],
      "product_memberships" : [
        "flake"
      ],
      "sources" : [
        "FrostflakeUtility.swift"
      ],
      "target_dependencies" : [
        "Frostflake"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FrostflakeTests",
      "module_type" : "SwiftTarget",
      "name" : "FrostflakeTests",
      "path" : "Tests/FrostflakeTests",
      "sources" : [
        "EpochDateTime.swift",
        "FrostflakeTests.swift"
      ],
      "target_dependencies" : [
        "FrostflakeUtility",
        "Frostflake"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Frostflake",
      "module_type" : "SwiftTarget",
      "name" : "Frostflake",
      "path" : "Sources/Frostflake",
      "product_memberships" : [
        "Frostflake",
        "flake"
      ],
      "sources" : [
        "Frostflake.swift",
        "FrostflakeDefinitions.swift",
        "FrostflakeHelpers.swift",
        "FrostflakeIdentifier+Base58.swift",
        "FrostflakeIdentifier.swift",
        "Lock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.