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 Yaap, reference master (034072), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 04:30:51 UTC.

Swift 6 data race errors: 1

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hartbit/Yaap.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hartbit/Yaap
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 034072a Update README.md
Cloned https://github.com/hartbit/Yaap.git
Revision (git rev-parse @):
034072a72efb0ac91bffc955e1acc8c5c8fb790b
SUCCESS checkout https://github.com/hartbit/Yaap.git at master
========================================
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": "yaap",
      "name": "Yaap",
      "url": "https://github.com/hartbit/Yaap.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yaap",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/hartbit/Yaap.git
[1/487] Fetching yaap
Fetched https://github.com/hartbit/Yaap.git from cache (0.77s)
Creating working copy for https://github.com/hartbit/Yaap.git
Working copy of https://github.com/hartbit/Yaap.git resolved at master (034072a)
warning: '.resolve-product-dependencies': dependency 'yaap' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/hartbit/Yaap.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[2/7] Write YaapExample-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/17] Compiling Yaap Option.swift
[6/17] Compiling Yaap SubCommand.swift
[7/18] Compiling Yaap Extensions.swift
[8/18] Compiling Yaap Help.swift
/Users/admin/builder/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[9/18] Compiling Yaap FileOutputStream.swift
[10/18] Compiling Yaap CommandProperty.swift
[11/18] Compiling Yaap ArgumentType.swift
[12/18] Compiling Yaap Argument.swift
[13/18] Emitting module Yaap
/Users/admin/builder/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[14/18] Compiling Yaap Command.swift
/Users/admin/builder/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[15/18] Compiling Yaap Version.swift
/Users/admin/builder/spi-builder-workspace/Sources/Yaap/Command.swift:158:14: warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | }
157 |
158 | internal var exitProcess: (Int32) -> Void = { code in
    |              |- warning: var 'exitProcess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'exitProcess' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'exitProcess' 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
159 |     exit(code)
160 | }
[16/20] Emitting module YaapExample
[17/20] Compiling YaapExample main.swift
[17/20] Write Objects.LinkFileList
[18/20] Linking YaapExample
[19/20] Applying YaapExample
Build complete! (13.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Yaap",
  "name" : "Yaap",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "Yaap",
      "targets" : [
        "Yaap"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "YaapExample",
      "targets" : [
        "YaapExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "YaapTests",
      "module_type" : "SwiftTarget",
      "name" : "YaapTests",
      "path" : "Tests/YaapTests",
      "sources" : [
        "ArgumentTests.swift",
        "ArgumentTypeTests.swift",
        "CommandTests.swift",
        "ExtensionsTests.swift",
        "HelpTests.swift",
        "Helpers.swift",
        "OptionTests.swift",
        "SubCommandTests.swift",
        "VersionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Yaap"
      ],
      "type" : "test"
    },
    {
      "c99name" : "YaapExample",
      "module_type" : "SwiftTarget",
      "name" : "YaapExample",
      "path" : "Sources/YaapExample",
      "product_memberships" : [
        "YaapExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Yaap"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Yaap",
      "module_type" : "SwiftTarget",
      "name" : "Yaap",
      "path" : "Sources/Yaap",
      "product_memberships" : [
        "Yaap",
        "YaapExample"
      ],
      "sources" : [
        "Argument.swift",
        "ArgumentType.swift",
        "Command.swift",
        "CommandProperty.swift",
        "Extensions.swift",
        "FileOutputStream.swift",
        "Help.swift",
        "Option.swift",
        "SubCommand.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.