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 0.2.0 (d533fd), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 08:10:33 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: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eneko/Stripes
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at d533fd4 Remove .drawingGroup()
Cloned https://github.com/eneko/Stripes.git
Revision (git rev-parse @):
d533fd44b8043a3abbf523e733599173d6f98c11
SUCCESS checkout https://github.com/eneko/Stripes.git at 0.2.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": "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.91s)
Creating working copy for https://github.com/eneko/Stripes.git
Working copy of https://github.com/eneko/Stripes.git resolved at 0.2.0 (d533fd4)
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 |
/Users/admin/builder/spi-builder-workspace/Sources/Stripes/Stripes.swift:43:29: warning: non-constant range: argument must be an integer literal
 41 |             let items = Int(2 * longSide / itemWidth)
 42 |             HStack(spacing: config.barSpacing) {
 43 |                 ForEach(0..<items) { index in
    |                             `- warning: non-constant range: argument must be an integer literal
 44 |                     config.foreground
 45 |                         .frame(width: config.barWidth, height: 2 * longSide)
Build complete! (7.67s)
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.