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 EnigmaKit, reference master (85eea4), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 22:34:14 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mikaoj/EnigmaKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mikaoj/EnigmaKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 85eea48 Bumped version to 1.1.0
Cloned https://github.com/mikaoj/EnigmaKit.git
Revision (git rev-parse @):
85eea48667d754bf11a4820b9eec9990e6edadc3
SUCCESS checkout https://github.com/mikaoj/EnigmaKit.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": "enigmakit",
      "name": "EnigmaKit",
      "url": "https://github.com/mikaoj/EnigmaKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EnigmaKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mikaoj/EnigmaKit.git
[1/240] Fetching enigmakit
Fetched https://github.com/mikaoj/EnigmaKit.git from cache (0.84s)
Creating working copy for https://github.com/mikaoj/EnigmaKit.git
Working copy of https://github.com/mikaoj/EnigmaKit.git resolved at master (85eea48)
warning: '.resolve-product-dependencies': dependency 'enigmakit' 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/mikaoj/EnigmaKit.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/10] Compiling EnigmaKit Rotor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnigmaKit/Wheel.swift:32:14: warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |   }
31 |
32 |   static var alphabet: [Character] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
   |              |- warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'alphabet' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'alphabet' 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
33 |
34 |   var inner: [Character]
[4/10] Compiling EnigmaKit Wheel.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnigmaKit/Wheel.swift:32:14: warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |   }
31 |
32 |   static var alphabet: [Character] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
   |              |- warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'alphabet' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'alphabet' 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
33 |
34 |   var inner: [Character]
[5/10] Compiling EnigmaKit Reflector.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnigmaKit/Wheel.swift:32:14: warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |   }
31 |
32 |   static var alphabet: [Character] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
   |              |- warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'alphabet' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'alphabet' 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
33 |
34 |   var inner: [Character]
[6/10] Compiling EnigmaKit Spindle.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnigmaKit/Wheel.swift:32:14: warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |   }
31 |
32 |   static var alphabet: [Character] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
   |              |- warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'alphabet' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'alphabet' 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
33 |
34 |   var inner: [Character]
[7/10] Compiling EnigmaKit Plugboard.swift
[8/10] Compiling EnigmaKit Array.swift
[9/10] Emitting module EnigmaKit
/Users/admin/builder/spi-builder-workspace/Sources/EnigmaKit/Wheel.swift:32:14: warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |   }
31 |
32 |   static var alphabet: [Character] = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
   |              |- warning: static property 'alphabet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'alphabet' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'alphabet' 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
33 |
34 |   var inner: [Character]
[10/10] Compiling EnigmaKit Enigma.swift
Build complete! (10.66s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EnigmaKit",
  "name" : "EnigmaKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "EnigmaKit",
      "targets" : [
        "EnigmaKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EnigmaKitTests",
      "module_type" : "SwiftTarget",
      "name" : "EnigmaKitTests",
      "path" : "Tests/EnigmaKitTests",
      "sources" : [
        "EnigmaTests.swift",
        "PlugboardTests.swift",
        "ReflectorTests.swift",
        "RotorTests.swift",
        "SpindleTests.swift",
        "WheelTests.swift"
      ],
      "target_dependencies" : [
        "EnigmaKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EnigmaKit",
      "module_type" : "SwiftTarget",
      "name" : "EnigmaKit",
      "path" : "Sources/EnigmaKit",
      "product_memberships" : [
        "EnigmaKit"
      ],
      "sources" : [
        "Array.swift",
        "Enigma.swift",
        "Plugboard.swift",
        "Reflector.swift",
        "Rotor.swift",
        "Spindle.swift",
        "Wheel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.