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 ImageSizeFetcher, reference master (1274a3), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 22:08:15 UTC.

Swift 6 data race errors: 2

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/malcommac/ImageSizeFetcher.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/malcommac/ImageSizeFetcher
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1274a32 Merge branch 'release/0.9.1'
Cloned https://github.com/malcommac/ImageSizeFetcher.git
Revision (git rev-parse @):
1274a32d7f2f8f269932f54b243161d11f6ef574
SUCCESS checkout https://github.com/malcommac/ImageSizeFetcher.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": "imagesizefetcher",
      "name": "ImageSizeFetcher",
      "url": "https://github.com/malcommac/ImageSizeFetcher.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ImageSizeFetcher",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/malcommac/ImageSizeFetcher.git
[1/100] Fetching imagesizefetcher
Fetched https://github.com/malcommac/ImageSizeFetcher.git from cache (0.72s)
Creating working copy for https://github.com/malcommac/ImageSizeFetcher.git
Working copy of https://github.com/malcommac/ImageSizeFetcher.git resolved at master (1274a32)
warning: '.resolve-product-dependencies': dependency 'imagesizefetcher' 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/malcommac/ImageSizeFetcher.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/6] Compiling ImageSizeFetcher ImageSizeFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcher.swift:39:14: warning: non-final class 'ImageSizeFetcher' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 37 | #endif
 38 |
 39 | public class ImageSizeFetcher: NSObject, URLSessionDataDelegate {
    |              `- warning: non-final class 'ImageSizeFetcher' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 40 |
 41 | 	/// Callback type alias
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcher.swift:45:14: warning: stored property 'session' of 'Sendable'-conforming class 'ImageSizeFetcher' is mutable; this is an error in the Swift 6 language mode
 43 |
 44 | 	/// URL Session used to download data
 45 | 	private var session: URLSession!
    |              `- warning: stored property 'session' of 'Sendable'-conforming class 'ImageSizeFetcher' is mutable; this is an error in the Swift 6 language mode
 46 |
 47 | 	/// Queue of active operations
[4/6] Emitting module ImageSizeFetcher
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcher.swift:39:14: warning: non-final class 'ImageSizeFetcher' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 37 | #endif
 38 |
 39 | public class ImageSizeFetcher: NSObject, URLSessionDataDelegate {
    |              `- warning: non-final class 'ImageSizeFetcher' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 40 |
 41 | 	/// Callback type alias
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcher.swift:45:14: warning: stored property 'session' of 'Sendable'-conforming class 'ImageSizeFetcher' is mutable; this is an error in the Swift 6 language mode
 43 |
 44 | 	/// URL Session used to download data
 45 | 	private var session: URLSession!
    |              `- warning: stored property 'session' of 'Sendable'-conforming class 'ImageSizeFetcher' is mutable; this is an error in the Swift 6 language mode
 46 |
 47 | 	/// Queue of active operations
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcherOp.swift:39:16: warning: class 'ImageSizeFetcherOp' must restate inherited '@unchecked Sendable' conformance
 37 | #endif
 38 |
 39 | internal class ImageSizeFetcherOp: Operation {
    |                `- warning: class 'ImageSizeFetcherOp' must restate inherited '@unchecked Sendable' conformance
 40 |
 41 | 	/// Callback to call at the end of the operation
[5/6] Compiling ImageSizeFetcher ImageSizeFetcherParser.swift
[6/6] Compiling ImageSizeFetcher ImageSizeFetcherOp.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSizeFetcher/ImageSizeFetcherOp.swift:39:16: warning: class 'ImageSizeFetcherOp' must restate inherited '@unchecked Sendable' conformance
 37 | #endif
 38 |
 39 | internal class ImageSizeFetcherOp: Operation {
    |                `- warning: class 'ImageSizeFetcherOp' must restate inherited '@unchecked Sendable' conformance
 40 |
 41 | 	/// Callback to call at the end of the operation
Build complete! (9.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ImageSizeFetcher",
  "name" : "ImageSizeFetcher",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ImageSizeFetcher",
      "targets" : [
        "ImageSizeFetcher"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ImageSizeFetcherTests",
      "module_type" : "SwiftTarget",
      "name" : "ImageSizeFetcherTests",
      "path" : "Tests/ImageSizeFetcherTests",
      "sources" : [
        "ImageSizeFetcherTests.swift"
      ],
      "target_dependencies" : [
        "ImageSizeFetcher"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ImageSizeFetcher",
      "module_type" : "SwiftTarget",
      "name" : "ImageSizeFetcher",
      "path" : "Sources/ImageSizeFetcher",
      "product_memberships" : [
        "ImageSizeFetcher"
      ],
      "sources" : [
        "ImageSizeFetcher.swift",
        "ImageSizeFetcherOp.swift",
        "ImageSizeFetcherParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.