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 main (080ff8), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 07:54:55 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/joogps/IrregularGradient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 080ff88 Update Modifiers.swift
Cloned https://github.com/joogps/IrregularGradient.git
Revision (git rev-parse @):
080ff88258eb507fb5164010d0832601a7014591
SUCCESS checkout https://github.com/joogps/IrregularGradient.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": "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 (3.21s)
Creating working copy for https://github.com/joogps/IrregularGradient.git
Working copy of https://github.com/joogps/IrregularGradient.git resolved at main (080ff88)
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 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,
[4/7] Compiling IrregularGradient IrregularGradientView.swift
[5/7] Compiling IrregularGradient Blob.swift
[6/7] Emitting module IrregularGradient
[7/7] Compiling IrregularGradient IrregularGradient.swift
Build complete! (14.64s)
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.