This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 AppIconGenerator with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pawello2222/AppIconGenerator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pawello2222/AppIconGenerator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 613798e Merge pull request #1 from pawello2222/dev
Cloned https://github.com/pawello2222/AppIconGenerator.git
Revision (git rev-parse @):
613798e5552332b76c5f09351415f700a2d16c01
SUCCESS checkout https://github.com/pawello2222/AppIconGenerator.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/pawello2222/AppIconGenerator.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/8] Compiling AppIconGenerator CGSize+Extensions.swift
[4/8] Compiling AppIconGenerator IconSet.swift
[5/8] Compiling AppIconGenerator Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:26:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension Logger {
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:28:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                `- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger {
   |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
21 | // SOFTWARE.
22 |
23 | import OSLog
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 |
25 | extension Logger {
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                |- note: annotate 'main' 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
29 | }
30 |
[6/8] Compiling AppIconGenerator AppIconGenerator+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:29:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         task {
28 |             await AppIconGenerator {
29 |                 self
   |                 `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             }
31 |             .generateIcons(for: iconSet, name: name)
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:31:33: warning: capture of 'iconSet' with non-sendable type 'IconSet' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |                 self
30 |             }
31 |             .generateIcons(for: iconSet, name: name)
   |                                 `- warning: capture of 'iconSet' with non-sendable type 'IconSet' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |         }
33 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/IconSet.swift:25:13: note: consider making enum 'IconSet' conform to the 'Sendable' protocol
23 | import Foundation
24 |
25 | public enum IconSet {
   |             `- note: consider making enum 'IconSet' conform to the 'Sendable' protocol
26 |     case iOS
27 |     case macOS
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:29:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
27 |         task {
28 |             await AppIconGenerator {
29 |                 self
   |                 `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
30 |             }
31 |             .generateIcons(for: iconSet, name: name)
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |         task {
37 |             await AppIconGenerator {
38 |                 self
   |                 `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |             }
40 |             .generateIcon(size: size, name: name)
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
36 |         task {
37 |             await AppIconGenerator {
38 |                 self
   |                 `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
39 |             }
40 |             .generateIcon(size: size, name: name)
[7/8] Compiling AppIconGenerator AppIconGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:28:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                `- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger {
   |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
21 | // SOFTWARE.
22 |
23 | import OSLog
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 |
25 | extension Logger {
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                |- note: annotate 'main' 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
29 | }
30 |
[8/8] Emitting module AppIconGenerator
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:26:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension Logger {
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:28:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                `- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger {
   |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/Components/Logger.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
21 | // SOFTWARE.
22 |
23 | import OSLog
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 |
25 | extension Logger {
26 |     private static var subsystem = Bundle.main.bundleIdentifier!
27 |
28 |     static let main = Logger(subsystem: subsystem, category: "App Icon Generator")
   |                |- note: annotate 'main' 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
29 | }
30 |
Build complete! (30.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AppIconGenerator",
  "name" : "AppIconGenerator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "AppIconGenerator",
      "targets" : [
        "AppIconGenerator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AppIconGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "AppIconGeneratorTests",
      "path" : "Tests/AppIconGeneratorTests",
      "sources" : [
        "CGSize+Tests.swift"
      ],
      "target_dependencies" : [
        "AppIconGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppIconGenerator",
      "module_type" : "SwiftTarget",
      "name" : "AppIconGenerator",
      "path" : "Sources/AppIconGenerator",
      "product_memberships" : [
        "AppIconGenerator"
      ],
      "sources" : [
        "AppIconGenerator+View.swift",
        "AppIconGenerator.swift",
        "Components/IconSet.swift",
        "Components/Logger.swift",
        "Extensions/CGSize+Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.