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 UUIDShortener, reference main (4aa608), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 11:17:45 UTC.

Swift 6 data race errors: 6

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/Dean151/uuid-shortener.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Dean151/uuid-shortener
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4aa608c Create LICENSE
Cloned https://github.com/Dean151/uuid-shortener.git
Revision (git rev-parse @):
4aa608ca0692b28b94f2110e3b46ebed03c65acd
SUCCESS checkout https://github.com/Dean151/uuid-shortener.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": "uuid-shortener",
      "name": "UUIDShortener",
      "url": "https://github.com/Dean151/uuid-shortener.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/uuid-shortener",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Dean151/uuid-shortener.git
[1/20] Fetching uuid-shortener
Fetched https://github.com/Dean151/uuid-shortener.git from cache (0.57s)
Creating working copy for https://github.com/Dean151/uuid-shortener.git
Working copy of https://github.com/Dean151/uuid-shortener.git resolved at main (4aa608c)
warning: '.resolve-product-dependencies': dependency 'uuid-shortener' 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/Dean151/uuid-shortener.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/4] Compiling UUIDShortener UUIDShortener.swift
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:7:23: warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    |                       |- warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base36' 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
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:9:23: warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
    |                       |- warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base58' 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
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:11:23: warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    |                       |- warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base62' 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 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:13:23: warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
    |                       |- warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base64' 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
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:15:23: warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
    |                       |- warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base90' 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
 16 |
 17 |     let characters: [Character]
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:43:16: warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 41 |
 42 | extension Alphabet {
 43 |     static let base16: Alphabet = "0123456789abcdef"
    |                |- warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'base16' 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
 44 | }
 45 |
[4/4] Emitting module UUIDShortener
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:7:23: warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    |                       |- warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base36' 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
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:9:23: warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
    |                       |- warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base58' 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
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:11:23: warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    |                       |- warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base62' 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 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:13:23: warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
    |                       |- warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base64' 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
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:15:23: warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
    |                       |- warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base90' 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
 16 |
 17 |     let characters: [Character]
/Users/admin/builder/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:43:16: warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 41 |
 42 | extension Alphabet {
 43 |     static let base16: Alphabet = "0123456789abcdef"
    |                |- warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'base16' 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
 44 | }
 45 |
Build complete! (5.48s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UUIDShortener",
  "name" : "UUIDShortener",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UUIDShortener",
      "targets" : [
        "UUIDShortener"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UUIDShortenerTests",
      "module_type" : "SwiftTarget",
      "name" : "UUIDShortenerTests",
      "path" : "Tests/UUIDShortenerTests",
      "sources" : [
        "UUIDShortenerTests.swift"
      ],
      "target_dependencies" : [
        "UUIDShortener"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UUIDShortener",
      "module_type" : "SwiftTarget",
      "name" : "UUIDShortener",
      "path" : "Sources/UUIDShortener",
      "product_memberships" : [
        "UUIDShortener"
      ],
      "sources" : [
        "UUIDShortener.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.