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 IrregularGradient, reference 2.1.0 (84cbf2), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 07:54:14 UTC.

Swift 6 data race errors: 0

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/joogps/IrregularGradient.git
Reference: 2.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/joogps/IrregularGradient
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at 84cbf2d Update README.md
Cloned https://github.com/joogps/IrregularGradient.git
Revision (git rev-parse @):
84cbf2dd9ecf1e98e592e0718310f90fef52d6be
SUCCESS checkout https://github.com/joogps/IrregularGradient.git at 2.1.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": "irregulargradient",
      "name": "IrregularGradient",
      "url": "https://github.com/joogps/IrregularGradient.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IrregularGradient",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/joogps/IrregularGradient.git
[1/206] Fetching irregulargradient
Fetched https://github.com/joogps/IrregularGradient.git from cache (2.31s)
Creating working copy for https://github.com/joogps/IrregularGradient.git
Working copy of https://github.com/joogps/IrregularGradient.git resolved at 2.1.0 (84cbf2d)
warning: '.resolve-product-dependencies': dependency 'irregulargradient' 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/joogps/IrregularGradient.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/7] Compiling IrregularGradient IrregularGradientView.swift
[4/7] Compiling IrregularGradient Blob.swift
[5/7] Compiling IrregularGradient Modifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/Modifiers.swift:56:22: warning: call to main actor-isolated initializer 'init(colors:background:speed:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     ///   - speed: The speed at which the blobs move, if they're moving.
50 |     ///   - animate: Whether or not the blobs should move.
51 |     public func irregularGradient<Background: View>(colors: [Color],
   |                 `- note: add '@MainActor' to make instance method 'irregularGradient(colors:background:animate:speed:)' part of global actor 'MainActor'
52 |                                                     background: @autoclosure @escaping () -> Background,
53 |                                                     animate: Bool = true,
54 |                                                     speed: Double = 1) -> some View {
55 |         self
56 |             .overlay(IrregularGradient(colors: colors,
   |                      `- warning: call to main actor-isolated initializer 'init(colors:background:speed:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |                                        background: background(),
58 |                                        speed: speed,
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/IrregularGradient.swift:25:12: note: calls to initializer 'init(colors:background:speed:animate:)' from outside of its actor context are implicitly asynchronous
 23 |     ///   - speed: The speed at which the blobs move, if they're moving.
 24 |     ///   - animate: Whether or not the blobs should move.
 25 |     public init(colors: [Color],
    |            `- note: calls to initializer 'init(colors:background:speed:animate:)' from outside of its actor context are implicitly asynchronous
 26 |                 background: @autoclosure @escaping () -> Background,
 27 |                 speed: Double = 1,
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/Modifiers.swift:56:22: warning: sending task-isolated value of type '() -> Background' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
54 |                                                     speed: Double = 1) -> some View {
55 |         self
56 |             .overlay(IrregularGradient(colors: colors,
   |                      `- warning: sending task-isolated value of type '() -> Background' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
57 |                                        background: background(),
58 |                                        speed: speed,
[6/7] Emitting module IrregularGradient
[7/7] Compiling IrregularGradient IrregularGradient.swift
Build complete! (14.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IrregularGradient",
  "name" : "IrregularGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "IrregularGradient",
      "targets" : [
        "IrregularGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IrregularGradient",
      "module_type" : "SwiftTarget",
      "name" : "IrregularGradient",
      "path" : "Sources/IrregularGradient",
      "product_memberships" : [
        "IrregularGradient"
      ],
      "sources" : [
        "Blob.swift",
        "IrregularGradient.swift",
        "IrregularGradientView.swift",
        "Modifiers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.