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 swift-figlet, reference main (166eef), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 01:11:13 UTC.

Swift 6 data race errors: 1

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/apple/example-package-figlet.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/apple/example-package-figlet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 166eef4 initial commit
Cloned https://github.com/apple/example-package-figlet.git
Revision (git rev-parse @):
166eef46de0b094d6d1966e749f727d6c4beba0e
SUCCESS checkout https://github.com/apple/example-package-figlet.git at main
========================================
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": "example-package-figlet",
      "name": "swift-figlet",
      "url": "https://github.com/apple/example-package-figlet.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/example-package-figlet",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/apple/example-package-figlet.git
[1/26] Fetching example-package-figlet
Fetched https://github.com/apple/example-package-figlet.git from cache (0.58s)
Creating working copy for https://github.com/apple/example-package-figlet.git
Working copy of https://github.com/apple/example-package-figlet.git resolved at main (166eef4)
warning: '.resolve-product-dependencies': dependency 'example-package-figlet' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apple/example-package-figlet.git
https://github.com/apple/example-package-figlet.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-figlet",
  "name" : "swift-figlet",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Figlet",
      "targets" : [
        "Figlet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FigletTests",
      "module_type" : "SwiftTarget",
      "name" : "FigletTests",
      "path" : "Tests/FigletTests",
      "sources" : [
        "FigletTests.swift"
      ],
      "target_dependencies" : [
        "Figlet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Figlet",
      "module_type" : "SwiftTarget",
      "name" : "Figlet",
      "path" : "Sources/Figlet",
      "product_memberships" : [
        "Figlet"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Figlet/standard.flf",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Figlet.swift",
        "FigletFile.swift",
        "Font.swift"
      ],
      "type" : "library"
    }
  ],
  "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
Building for debugging...
[0/3] Write sources
[0/3] Copying standard.flf
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/8] Compiling Figlet Font.swift
/Users/admin/builder/spi-builder-workspace/Sources/Figlet/Font.swift:96:27: warning: static property 'EmptyChar' is not concurrency-safe because non-'Sendable' type 'Figlet.Char' may have shared mutable state; this is an error in the Swift 6 language mode
 92 |
 93 | extension Figlet {
 94 |     public struct Char {
    |                   `- note: consider making struct 'Char' conform to the 'Sendable' protocol
 95 |         /// Represents an empty Character
 96 |         public static let EmptyChar = Self(charLines: [])
    |                           |- warning: static property 'EmptyChar' is not concurrency-safe because non-'Sendable' type 'Figlet.Char' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'EmptyChar' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |
 98 |         /// height in lines of this Character
[5/8] Compiling Figlet Figlet.swift
[6/8] Compiling Figlet resource_bundle_accessor.swift
[7/8] Compiling Figlet FigletFile.swift
[8/8] Emitting module Figlet
/Users/admin/builder/spi-builder-workspace/Sources/Figlet/Font.swift:96:27: warning: static property 'EmptyChar' is not concurrency-safe because non-'Sendable' type 'Figlet.Char' may have shared mutable state; this is an error in the Swift 6 language mode
 92 |
 93 | extension Figlet {
 94 |     public struct Char {
    |                   `- note: consider making struct 'Char' conform to the 'Sendable' protocol
 95 |         /// Represents an empty Character
 96 |         public static let EmptyChar = Self(charLines: [])
    |                           |- warning: static property 'EmptyChar' is not concurrency-safe because non-'Sendable' type 'Figlet.Char' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'EmptyChar' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |
 98 |         /// height in lines of this Character
Build complete! (4.43s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-figlet",
  "name" : "swift-figlet",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Figlet",
      "targets" : [
        "Figlet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FigletTests",
      "module_type" : "SwiftTarget",
      "name" : "FigletTests",
      "path" : "Tests/FigletTests",
      "sources" : [
        "FigletTests.swift"
      ],
      "target_dependencies" : [
        "Figlet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Figlet",
      "module_type" : "SwiftTarget",
      "name" : "Figlet",
      "path" : "Sources/Figlet",
      "product_memberships" : [
        "Figlet"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Figlet/standard.flf",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Figlet.swift",
        "FigletFile.swift",
        "Font.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.