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 PPMKit 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/dagronf/PPMKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/PPMKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8c826ad Fixed issue with some p3 files which didn't end with a line end
Cloned https://github.com/dagronf/PPMKit.git
Revision (git rev-parse @):
8c826ad5c026b0addcc7e37513d52b69998050c7
SUCCESS checkout https://github.com/dagronf/PPMKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dagronf/PPMKit.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/9] Compiling PPMKit Utils.swift
[4/9] Compiling PPMKit PPMKit+pixel.swift
/Users/admin/builder/spi-builder-workspace/Sources/PPMKit/PPMKit+pixel.swift:32:21: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
28 | public extension PPM {
29 | 	/// An RGB pixel representation
30 | 	struct RGB: Equatable {
   |         `- note: consider making struct 'RGB' conform to the 'Sendable' protocol
31 | 		/// Standard black
32 | 		public static let black = RGB(r: 0, g: 0, b: 0)
   |                     |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'black' 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
33 | 		/// Standard white
34 | 		public static let white = RGB(r: 255, g: 255, b: 255)
/Users/admin/builder/spi-builder-workspace/Sources/PPMKit/PPMKit+pixel.swift:34:21: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
28 | public extension PPM {
29 | 	/// An RGB pixel representation
30 | 	struct RGB: Equatable {
   |         `- note: consider making struct 'RGB' conform to the 'Sendable' protocol
31 | 		/// Standard black
32 | 		public static let black = RGB(r: 0, g: 0, b: 0)
33 | 		/// Standard white
34 | 		public static let white = RGB(r: 255, g: 255, b: 255)
   |                     |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'white' 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
35 |
36 | 		/// Create a pixel with rgb values in 0 -> 255
[5/9] Compiling PPMKit PPMKit.swift
[6/9] Compiling PPMKit PPMKit+cgimage.swift
[7/9] Compiling PPMKit PPMKit+platform.swift
[8/9] Emitting module PPMKit
/Users/admin/builder/spi-builder-workspace/Sources/PPMKit/PPMKit+pixel.swift:32:21: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
28 | public extension PPM {
29 | 	/// An RGB pixel representation
30 | 	struct RGB: Equatable {
   |         `- note: consider making struct 'RGB' conform to the 'Sendable' protocol
31 | 		/// Standard black
32 | 		public static let black = RGB(r: 0, g: 0, b: 0)
   |                     |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'black' 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
33 | 		/// Standard white
34 | 		public static let white = RGB(r: 255, g: 255, b: 255)
/Users/admin/builder/spi-builder-workspace/Sources/PPMKit/PPMKit+pixel.swift:34:21: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
28 | public extension PPM {
29 | 	/// An RGB pixel representation
30 | 	struct RGB: Equatable {
   |         `- note: consider making struct 'RGB' conform to the 'Sendable' protocol
31 | 		/// Standard black
32 | 		public static let black = RGB(r: 0, g: 0, b: 0)
33 | 		/// Standard white
34 | 		public static let white = RGB(r: 255, g: 255, b: 255)
   |                     |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'white' 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
35 |
36 | 		/// Create a pixel with rgb values in 0 -> 255
[9/9] Compiling PPMKit PPMKit+image.swift
/Users/admin/builder/spi-builder-workspace/Sources/PPMKit/PPMKit+pixel.swift:32:21: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
28 | public extension PPM {
29 | 	/// An RGB pixel representation
30 | 	struct RGB: Equatable {
   |         `- note: consider making struct 'RGB' conform to the 'Sendable' protocol
31 | 		/// Standard black
32 | 		public static let black = RGB(r: 0, g: 0, b: 0)
   |                     |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'PPM.RGB' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'black' 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
33 | 		/// Standard white
34 | 		public static let white = RGB(r: 255, g: 255, b: 255)
Build complete! (24.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PPMKit",
  "name" : "PPMKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "PPMKit",
      "targets" : [
        "PPMKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PPMKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PPMKitTests",
      "path" : "Tests/PPMKitTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/p3test_no_eol.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/P3_3x2_L255_comment_fail.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/badly_formatted.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/P3_3x2_L255.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/P6_320x200_L255.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/P6_4x4_L255.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/gps-image.jpg",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/sample_640×426.ppm",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PPMKitTests/resources/P3_4x4_L16.ppm",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "SwiftPPMTests.swift",
        "TemporaryFilesContainer.swift"
      ],
      "target_dependencies" : [
        "PPMKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PPMKit",
      "module_type" : "SwiftTarget",
      "name" : "PPMKit",
      "path" : "Sources/PPMKit",
      "product_memberships" : [
        "PPMKit"
      ],
      "sources" : [
        "PPMKit+cgimage.swift",
        "PPMKit+image.swift",
        "PPMKit+pixel.swift",
        "PPMKit+platform.swift",
        "PPMKit.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.