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 ImageSequencer, reference main (134452), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 14:57:42 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/samst-one/ImageSequencer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/samst-one/ImageSequencer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1344527 Presenter in sample app updates to accommodate new API
Cloned https://github.com/samst-one/ImageSequencer.git
Revision (git rev-parse @):
1344527d6dceb9ef6c95646fe4acffb3e9b37e6d
SUCCESS checkout https://github.com/samst-one/ImageSequencer.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": "imagesequencer",
      "name": "ImageSequencer",
      "url": "https://github.com/samst-one/ImageSequencer.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ImageSequencer",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/samst-one/ImageSequencer.git
[1/260] Fetching imagesequencer
Fetched https://github.com/samst-one/ImageSequencer.git from cache (1.06s)
Creating working copy for https://github.com/samst-one/ImageSequencer.git
Working copy of https://github.com/samst-one/ImageSequencer.git resolved at main (1344527)
warning: '.resolve-product-dependencies': dependency 'imagesequencer' 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/samst-one/ImageSequencer.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/17] Compiling ImageSequencer RenderImagesUseCase.swift
[4/18] Compiling ImageSequencer ImageSequencerController.swift
[5/18] Compiling ImageSequencer CancelRenderUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:17: warning: capture of 'completion' with non-sendable type '(URL) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                 |- warning: capture of 'completion' with non-sendable type '(URL) -> ()' 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'
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:28: warning: capture of 'self' with non-sendable type 'FinishRenderUseCase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | class FinishRenderUseCase {
   |       `- note: class 'FinishRenderUseCase' does not conform to the 'Sendable' protocol
 4 |
 5 |     private let videoWriterInput: AssetWriterInput
   :
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                            `- warning: capture of 'self' with non-sendable type 'FinishRenderUseCase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 |             }
20 |         }
[6/18] Compiling ImageSequencer FinishRenderUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:17: warning: capture of 'completion' with non-sendable type '(URL) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                 |- warning: capture of 'completion' with non-sendable type '(URL) -> ()' 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'
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:28: warning: capture of 'self' with non-sendable type 'FinishRenderUseCase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | class FinishRenderUseCase {
   |       `- note: class 'FinishRenderUseCase' does not conform to the 'Sendable' protocol
 4 |
 5 |     private let videoWriterInput: AssetWriterInput
   :
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                            `- warning: capture of 'self' with non-sendable type 'FinishRenderUseCase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 |             }
20 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Use Cases/FinishRenderUseCase.swift:18:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
16 |         assetWriter.finishWriting() {
17 |             DispatchQueue.main.async {
18 |                 completion(self.assetWriter.outputUrl)
   |                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 |             }
20 |         }
[7/18] Compiling ImageSequencer Factory.swift
[8/18] Compiling ImageSequencer Canvas.swift
[9/18] Compiling ImageSequencer PixelBufferAttributes.swift
[10/18] Compiling ImageSequencer StartRenderUseCase.swift
[11/18] Compiling ImageSequencer AssetWriterInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Frameworks/AVFoundation/AssetWriterInput.swift:23:70: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
20 |     }
21 |
22 |     func requestMediaDataWhenReady(on queue: DispatchQueue, completion: @escaping () -> ()) {
   |                                                             `- note: parameter 'completion' is implicitly non-sendable
23 |         videoWriterInput.requestMediaDataWhenReady(on: queue, using: completion)
   |                                                                      `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
24 |     }
25 |
[12/18] Compiling ImageSequencer AssetWriterInputPixelBufferAdaptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Frameworks/AVFoundation/AssetWriterInput.swift:23:70: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
20 |     }
21 |
22 |     func requestMediaDataWhenReady(on queue: DispatchQueue, completion: @escaping () -> ()) {
   |                                                             `- note: parameter 'completion' is implicitly non-sendable
23 |         videoWriterInput.requestMediaDataWhenReady(on: queue, using: completion)
   |                                                                      `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
24 |     }
25 |
[13/18] Compiling ImageSequencer DefaultImageSequencerController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:23:17: warning: capture of 'didAddFrame' with non-sendable type '(Double) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |         renderImagesUseCase.render(images: images) { percent in
22 |             DispatchQueue.main.async {
23 |                 didAddFrame(percent)
   |                 |- warning: capture of 'didAddFrame' with non-sendable type '(Double) -> ()' 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'
24 |             }
25 |         } completion: { error in
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:27:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 |         } completion: { error in
26 |             DispatchQueue.main.async {
27 |                 completion(error)
   |                 |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' 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'
28 |             }
29 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Frameworks/AVFoundation/AssetWriter.swift:32:54: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
29 |     }
30 |
31 |     func finishWriting(completion: @escaping () -> ()) {
   |                        `- note: parameter 'completion' is implicitly non-sendable
32 |         assetWriter.finishWriting(completionHandler: completion)
   |                                                      `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:23:17: warning: sending 'didAddFrame' risks causing data races; this is an error in the Swift 6 language mode
21 |         renderImagesUseCase.render(images: images) { percent in
22 |             DispatchQueue.main.async {
23 |                 didAddFrame(percent)
   |                 |- warning: sending 'didAddFrame' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'didAddFrame' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 |             }
25 |         } completion: { error in
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:27:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
25 |         } completion: { error in
26 |             DispatchQueue.main.async {
27 |                 completion(error)
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
28 |             }
29 |         }
[14/18] Compiling ImageSequencer AssetWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:23:17: warning: capture of 'didAddFrame' with non-sendable type '(Double) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |         renderImagesUseCase.render(images: images) { percent in
22 |             DispatchQueue.main.async {
23 |                 didAddFrame(percent)
   |                 |- warning: capture of 'didAddFrame' with non-sendable type '(Double) -> ()' 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'
24 |             }
25 |         } completion: { error in
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:27:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 |         } completion: { error in
26 |             DispatchQueue.main.async {
27 |                 completion(error)
   |                 |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' 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'
28 |             }
29 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/Frameworks/AVFoundation/AssetWriter.swift:32:54: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
29 |     }
30 |
31 |     func finishWriting(completion: @escaping () -> ()) {
   |                        `- note: parameter 'completion' is implicitly non-sendable
32 |         assetWriter.finishWriting(completionHandler: completion)
   |                                                      `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:23:17: warning: sending 'didAddFrame' risks causing data races; this is an error in the Swift 6 language mode
21 |         renderImagesUseCase.render(images: images) { percent in
22 |             DispatchQueue.main.async {
23 |                 didAddFrame(percent)
   |                 |- warning: sending 'didAddFrame' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'didAddFrame' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 |             }
25 |         } completion: { error in
/Users/admin/builder/spi-builder-workspace/Sources/ImageSequencer/Implementation/DefaultImageSequencerController.swift:27:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
25 |         } completion: { error in
26 |             DispatchQueue.main.async {
27 |                 completion(error)
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
28 |             }
29 |         }
[15/18] Emitting module ImageSequencer
[16/18] Compiling ImageSequencer OutputSettings.swift
[17/18] Compiling ImageSequencer PixelBufferOperations.swift
[18/18] Compiling ImageSequencer RenderSettings.swift
Build complete! (16.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ImageSequencer",
  "name" : "ImageSequencer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "ImageSequencer",
      "targets" : [
        "ImageSequencer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ImageSequencerTests",
      "module_type" : "SwiftTarget",
      "name" : "ImageSequencerTests",
      "path" : "Tests/ImageSequencerTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ImageSequencerTests/Images/cat_1080.jpeg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ImageSequencerTests/Images/cat_1080_portrait.jpeg",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "AVOutputSettingsTests.swift",
        "CancelRenderTests.swift",
        "FinishRenderTests.swift",
        "PixelBufferAttributesTests.swift",
        "RenderImagesTests.swift",
        "StartRenderTests.swift",
        "System.swift"
      ],
      "target_dependencies" : [
        "ImageSequencer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ImageSequencer",
      "module_type" : "SwiftTarget",
      "name" : "ImageSequencer",
      "path" : "Sources/ImageSequencer",
      "product_memberships" : [
        "ImageSequencer"
      ],
      "sources" : [
        "Implementation/DefaultImageSequencerController.swift",
        "Implementation/Frameworks/AVFoundation/AssetWriter.swift",
        "Implementation/Frameworks/AVFoundation/AssetWriterInput.swift",
        "Implementation/Frameworks/AVFoundation/AssetWriterInputPixelBufferAdaptor.swift",
        "Implementation/Frameworks/AVFoundation/OutputSettings.swift",
        "Implementation/Frameworks/AVFoundation/PixelBufferOperations.swift",
        "Implementation/Frameworks/CoreImage/Canvas.swift",
        "Implementation/Frameworks/CoreImage/PixelBufferAttributes.swift",
        "Implementation/Use Cases/CancelRenderUseCase.swift",
        "Implementation/Use Cases/FinishRenderUseCase.swift",
        "Implementation/Use Cases/RenderImagesUseCase.swift",
        "Implementation/Use Cases/StartRenderUseCase.swift",
        "Public/Factory.swift",
        "Public/ImageSequencerController.swift",
        "Public/RenderSettings.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.