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 EasyConfetti, reference 2.4.0 (fffe1b), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 02:40:07 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/onmyway133/EasyConfetti.git
Reference: 2.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/onmyway133/EasyConfetti
 * tag               2.4.0      -> FETCH_HEAD
HEAD is now at fffe1b1 Rename to Configuration
Cloned https://github.com/onmyway133/EasyConfetti.git
Revision (git rev-parse @):
fffe1b1969b91c6cde8f93744957cc6c23087275
SUCCESS checkout https://github.com/onmyway133/EasyConfetti.git at 2.4.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": "easyconfetti",
      "name": "EasyConfetti",
      "url": "https://github.com/onmyway133/EasyConfetti.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EasyConfetti",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/onmyway133/EasyConfetti.git
[1/605] Fetching easyconfetti
Fetched https://github.com/onmyway133/EasyConfetti.git from cache (1.52s)
Creating working copy for https://github.com/onmyway133/EasyConfetti.git
Working copy of https://github.com/onmyway133/EasyConfetti.git resolved at 2.4.0 (fffe1b1)
warning: '.resolve-product-dependencies': dependency 'easyconfetti' 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/onmyway133/EasyConfetti.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/8] Compiling EasyConfetti ImageGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:18:69: error: cannot find type 'UIImage' in scope
 16 |     private let size = CGSize(width: 20, height: 20)
 17 |
 18 |     private func generate(block: @escaping (CGContext?) -> Void) -> UIImage? {
    |                                                                     `- error: cannot find type 'UIImage' in scope
 19 |         var image: UIImage?
 20 | #if os(OSX)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:40:64: error: cannot find type 'UIImage' in scope
 38 |     }
 39 |
 40 |     func generate(size: CGSize, string: NSAttributedString) -> UIImage? {
    |                                                                `- error: cannot find type 'UIImage' in scope
 41 |         return generate { context in
 42 |             let rect = CGRect(origin: .zero, size: size)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:48:53: error: cannot find type 'UIImage' in scope
 46 |     }
 47 |
 48 |     func confetti(shape: Particle.ConfettiShape) -> UIImage? {
    |                                                     `- error: cannot find type 'UIImage' in scope
 49 |         switch shape {
 50 |         case .rectangle: return rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:57:33: error: cannot find type 'UIImage' in scope
 55 |     }
 56 |
 57 |     private func rectangle() -> UIImage? {
    |                                 `- error: cannot find type 'UIImage' in scope
 58 |         return generate { context in
 59 |             let rect = CGRect(x: 0, y: 0, width: self.size.width, height: self.size.height/2)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:67:30: error: cannot find type 'UIImage' in scope
 65 |     }
 66 |
 67 |     private func circle() -> UIImage? {
    |                              `- error: cannot find type 'UIImage' in scope
 68 |         return generate { context in
 69 |             let rect = CGRect(origin: .zero, size: self.size)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:77:32: error: cannot find type 'UIImage' in scope
 75 |     }
 76 |
 77 |     private func triangle() -> UIImage? {
    |                                `- error: cannot find type 'UIImage' in scope
 78 |         return generate { context in
 79 |             let path = UIBezierPath()
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:90:43: error: cannot find type 'UIImage' in scope
 88 |     }
 89 |
 90 |     private func curvedQuadrilateral() -> UIImage? {
    |                                           `- error: cannot find type 'UIImage' in scope
 91 |         return generate { context in
 92 |             let path = UIBezierPath()
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:19:20: error: cannot find type 'UIImage' in scope
 17 |
 18 |     private func generate(block: @escaping (CGContext?) -> Void) -> UIImage? {
 19 |         var image: UIImage?
    |                    `- error: cannot find type 'UIImage' in scope
 20 | #if os(OSX)
 21 |         image = NSImage(size: size, flipped: false) { (rect) -> Bool in
[4/8] Compiling EasyConfetti macOS+extensions.swift
[5/8] Compiling EasyConfetti Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module EasyConfetti
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:21:17: error: cannot find type 'UIImage' in scope
19 | public enum Particle {
20 |     case confetti(allowedShapes: [ConfettiShape])
21 |     case image([UIImage])
   |                 `- error: cannot find type 'UIImage' in scope
22 |     case text(CGSize, [NSAttributedString])
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:27:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     public enum ConfettiShape {
26 |         case rectangle, circle, triangle, curvedQuadrilateral
27 |         public static var all: [ConfettiShape] = [
   |                           |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'all' 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
28 |             .rectangle,
29 |             .circle,
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:42:25: error: cannot find type 'UIColor' in scope
40 |
41 |     /// The list of available colors. This will be shuffled
42 |     public var colors: [UIColor] = [
   |                         `- error: cannot find type 'UIColor' in scope
43 |         UIColor.red,
44 |         UIColor.green,
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:20:26: error: method does not override any method from its superclass
 18 |
 19 | #if os(OSX)
 20 |     public override func viewDidMoveToSuperview() {
    |                          `- error: method does not override any method from its superclass
 21 |         super.viewDidMoveToSuperview()
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:100:27: error: cannot find type 'UIImage' in scope
 98 |     }
 99 |
100 |     func pickImages() -> [UIImage] {
    |                           `- error: cannot find type 'UIImage' in scope
101 |         let generator = ImageGenerator()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:15:28: error: cannot find type 'UIView' in scope
 13 |
 14 | /// The view to show particles
 15 | public class ConfettiView: UIView {
    |                            `- error: cannot find type 'UIView' in scope
 16 |     public var config = Configuration()
 17 |     var emitter: CAEmitterLayer?
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:18:69: error: cannot find type 'UIImage' in scope
 16 |     private let size = CGSize(width: 20, height: 20)
 17 |
 18 |     private func generate(block: @escaping (CGContext?) -> Void) -> UIImage? {
    |                                                                     `- error: cannot find type 'UIImage' in scope
 19 |         var image: UIImage?
 20 | #if os(OSX)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:40:64: error: cannot find type 'UIImage' in scope
 38 |     }
 39 |
 40 |     func generate(size: CGSize, string: NSAttributedString) -> UIImage? {
    |                                                                `- error: cannot find type 'UIImage' in scope
 41 |         return generate { context in
 42 |             let rect = CGRect(origin: .zero, size: size)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:48:53: error: cannot find type 'UIImage' in scope
 46 |     }
 47 |
 48 |     func confetti(shape: Particle.ConfettiShape) -> UIImage? {
    |                                                     `- error: cannot find type 'UIImage' in scope
 49 |         switch shape {
 50 |         case .rectangle: return rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:57:33: error: cannot find type 'UIImage' in scope
 55 |     }
 56 |
 57 |     private func rectangle() -> UIImage? {
    |                                 `- error: cannot find type 'UIImage' in scope
 58 |         return generate { context in
 59 |             let rect = CGRect(x: 0, y: 0, width: self.size.width, height: self.size.height/2)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:67:30: error: cannot find type 'UIImage' in scope
 65 |     }
 66 |
 67 |     private func circle() -> UIImage? {
    |                              `- error: cannot find type 'UIImage' in scope
 68 |         return generate { context in
 69 |             let rect = CGRect(origin: .zero, size: self.size)
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:77:32: error: cannot find type 'UIImage' in scope
 75 |     }
 76 |
 77 |     private func triangle() -> UIImage? {
    |                                `- error: cannot find type 'UIImage' in scope
 78 |         return generate { context in
 79 |             let path = UIBezierPath()
/Users/admin/builder/spi-builder-workspace/Sources/Common/ImageGenerator.swift:90:43: error: cannot find type 'UIImage' in scope
 88 |     }
 89 |
 90 |     private func curvedQuadrilateral() -> UIImage? {
    |                                           `- error: cannot find type 'UIImage' in scope
 91 |         return generate { context in
 92 |             let path = UIBezierPath()
[7/8] Compiling EasyConfetti Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:21:17: error: cannot find type 'UIImage' in scope
19 | public enum Particle {
20 |     case confetti(allowedShapes: [ConfettiShape])
21 |     case image([UIImage])
   |                 `- error: cannot find type 'UIImage' in scope
22 |     case text(CGSize, [NSAttributedString])
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:27:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     public enum ConfettiShape {
26 |         case rectangle, circle, triangle, curvedQuadrilateral
27 |         public static var all: [ConfettiShape] = [
   |                           |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'all' 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
28 |             .rectangle,
29 |             .circle,
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:42:25: error: cannot find type 'UIColor' in scope
40 |
41 |     /// The list of available colors. This will be shuffled
42 |     public var colors: [UIColor] = [
   |                         `- error: cannot find type 'UIColor' in scope
43 |         UIColor.red,
44 |         UIColor.green,
[8/8] Compiling EasyConfetti EasyConfetti.swift
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:20:26: error: method does not override any method from its superclass
 18 |
 19 | #if os(OSX)
 20 |     public override func viewDidMoveToSuperview() {
    |                          `- error: method does not override any method from its superclass
 21 |         super.viewDidMoveToSuperview()
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:100:27: error: cannot find type 'UIImage' in scope
 98 |     }
 99 |
100 |     func pickImages() -> [UIImage] {
    |                           `- error: cannot find type 'UIImage' in scope
101 |         let generator = ImageGenerator()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:15:28: error: cannot find type 'UIView' in scope
 13 |
 14 | /// The view to show particles
 15 | public class ConfettiView: UIView {
    |                            `- error: cannot find type 'UIView' in scope
 16 |     public var config = Configuration()
 17 |     var emitter: CAEmitterLayer?
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:21:9: error: 'super' members cannot be referenced in a root class
 19 | #if os(OSX)
 20 |     public override func viewDidMoveToSuperview() {
 21 |         super.viewDidMoveToSuperview()
    |         `- error: 'super' members cannot be referenced in a root class
 22 |
 23 |         wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:23:9: error: cannot find 'wantsLayer' in scope
 21 |         super.viewDidMoveToSuperview()
 22 |
 23 |         wantsLayer = true
    |         `- error: cannot find 'wantsLayer' in scope
 24 |     }
 25 | #else
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:40:19: error: cannot find 'bounds' in scope
 38 |         var yMultiplier: CGFloat = 1
 39 | #if os(OSX)
 40 |         yOrigin = bounds.height
    |                   `- error: cannot find 'bounds' in scope
 41 |         yMultiplier = -1
 42 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:45:46: error: cannot find 'bounds' in scope
 43 |
 44 |         let emitter = CAEmitterLayer()
 45 |         emitter.emitterPosition = CGPoint(x: bounds.width / 2, y: yOrigin)
    |                                              `- error: cannot find 'bounds' in scope
 46 |         emitter.emitterShape = CAEmitterLayerEmitterShape.line
 47 |         emitter.emitterSize = CGSize(width: bounds.width, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:47:45: error: cannot find 'bounds' in scope
 45 |         emitter.emitterPosition = CGPoint(x: bounds.width / 2, y: yOrigin)
 46 |         emitter.emitterShape = CAEmitterLayerEmitterShape.line
 47 |         emitter.emitterSize = CGSize(width: bounds.width, height: 1)
    |                                             `- error: cannot find 'bounds' in scope
 48 |         emitter.renderMode = CAEmitterLayerRenderMode.additive
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:53:35: error: cannot find type 'UIColor' in scope
 51 |         // For example, if you have only one color, then we still want to make sure
 52 |         // that all "allowed" particle types are represented in the result.
 53 |         let combinations = Array<(UIColor, UIImage)>.createAllCombinations(
    |                                   `- error: cannot find type 'UIColor' in scope
 54 |             from: config.colors,
 55 |             and: pickImages()
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:53:44: error: cannot find type 'UIImage' in scope
 51 |         // For example, if you have only one color, then we still want to make sure
 52 |         // that all "allowed" particle types are represented in the result.
 53 |         let combinations = Array<(UIColor, UIImage)>.createAllCombinations(
    |                                            `- error: cannot find type 'UIImage' in scope
 54 |             from: config.colors,
 55 |             and: pickImages()
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:42:25: error: cannot find type 'UIColor' in scope
40 |
41 |     /// The list of available colors. This will be shuffled
42 |     public var colors: [UIColor] = [
   |                         `- error: cannot find type 'UIColor' in scope
43 |         UIColor.red,
44 |         UIColor.green,
/Users/admin/builder/spi-builder-workspace/Sources/Common/EasyConfetti.swift:89:35: error: cannot find 'layer' in scope
 87 |         config.customize?(cells)
 88 |
 89 |         let rootLayer: CALayer? = layer
    |                                   `- error: cannot find 'layer' in scope
 90 |         rootLayer?.addSublayer(emitter)
 91 |
/Users/admin/builder/spi-builder-workspace/Sources/Common/Configuration.swift:21:17: error: cannot find type 'UIImage' in scope
19 | public enum Particle {
20 |     case confetti(allowedShapes: [ConfettiShape])
21 |     case image([UIImage])
   |                 `- error: cannot find type 'UIImage' in scope
22 |     case text(CGSize, [NSAttributedString])
23 |
BUILD FAILURE 6.0 macosSpm