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, reference main (613798), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 09:43:16 UTC.

Swift 6 data race errors: 1

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/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
========================================
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": "appicongenerator",
      "name": "AppIconGenerator",
      "url": "https://github.com/pawello2222/AppIconGenerator.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AppIconGenerator",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/pawello2222/AppIconGenerator.git
[4/190] Fetching appicongenerator
Fetched https://github.com/pawello2222/AppIconGenerator.git from cache (0.88s)
Creating working copy for https://github.com/pawello2222/AppIconGenerator.git
Working copy of https://github.com/pawello2222/AppIconGenerator.git resolved at main (613798e)
warning: '.resolve-product-dependencies': dependency 'appicongenerator' 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/pawello2222/AppIconGenerator.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 AppIconGenerator CGSize+Extensions.swift
[4/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 nonisolated 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 nonisolated 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")
[5/8] Compiling AppIconGenerator IconSet.swift
[6/8] Compiling AppIconGenerator AppIconGenerator.swift
[7/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 nonisolated 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 nonisolated 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")
[8/8] Compiling AppIconGenerator AppIconGenerator+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:28:13: warning: no 'async' operations occur within 'await' expression
26 |     public func generateIcons(for iconSet: IconSet, name: String = "Icon") -> some View {
27 |         task {
28 |             await AppIconGenerator {
   |             `- warning: no 'async' operations occur within 'await' expression
29 |                 self
30 |             }
/Users/admin/builder/spi-builder-workspace/Sources/AppIconGenerator/AppIconGenerator+View.swift:37:13: warning: no 'async' operations occur within 'await' expression
35 |     public func generateIcon(size: CGFloat, name: String = "Icon") -> some View {
36 |         task {
37 |             await AppIconGenerator {
   |             `- warning: no 'async' operations occur within 'await' expression
38 |                 self
39 |             }
Build complete! (12.54s)
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.