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 Stripes, reference main (7a6a07), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 08:10:23 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/eneko/Stripes.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eneko/Stripes
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7a6a07c Merge pull request #5 from darbio/main
Cloned https://github.com/eneko/Stripes.git
Revision (git rev-parse @):
7a6a07c62e18465c707be150e79b2e5467bc0824
SUCCESS checkout https://github.com/eneko/Stripes.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": "stripes",
      "name": "Stripes",
      "url": "https://github.com/eneko/Stripes.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Stripes",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/eneko/Stripes.git
[1/111] Fetching stripes
Fetched https://github.com/eneko/Stripes.git from cache (0.93s)
Creating working copy for https://github.com/eneko/Stripes.git
Working copy of https://github.com/eneko/Stripes.git resolved at main (7a6a07c)
warning: '.resolve-product-dependencies': dependency 'stripes' 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/eneko/Stripes.git
https://github.com/eneko/Stripes.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Stripes",
  "name" : "Stripes",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Stripes",
      "targets" : [
        "Stripes"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Stripes",
      "module_type" : "SwiftTarget",
      "name" : "Stripes",
      "path" : "Sources/Stripes",
      "product_memberships" : [
        "Stripes"
      ],
      "sources" : [
        "Stripes.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Emitting module Stripes
/Users/admin/builder/spi-builder-workspace/Sources/Stripes/Stripes.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StripesConfig' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct StripesConfig {
    |               `- note: consider making struct 'StripesConfig' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var foreground: Color
    :
 24 |     }
 25 |
 26 |     public static let `default` = StripesConfig()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StripesConfig' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 | }
 28 |
[4/4] Compiling Stripes Stripes.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stripes/Stripes.swift:26:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StripesConfig' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct StripesConfig {
    |               `- note: consider making struct 'StripesConfig' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var foreground: Color
    :
 24 |     }
 25 |
 26 |     public static let `default` = StripesConfig()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StripesConfig' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 | }
 28 |
Build complete! (7.66s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Stripes",
  "name" : "Stripes",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Stripes",
      "targets" : [
        "Stripes"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Stripes",
      "module_type" : "SwiftTarget",
      "name" : "Stripes",
      "path" : "Sources/Stripes",
      "product_memberships" : [
        "Stripes"
      ],
      "sources" : [
        "Stripes.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.