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 Clavier, reference main (a669ee), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 05:09:48 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/hainayanda/Clavier.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hainayanda/Clavier
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a669eec Update Clavier.podspec
Cloned https://github.com/hainayanda/Clavier.git
Revision (git rev-parse @):
a669eece7105cee029a3c11a5084169fe44879fd
SUCCESS checkout https://github.com/hainayanda/Clavier.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": "clavier",
      "name": "Clavier",
      "url": "https://github.com/hainayanda/Clavier.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Clavier",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/hainayanda/Clavier.git
[1/714] Fetching clavier
Fetched https://github.com/hainayanda/Clavier.git from cache (0.93s)
Creating working copy for https://github.com/hainayanda/Clavier.git
Working copy of https://github.com/hainayanda/Clavier.git resolved at main (a669eec)
warning: '.resolve-product-dependencies': dependency 'clavier' 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/hainayanda/Clavier.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling Clavier ClavierLayoutGuide.swift
[4/7] Compiling Clavier Extensions.swift
[5/7] Emitting module Clavier
/Users/admin/builder/spi-builder-workspace/Clavier/Classes/ClavierGlobalConfig.swift:11:23: warning: static property 'useAppleKeyboardLayoutGuideIfAvailable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public class ClavierGlobalConfig {
11 |     public static var useAppleKeyboardLayoutGuideIfAvailable: Bool = true
   |                       |- warning: static property 'useAppleKeyboardLayoutGuideIfAvailable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'useAppleKeyboardLayoutGuideIfAvailable' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'useAppleKeyboardLayoutGuideIfAvailable' 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
12 | }
13 |
[6/7] Compiling Clavier SafeAreaKeyboardLayoutGuide.swift
[7/7] Compiling Clavier ClavierGlobalConfig.swift
/Users/admin/builder/spi-builder-workspace/Clavier/Classes/ClavierGlobalConfig.swift:11:23: warning: static property 'useAppleKeyboardLayoutGuideIfAvailable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public class ClavierGlobalConfig {
11 |     public static var useAppleKeyboardLayoutGuideIfAvailable: Bool = true
   |                       |- warning: static property 'useAppleKeyboardLayoutGuideIfAvailable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'useAppleKeyboardLayoutGuideIfAvailable' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'useAppleKeyboardLayoutGuideIfAvailable' 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
12 | }
13 |
Build complete! (6.05s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Clavier",
  "name" : "Clavier",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Clavier",
      "targets" : [
        "Clavier"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Clavier",
      "module_type" : "SwiftTarget",
      "name" : "Clavier",
      "path" : "Clavier/Classes",
      "product_memberships" : [
        "Clavier"
      ],
      "sources" : [
        "ClavierGlobalConfig.swift",
        "ClavierLayoutGuide.swift",
        "Extensions.swift",
        "SafeAreaKeyboardLayoutGuide.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.