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 FontBlaster, reference 5.3.0 (09fffe), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 12:59:07 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArtSabintsev/Fontblaster.git
Reference: 5.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ArtSabintsev/Fontblaster
 * tag               5.3.0      -> FETCH_HEAD
HEAD is now at 09fffe9 Updated podspec
Cloned https://github.com/ArtSabintsev/Fontblaster.git
Revision (git rev-parse @):
09fffe9cf20293fce81ce7154b46f8e60291baa8
SUCCESS checkout https://github.com/ArtSabintsev/Fontblaster.git at 5.3.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": "fontblaster",
      "name": "FontBlaster",
      "url": "https://github.com/ArtSabintsev/Fontblaster.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fontblaster",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ArtSabintsev/Fontblaster.git
[1/3047] Fetching fontblaster
Fetched https://github.com/ArtSabintsev/Fontblaster.git from cache (2.46s)
Creating working copy for https://github.com/ArtSabintsev/Fontblaster.git
Working copy of https://github.com/ArtSabintsev/Fontblaster.git resolved at 5.3.0 (09fffe9)
warning: '.resolve-product-dependencies': dependency 'fontblaster' 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/ArtSabintsev/Fontblaster.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling FontBlaster FontBlaster.swift
/Users/admin/builder/spi-builder-workspace/Sources/FontBlaster.swift:27:23: warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     /// Toggles debug print() statements
 27 |     public static var debugEnabled = false
    |                       |- warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'debugEnabled' 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
 28 |
 29 |     /// A list of the loaded fonts
/Users/admin/builder/spi-builder-workspace/Sources/FontBlaster.swift:30:23: warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// A list of the loaded fonts
 30 |     public static var loadedFonts: [String] = []
    |                       |- warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loadedFonts' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loadedFonts' 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
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
[4/4] Emitting module FontBlaster
/Users/admin/builder/spi-builder-workspace/Sources/FontBlaster.swift:27:23: warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     /// Toggles debug print() statements
 27 |     public static var debugEnabled = false
    |                       |- warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'debugEnabled' 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
 28 |
 29 |     /// A list of the loaded fonts
/Users/admin/builder/spi-builder-workspace/Sources/FontBlaster.swift:30:23: warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// A list of the loaded fonts
 30 |     public static var loadedFonts: [String] = []
    |                       |- warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loadedFonts' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loadedFonts' 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
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
Build complete! (6.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FontBlaster",
  "name" : "FontBlaster",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    }
  ],
  "products" : [
    {
      "name" : "FontBlaster",
      "targets" : [
        "FontBlaster"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "FontBlaster",
      "module_type" : "SwiftTarget",
      "name" : "FontBlaster",
      "path" : "Sources",
      "product_memberships" : [
        "FontBlaster"
      ],
      "sources" : [
        "FontBlaster.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.