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 FromMatchedGeometry, reference main (e798b3), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 22:25:26 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 -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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nikstar/FromMatchedGeometry.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nikstar/FromMatchedGeometry
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e798b39 Bump iOS target
Cloned https://github.com/nikstar/FromMatchedGeometry.git
Revision (git rev-parse @):
e798b39b0ccdb89952d94916c1784bb29a7d1ff7
SUCCESS checkout https://github.com/nikstar/FromMatchedGeometry.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": "frommatchedgeometry",
      "name": "FromMatchedGeometry",
      "url": "https://github.com/nikstar/FromMatchedGeometry.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FromMatchedGeometry",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/nikstar/FromMatchedGeometry.git
[1/20] Fetching frommatchedgeometry
Fetched https://github.com/nikstar/FromMatchedGeometry.git from cache (0.89s)
Creating working copy for https://github.com/nikstar/FromMatchedGeometry.git
Working copy of https://github.com/nikstar/FromMatchedGeometry.git resolved at main (e798b39)
warning: '.resolve-product-dependencies': dependency 'frommatchedgeometry' 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/nikstar/FromMatchedGeometry.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FromMatchedGeometry",
  "name" : "FromMatchedGeometry",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "FromMatchedGeometry",
      "targets" : [
        "FromMatchedGeometry"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FromMatchedGeometry",
      "module_type" : "SwiftTarget",
      "name" : "FromMatchedGeometry",
      "path" : "Sources/FromMatchedGeometry",
      "product_memberships" : [
        "FromMatchedGeometry"
      ],
      "sources" : [
        "FromMatchedGeometry.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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] Emitting module FromMatchedGeometry
[4/4] Compiling FromMatchedGeometry FromMatchedGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:36:21: warning: call to main actor-isolated initializer 'init(id:active:isActive:modifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  2 | import SwiftUI
  3 |
  4 | internal struct FromMatchedGeometryTransition<H: Hashable>: ViewModifier {
    |                 `- note: calls to initializer 'init(id:active:isActive:modifier:)' from outside of its actor context are implicitly asynchronous
  5 |
  6 |     var id: H
    :
 31 |     /// Then it will move to it's normal place, no longer matching source view.
 32 |     /// Reverse when it is removed from the view hierarchy.
 33 |     public static func fromMatchedGeometry<H: Hashable>(id: H, in namespace: Namespace.ID, modifier: ((any View, Bool) -> any View)? = nil) -> AnyTransition {
    |                        `- note: add '@MainActor' to make static method 'fromMatchedGeometry(id:in:modifier:)' part of global actor 'MainActor'
 34 |
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
    |                     `- warning: call to main actor-isolated initializer 'init(id:active:isActive:modifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
 38 |         )
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:37:23: warning: call to main actor-isolated initializer 'init(id:active:isActive:modifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  2 | import SwiftUI
  3 |
  4 | internal struct FromMatchedGeometryTransition<H: Hashable>: ViewModifier {
    |                 `- note: calls to initializer 'init(id:active:isActive:modifier:)' from outside of its actor context are implicitly asynchronous
  5 |
  6 |     var id: H
    :
 31 |     /// Then it will move to it's normal place, no longer matching source view.
 32 |     /// Reverse when it is removed from the view hierarchy.
 33 |     public static func fromMatchedGeometry<H: Hashable>(id: H, in namespace: Namespace.ID, modifier: ((any View, Bool) -> any View)? = nil) -> AnyTransition {
    |                        `- note: add '@MainActor' to make static method 'fromMatchedGeometry(id:in:modifier:)' part of global actor 'MainActor'
 34 |
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
    |                       `- warning: call to main actor-isolated initializer 'init(id:active:isActive:modifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 38 |         )
 39 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:36:21: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
 34 |
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
    |                     |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:active:isActive:modifier:)' risks causing data races between main actor-isolated and task-isolated uses
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
 38 |         )
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:36:21: warning: sending 'modifier' risks causing data races; this is an error in the Swift 6 language mode
 34 |
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
    |                     |- warning: sending 'modifier' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: sending task-isolated 'modifier' to main actor-isolated initializer 'init(id:active:isActive:modifier:)' risks causing data races between main actor-isolated and task-isolated uses
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
 38 |         )
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:37:23: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
    |                       |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
    |                       `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:active:isActive:modifier:)' risks causing data races between main actor-isolated and task-isolated uses
 38 |         )
 39 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FromMatchedGeometry/FromMatchedGeometry.swift:37:23: warning: sending 'modifier' risks causing data races; this is an error in the Swift 6 language mode
 35 |         AnyTransition.modifier(
 36 |             active: FromMatchedGeometryTransition(id: id, active: namespace, isActive: true, modifier: modifier),
 37 |             identity: FromMatchedGeometryTransition(id: id, active: namespace, isActive: false, modifier: modifier)
    |                       |- warning: sending 'modifier' risks causing data races; this is an error in the Swift 6 language mode
    |                       `- note: sending task-isolated 'modifier' to main actor-isolated initializer 'init(id:active:isActive:modifier:)' risks causing data races between main actor-isolated and task-isolated uses
 38 |         )
 39 |     }
Build complete! (11.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FromMatchedGeometry",
  "name" : "FromMatchedGeometry",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "FromMatchedGeometry",
      "targets" : [
        "FromMatchedGeometry"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FromMatchedGeometry",
      "module_type" : "SwiftTarget",
      "name" : "FromMatchedGeometry",
      "path" : "Sources/FromMatchedGeometry",
      "product_memberships" : [
        "FromMatchedGeometry"
      ],
      "sources" : [
        "FromMatchedGeometry.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.