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

Failed to build BuildEnvironment, reference 1.0.0 (5f7dc4), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 15:32:38 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DimaRU/BuildEnvironment.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DimaRU/BuildEnvironment
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 5f7dc4a Update README.md
Cloned https://github.com/DimaRU/BuildEnvironment.git
Revision (git rev-parse @):
5f7dc4a7f9bde8414764b8a342b091b2e987e674
SUCCESS checkout https://github.com/DimaRU/BuildEnvironment.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DimaRU/BuildEnvironment.git
https://github.com/DimaRU/BuildEnvironment.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BuildEnvironment",
  "name" : "BuildEnvironment",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "BuildEnvPlugin",
      "targets" : [
        "BuildEnvPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BuildEnvGenerator",
      "targets" : [
        "BuildEnvGenerator"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BuildEnvExample",
      "targets" : [
        "BuildEnvExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BuildEnvPlugin",
      "module_type" : "PluginTarget",
      "name" : "BuildEnvPlugin",
      "path" : "Plugins/BuildEnvPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "BuildEnvPlugin",
        "BuildEnvExample"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "BuildEnvGenerator"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "BuildEnvGenerator",
      "module_type" : "SwiftTarget",
      "name" : "BuildEnvGenerator",
      "path" : "Sources/BuildEnvGenerator",
      "product_memberships" : [
        "BuildEnvPlugin",
        "BuildEnvGenerator",
        "BuildEnvExample"
      ],
      "sources" : [
        "BuildEnvGenerator.swift",
        "DictionaryExtensions.swift",
        "GetArgument.swift",
        "stderror.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BuildEnvExample",
      "module_type" : "SwiftTarget",
      "name" : "BuildEnvExample",
      "path" : "Sources/BuildEnvExample",
      "product_memberships" : [
        "BuildEnvExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "BuildEnvPlugin"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.8"
}
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
[0/6] Write sources
[1/6] Write BuildEnvGenerator-tool-entitlement.plist
[2/6] Write swift-version-2F0A5646E1D333AE.txt
[4/11] Compiling BuildEnvGenerator stderror.swift
/Users/admin/builder/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[5/11] Compiling BuildEnvGenerator GetArgument.swift
[6/11] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[7/11] Compiling BuildEnvGenerator DictionaryExtensions.swift
[8/11] Emitting module BuildEnvGenerator
/Users/admin/builder/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[8/11] Write Objects.LinkFileList
[9/11] Linking BuildEnvGenerator-tool
[10/11] Applying BuildEnvGenerator-tool
[1/1] Compiling plugin BuildEnvPlugin
Building for debugging...
[1/18] Write sources
[1/18] Write BuildEnvGenerator-tool-entitlement.plist
[1/18] Write sources
[4/18] Write BuildEnvGenerator-entitlement.plist
[5/18] Write BuildEnvExample-entitlement.plist
[6/18] Write swift-version-2F0A5646E1D333AE.txt
[7/23] Write Objects.LinkFileList
[9/23] Compiling BuildEnvGenerator stderror.swift
/Users/admin/builder/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[10/23] Compiling BuildEnvGenerator GetArgument.swift
[10/23] Linking BuildEnvGenerator-tool
[11/23] Applying BuildEnvGenerator-tool
[13/23] Compiling BuildEnvGenerator DictionaryExtensions.swift
[14/23] Emitting module BuildEnvGenerator
/Users/admin/builder/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[15/23] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[15/23] Write Objects.LinkFileList
Error in line 12 of /Users/admin/builder/spi-builder-workspace/buildenv.config: no environment variable USER
[16/23] Generating BuildEnvPlugin
[16/23] Linking BuildEnvGenerator
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/9] Compiling BuildEnvGenerator DictionaryExtensions.swift
[3/9] Compiling BuildEnvGenerator GetArgument.swift
[4/9] Compiling BuildEnvGenerator stderror.swift
[5/9] Emitting module BuildEnvGenerator
[6/9] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[6/8] Linking BuildEnvGenerator-tool
[7/8] Applying BuildEnvGenerator-tool
[0/1] Planning build
[1/1] Compiling plugin BuildEnvPlugin
Building for debugging...
[1/13] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling BuildEnvGenerator DictionaryExtensions.swift
[4/17] Compiling BuildEnvGenerator GetArgument.swift
[5/17] Compiling BuildEnvGenerator stderror.swift
[5/17] Linking BuildEnvGenerator-tool
[6/17] Applying BuildEnvGenerator-tool
[8/17] Emitting module BuildEnvGenerator
[9/17] Compiling BuildEnvGenerator BuildEnvGenerator.swift
Error in line 12 of /Users/admin/builder/spi-builder-workspace/buildenv.config: no environment variable USER
[9/16] Generating BuildEnvPlugin
[9/16] Linking BuildEnvGenerator
BUILD FAILURE 6.1 macosSpm