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 Footprint, reference v1.0.5 (45d3cf), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 11:26:46 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.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/naftaly/Footprint.git
Reference: v1.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/naftaly/Footprint
 * tag               v1.0.5     -> FETCH_HEAD
HEAD is now at 45d3cf3 Cleaned up locks and fixed a footprint change bug
Cloned https://github.com/naftaly/Footprint.git
Revision (git rev-parse @):
45d3cf328bb25d8e84210c624e7aca4cb4918466
SUCCESS checkout https://github.com/naftaly/Footprint.git at v1.0.5
========================================
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": "footprint",
      "name": "Footprint",
      "url": "https://github.com/naftaly/Footprint.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Footprint",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/naftaly/Footprint.git
[1/133] Fetching footprint
Fetched https://github.com/naftaly/Footprint.git from cache (0.66s)
Creating working copy for https://github.com/naftaly/Footprint.git
Working copy of https://github.com/naftaly/Footprint.git resolved at v1.0.5 (45d3cf3)
warning: '.resolve-product-dependencies': dependency 'footprint' 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/naftaly/Footprint.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Footprint",
  "name" : "Footprint",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Footprint",
      "targets" : [
        "Footprint"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FootprintTests",
      "module_type" : "SwiftTarget",
      "name" : "FootprintTests",
      "path" : "Tests/FootprintTests",
      "sources" : [
        "FootprintTests.swift"
      ],
      "target_dependencies" : [
        "Footprint"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Footprint",
      "module_type" : "SwiftTarget",
      "name" : "Footprint",
      "path" : "Sources/Footprint",
      "product_memberships" : [
        "Footprint"
      ],
      "sources" : [
        "DefaultMemoryProvider.swift",
        "Footprint.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/5] Compiling Footprint Footprint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/Footprint.swift:246:13: warning: capture of 'action' with non-sendable type '(Footprint.Memory) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 |         }
245 |         DispatchQueue.global().async {
246 |             action(mem)
    |             |- warning: capture of 'action' with non-sendable type '(Footprint.Memory) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
247 |         }
248 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/Footprint.swift:246:20: warning: capture of 'mem' with non-sendable type 'Footprint.Memory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 37 |     /// A structure that represents the different values required for easier memory
 38 |     /// handling throughout your apps lifetime.
 39 |     public struct Memory {
    |                   `- note: consider making struct 'Memory' conform to the 'Sendable' protocol
 40 |
 41 |         /// State describes how close to app termination your app is based on memory.
    :
244 |         }
245 |         DispatchQueue.global().async {
246 |             action(mem)
    |                    `- warning: capture of 'mem' with non-sendable type 'Footprint.Memory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |         }
248 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/Footprint.swift:305:45: warning: sending 'memory' risks causing data races; this is an error in the Swift 6 language mode
303 |             DispatchQueue.main.async {
304 |                 NotificationCenter.default.post(name: Footprint.memoryDidChangeNotification, object: nil, userInfo: [
305 |                     Footprint.newMemoryKey: memory,
    |                                             |- warning: sending 'memory' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: task-isolated 'memory' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
306 |                     Footprint.oldMemoryKey: oldMemory,
307 |                     Footprint.changesKey: changeSet,
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/Footprint.swift:306:45: warning: sending 'oldMemory' risks causing data races; this is an error in the Swift 6 language mode
304 |                 NotificationCenter.default.post(name: Footprint.memoryDidChangeNotification, object: nil, userInfo: [
305 |                     Footprint.newMemoryKey: memory,
306 |                     Footprint.oldMemoryKey: oldMemory,
    |                                             |- warning: sending 'oldMemory' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: task-isolated 'oldMemory' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
307 |                     Footprint.changesKey: changeSet,
308 |                 ])
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/Footprint.swift:307:43: warning: sending 'changeSet' risks causing data races; this is an error in the Swift 6 language mode
305 |                     Footprint.newMemoryKey: memory,
306 |                     Footprint.oldMemoryKey: oldMemory,
307 |                     Footprint.changesKey: changeSet,
    |                                           |- warning: sending 'changeSet' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: task-isolated 'changeSet' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
308 |                 ])
309 |             }
[4/5] Emitting module Footprint
[5/5] Compiling Footprint DefaultMemoryProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:31: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
   |                               `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 |                 }
23 |             }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
Build complete! (11.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Footprint",
  "name" : "Footprint",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Footprint",
      "targets" : [
        "Footprint"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FootprintTests",
      "module_type" : "SwiftTarget",
      "name" : "FootprintTests",
      "path" : "Tests/FootprintTests",
      "sources" : [
        "FootprintTests.swift"
      ],
      "target_dependencies" : [
        "Footprint"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Footprint",
      "module_type" : "SwiftTarget",
      "name" : "Footprint",
      "path" : "Sources/Footprint",
      "product_memberships" : [
        "Footprint"
      ],
      "sources" : [
        "DefaultMemoryProvider.swift",
        "Footprint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.