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

Failed to build SABlurImageViews, reference 6.0.0 (2be6df), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 09:56:43 UTC.

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/marty-suzuki/SABlurImageView.git
Reference: 6.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marty-suzuki/SABlurImageView
 * tag               6.0.0      -> FETCH_HEAD
HEAD is now at 2be6df4 Remove .swift-version
Cloned https://github.com/marty-suzuki/SABlurImageView.git
Revision (git rev-parse @):
2be6df42331215be16197b8e873de085fc3ffc8a
SUCCESS checkout https://github.com/marty-suzuki/SABlurImageView.git at 6.0.0
========================================
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": "sablurimageview",
      "name": "SABlurImageViews",
      "url": "https://github.com/marty-suzuki/SABlurImageView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SABlurImageView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/marty-suzuki/SABlurImageView.git
[1/579] Fetching sablurimageview
Fetched https://github.com/marty-suzuki/SABlurImageView.git from cache (1.29s)
Creating working copy for https://github.com/marty-suzuki/SABlurImageView.git
Working copy of https://github.com/marty-suzuki/SABlurImageView.git resolved at 6.0.0 (2be6df4)
warning: '.resolve-product-dependencies': dependency 'sablurimageview' 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/marty-suzuki/SABlurImageView.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/7] Compiling SABlurImageView Gap.swift
[4/7] Compiling SABlurImageView CATransition+Closure.swift
[5/7] Emitting module SABlurImageView
/Users/admin/builder/spi-builder-workspace/Sources/SABlurImageView/SABlurImageView.swift:165:15: warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
162 | }
163 |
164 | extension SABlurImageView: CAAnimationDelegate {
    |                            `- note: add '@preconcurrency' to the 'CAAnimationDelegate' conformance to defer isolation checking to run time
165 |     open func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
    |               |- warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'animationDidStop(_:finished:)' to make this instance method not isolated to the actor
166 |         guard let _ = anim as? CAAnimationGroup else { return }
167 |         _layer.removeAnimation(forKey: Const.fadeAnimationKey)
QuartzCore.CAAnimationDelegate:4:19: note: 'animationDidStop(_:finished:)' declared here
2 | public protocol CAAnimationDelegate : NSObjectProtocol {
3 |     optional func animationDidStart(_ anim: CAAnimation)
4 |     optional func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
  |                   `- note: 'animationDidStop(_:finished:)' declared here
5 | }
[6/7] Compiling SABlurImageView UIImage+BlurEffect.swift
[7/7] Compiling SABlurImageView SABlurImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SABlurImageView/SABlurImageView.swift:165:15: warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
162 | }
163 |
164 | extension SABlurImageView: CAAnimationDelegate {
    |                            `- note: add '@preconcurrency' to the 'CAAnimationDelegate' conformance to defer isolation checking to run time
165 |     open func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
    |               |- warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'animationDidStop(_:finished:)' to make this instance method not isolated to the actor
166 |         guard let _ = anim as? CAAnimationGroup else { return }
167 |         _layer.removeAnimation(forKey: Const.fadeAnimationKey)
QuartzCore.CAAnimationDelegate:4:19: note: 'animationDidStop(_:finished:)' declared here
2 | public protocol CAAnimationDelegate : NSObjectProtocol {
3 |     optional func animationDidStart(_ anim: CAAnimation)
4 |     optional func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
  |                   `- note: 'animationDidStop(_:finished:)' declared here
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/SABlurImageView/SABlurImageView.swift:45:9: warning: call to main actor-isolated instance method 'clearMemory()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 43 |
 44 |     deinit {
 45 |         clearMemory()
    |         `- warning: call to main actor-isolated instance method 'clearMemory()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 46 |     }
 47 |
    :
 76 |     }
 77 |
 78 |     @objc open func clearMemory() {
    |                     `- note: calls to instance method 'clearMemory()' from outside of its actor context are implicitly asynchronous
 79 |         cgImages.removeAll(keepingCapacity: false)
 80 |         nextBlurLayer?.removeFromSuperlayer()
/Users/admin/builder/spi-builder-workspace/Sources/SABlurImageView/SABlurImageView.swift:145:55: error: 'nil' is not compatible with closure result type 'CAAnimation'
143 |         let group = CAAnimationGroup()
144 |         group.animations = cgImages.enumerated().compactMap {
145 |             guard $0.offset < count - 1 else { return nil }
    |                                                       `- error: 'nil' is not compatible with closure result type 'CAAnimation'
146 |             let anim = CABasicAnimation(keyPath: Const.contentsAnimationKey)
147 |             anim.fromValue = $0.element
/Users/admin/builder/spi-builder-workspace/Sources/SABlurImageView/SABlurImageView.swift:158:27: error: type 'String' has no member 'forwards'
156 |         group.delegate = self
157 |         group.isRemovedOnCompletion = false
158 |         group.fillMode = .forwards
    |                           `- error: type 'String' has no member 'forwards'
159 |         _layer.add(group, forKey: Const.fadeAnimationKey)
160 |         cgImages = cgImages.reversed()
BUILD FAILURE 6.0 macosSpm