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 CachedImage, reference master (077b79), with Swift 6.0 for macOS (SPM) on 26 Jan 2025 01:45:27 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leoz/CachedImage.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/leoz/CachedImage
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 077b79c Update project.pbxproj to reflect CachedImage package changes
Cloned https://github.com/leoz/CachedImage.git
Revision (git rev-parse @):
077b79c6b1237b9f6934d00df1d0b81be31fd996
SUCCESS checkout https://github.com/leoz/CachedImage.git at master
========================================
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": "cachedimage",
      "name": "CachedImage",
      "url": "https://github.com/leoz/CachedImage.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CachedImage",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/leoz/CachedImage.git
[1/465] Fetching cachedimage
Fetched https://github.com/leoz/CachedImage.git from cache (1.31s)
Creating working copy for https://github.com/leoz/CachedImage.git
Working copy of https://github.com/leoz/CachedImage.git resolved at master (077b79c)
warning: '.resolve-product-dependencies': dependency 'cachedimage' 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/leoz/CachedImage.git
https://github.com/leoz/CachedImage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CachedImage",
  "name" : "CachedImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "CachedImage",
      "targets" : [
        "CachedImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CachedImageTests",
      "module_type" : "SwiftTarget",
      "name" : "CachedImageTests",
      "path" : "Tests/CachedImageTests",
      "sources" : [
        "CachedImageTests.swift"
      ],
      "target_dependencies" : [
        "CachedImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CachedImage",
      "module_type" : "SwiftTarget",
      "name" : "CachedImage",
      "path" : "Sources/CachedImage",
      "product_memberships" : [
        "CachedImage"
      ],
      "sources" : [
        "CachedImage.swift",
        "EnvironmentValues+ImageCache.swift",
        "ImageCache.swift",
        "ImageLoader.swift",
        "PlatformImage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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-5BDAB9E9C0126B9D.txt
[3/8] Compiling CachedImage ImageLoader.swift
[4/8] Compiling CachedImage PlatformImage.swift
[5/8] Compiling CachedImage EnvironmentValues+ImageCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedImage/EnvironmentValues+ImageCache.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any ImageCache' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct ImageCacheKey: EnvironmentKey {
12 |     static let defaultValue: ImageCache = DefaultImageCache()
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any ImageCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedImage/ImageCache.swift:11:17: note: protocol 'ImageCache' does not conform to the 'Sendable' protocol
 9 | import SwiftUI
10 |
11 | public protocol ImageCache {
   |                 `- note: protocol 'ImageCache' does not conform to the 'Sendable' protocol
12 |     subscript(_ url: URL) -> PlatformImage? { get set }
13 | }
[6/8] Compiling CachedImage CachedImage.swift
[7/8] Emitting module CachedImage
/Users/admin/builder/spi-builder-workspace/Sources/CachedImage/EnvironmentValues+ImageCache.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any ImageCache' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct ImageCacheKey: EnvironmentKey {
12 |     static let defaultValue: ImageCache = DefaultImageCache()
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any ImageCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedImage/ImageCache.swift:11:17: note: protocol 'ImageCache' does not conform to the 'Sendable' protocol
 9 | import SwiftUI
10 |
11 | public protocol ImageCache {
   |                 `- note: protocol 'ImageCache' does not conform to the 'Sendable' protocol
12 |     subscript(_ url: URL) -> PlatformImage? { get set }
13 | }
[8/8] Compiling CachedImage ImageCache.swift
Build complete! (13.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CachedImage",
  "name" : "CachedImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "CachedImage",
      "targets" : [
        "CachedImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CachedImageTests",
      "module_type" : "SwiftTarget",
      "name" : "CachedImageTests",
      "path" : "Tests/CachedImageTests",
      "sources" : [
        "CachedImageTests.swift"
      ],
      "target_dependencies" : [
        "CachedImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CachedImage",
      "module_type" : "SwiftTarget",
      "name" : "CachedImage",
      "path" : "Sources/CachedImage",
      "product_memberships" : [
        "CachedImage"
      ],
      "sources" : [
        "CachedImage.swift",
        "EnvironmentValues+ImageCache.swift",
        "ImageCache.swift",
        "ImageLoader.swift",
        "PlatformImage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.