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 master (be3551), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 02:22:52 UTC.

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/DimaRU/BuildEnvironment.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DimaRU/BuildEnvironment
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at be3551b Fix README issues
Cloned https://github.com/DimaRU/BuildEnvironment.git
Revision (git rev-parse @):
be3551bd2b2d63e72426c4693c25f6f36108da63
SUCCESS checkout https://github.com/DimaRU/BuildEnvironment.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": "buildenvironment",
      "name": "BuildEnvironment",
      "url": "https://github.com/DimaRU/BuildEnvironment.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BuildEnvironment",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/DimaRU/BuildEnvironment.git
[1/102] Fetching buildenvironment
Fetched https://github.com/DimaRU/BuildEnvironment.git from cache (0.90s)
Creating working copy for https://github.com/DimaRU/BuildEnvironment.git
Working copy of https://github.com/DimaRU/BuildEnvironment.git resolved at master (be3551b)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
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.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/6] Write sources
[1/6] Write BuildEnvGenerator-tool-entitlement.plist
[2/6] Write swift-version--7754E27361AE5C74.txt
[4/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: annotate 'stderror' 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
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[5/11] Compiling BuildEnvGenerator BuildEnvGenerator.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: annotate 'stderror' 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
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[6/11] Compiling BuildEnvGenerator GetArgument.swift
[7/11] Compiling BuildEnvGenerator DictionaryExtensions.swift
[8/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: annotate 'stderror' 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
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[8/11] Write Objects.LinkFileList
[9/11] Linking BuildEnvGenerator-tool
[10/11] Applying BuildEnvGenerator-tool
Build of product 'BuildEnvGenerator' complete! (8.46s)
[1/1] Compiling plugin BuildEnvPlugin
Building for debugging...
[1/13] Write BuildEnvExample-entitlement.plist
[1/13] Write sources
[3/13] Write BuildEnvGenerator-entitlement.plist
[4/13] Write swift-version--7754E27361AE5C74.txt
Error in line 12 of /Users/admin/builder/spi-builder-workspace/buildenv.config: no environment variable USER
[5/13] Generating BuildEnvPlugin
BUILD FAILURE 6.0 macosSpm