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

Swift 6 data race errors: 3

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/Sajjon/BytePattern.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sajjon/BytePattern
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 663d343 Revert MainActor change
Cloned https://github.com/Sajjon/BytePattern.git
Revision (git rev-parse @):
663d343d5f2c516e09fdac37db18dd1214a0bcda
SUCCESS checkout https://github.com/Sajjon/BytePattern.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Sajjon/BytePattern.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/7] Write sources
[5/7] Compiling _NumericsShims _NumericsShims.c
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/17] Compiling RealModule Float+Real.swift
[9/17] Compiling RealModule Float80+Real.swift
[10/18] Compiling RealModule RealFunctions.swift
[11/18] Compiling RealModule ElementaryFunctions.swift
[12/18] Compiling RealModule Float16+Real.swift
[13/18] Compiling RealModule Real.swift
[14/18] Compiling RealModule ApproximateEquality.swift
[15/18] Compiling RealModule AlgebraicField.swift
[16/18] Emitting module RealModule
[17/18] Compiling RealModule AugmentedArithmetic.swift
[18/18] Compiling RealModule Double+Real.swift
[19/42] Compiling Algorithms EitherSequence.swift
[20/42] Compiling Algorithms FirstNonNil.swift
[21/42] Compiling Algorithms FlattenCollection.swift
[22/44] Compiling Algorithms Combinations.swift
[23/44] Compiling Algorithms Compacted.swift
[24/44] Compiling Algorithms Cycle.swift
[25/44] Compiling Algorithms Unique.swift
[26/44] Compiling Algorithms Windows.swift
[27/44] Compiling Algorithms Reductions.swift
[28/44] Compiling Algorithms Rotate.swift
[29/44] Compiling Algorithms Product.swift
[30/44] Compiling Algorithms RandomSample.swift
[31/44] Compiling Algorithms MinMax.swift
[32/44] Compiling Algorithms Partition.swift
[33/44] Compiling Algorithms Permutations.swift
[34/44] Compiling Algorithms Suffix.swift
[35/44] Compiling Algorithms Trim.swift
[36/44] Compiling Algorithms AdjacentPairs.swift
[37/44] Compiling Algorithms Chain.swift
[38/44] Compiling Algorithms Chunked.swift
[39/44] Compiling Algorithms Indexed.swift
[40/44] Compiling Algorithms Intersperse.swift
[41/44] Compiling Algorithms Joined.swift
[42/44] Compiling Algorithms Split.swift
[43/44] Compiling Algorithms Stride.swift
[44/44] Emitting module Algorithms
[45/57] Compiling BytePattern IntsGroup.swift
[46/57] Compiling BytePattern FromEnd.swift
[47/57] Compiling BytePattern Ints.swift
[48/57] Compiling BytePattern Operators.swift
[49/57] Compiling BytePattern Bools.swift
[50/57] Compiling BytePattern SafeCompare.swift
[51/57] Compiling BytePattern SecureBytes.swift
[52/57] Compiling BytePattern Data+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[53/57] Compiling BytePattern RandomBytes.swift
/Users/admin/builder/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[54/57] Emitting module BytePattern
/Users/admin/builder/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[55/57] Compiling BytePattern BytePattern.swift
[56/57] Compiling BytePattern BytePatternFinder.swift
[57/57] Compiling BytePattern FromBothEnds.swift
[58/58] Compiling BytePattern Storage.swift
[59/64] Emitting module BytesMutation
[60/64] Compiling BytesMutation ContigiousBytes+Mutate.swift
[61/64] Compiling XCTAssertBytesEqual XCTAssertBytesFromHexEqual.swift
[62/64] Compiling XCTAssertBytesEqual XCTAssertBytesEqual.swift
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:19:23: warning: static property 'passOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 |     /// passed to test assert function `XCTAssertBytesEqual` or
18 |     /// `XCTAssertBytesFromHexEqual`.
19 |     public static var passOnPatternNonIdentical = false
   |                       |- warning: static property 'passOnPatternNonIdentical' 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 'passOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'passOnPatternNonIdentical' 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
20 |
21 |     /// Used in the abscenve of the `haltOnPatternNonIdentical` parameter
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:24:23: warning: static property 'haltOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     /// passed to test assert function `XCTAssertBytesEqual` or
23 |     /// `XCTAssertBytesFromHexEqual`.
24 |     public static var haltOnPatternNonIdentical = false
   |                       |- warning: static property 'haltOnPatternNonIdentical' 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 'haltOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'haltOnPatternNonIdentical' 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
25 | }
26 |
[63/64] Emitting module XCTAssertBytesEqual
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:19:23: warning: static property 'passOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 |     /// passed to test assert function `XCTAssertBytesEqual` or
18 |     /// `XCTAssertBytesFromHexEqual`.
19 |     public static var passOnPatternNonIdentical = false
   |                       |- warning: static property 'passOnPatternNonIdentical' 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 'passOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'passOnPatternNonIdentical' 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
20 |
21 |     /// Used in the abscenve of the `haltOnPatternNonIdentical` parameter
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:24:23: warning: static property 'haltOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     /// passed to test assert function `XCTAssertBytesEqual` or
23 |     /// `XCTAssertBytesFromHexEqual`.
24 |     public static var haltOnPatternNonIdentical = false
   |                       |- warning: static property 'haltOnPatternNonIdentical' 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 'haltOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'haltOnPatternNonIdentical' 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
25 | }
26 |
[64/64] Compiling XCTAssertBytesEqual DefaultXCTAssertBytesEqualParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:19:23: warning: static property 'passOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 |     /// passed to test assert function `XCTAssertBytesEqual` or
18 |     /// `XCTAssertBytesFromHexEqual`.
19 |     public static var passOnPatternNonIdentical = false
   |                       |- warning: static property 'passOnPatternNonIdentical' 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 'passOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'passOnPatternNonIdentical' 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
20 |
21 |     /// Used in the abscenve of the `haltOnPatternNonIdentical` parameter
/Users/admin/builder/spi-builder-workspace/Sources/XCTAssertBytesEqual/DefaultXCTAssertBytesEqualParameters.swift:24:23: warning: static property 'haltOnPatternNonIdentical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     /// passed to test assert function `XCTAssertBytesEqual` or
23 |     /// `XCTAssertBytesFromHexEqual`.
24 |     public static var haltOnPatternNonIdentical = false
   |                       |- warning: static property 'haltOnPatternNonIdentical' 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 'haltOnPatternNonIdentical' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'haltOnPatternNonIdentical' 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
25 | }
26 |
Build complete! (41.19s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-algorithms
[1/5228] Fetching swift-algorithms
[106/10700] Fetching swift-algorithms, swift-numerics
Fetched https://github.com/apple/swift-algorithms from cache (1.27s)
Fetched https://github.com/apple/swift-numerics from cache (1.27s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.0.0 (0.70s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.71s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms"
    }
  ],
  "manifest_display_name" : "BytePattern",
  "name" : "BytePattern",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BytePattern",
      "targets" : [
        "BytePattern"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XCTAssertBytesEqual",
      "targets" : [
        "XCTAssertBytesEqual"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BytesMutation",
      "targets" : [
        "BytesMutation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XCTAssertBytesEqual",
      "module_type" : "SwiftTarget",
      "name" : "XCTAssertBytesEqual",
      "path" : "Sources/XCTAssertBytesEqual",
      "product_memberships" : [
        "XCTAssertBytesEqual"
      ],
      "sources" : [
        "DefaultXCTAssertBytesEqualParameters.swift",
        "XCTAssertBytesEqual.swift",
        "XCTAssertBytesFromHexEqual.swift"
      ],
      "target_dependencies" : [
        "BytePattern"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BytesMutation",
      "module_type" : "SwiftTarget",
      "name" : "BytesMutation",
      "path" : "Sources/BytesMutation",
      "product_dependencies" : [
        "Algorithms"
      ],
      "product_memberships" : [
        "BytesMutation"
      ],
      "sources" : [
        "ContigiousBytes+Mutate.swift"
      ],
      "target_dependencies" : [
        "BytePattern"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BytePatternTests",
      "module_type" : "SwiftTarget",
      "name" : "BytePatternTests",
      "path" : "Tests/BytePatternTests",
      "sources" : [
        "BytePatternTests.swift",
        "Support/Timer.swift"
      ],
      "target_dependencies" : [
        "XCTAssertBytesEqual",
        "BytesMutation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BytePattern",
      "module_type" : "SwiftTarget",
      "name" : "BytePattern",
      "path" : "Sources/BytePattern",
      "product_dependencies" : [
        "Algorithms"
      ],
      "product_memberships" : [
        "BytePattern",
        "XCTAssertBytesEqual",
        "BytesMutation"
      ],
      "sources" : [
        "BytePattern.swift",
        "BytePatternFinder.swift",
        "Bytes/Data+Hex.swift",
        "Bytes/RandomBytes.swift",
        "Bytes/SafeCompare.swift",
        "Bytes/SecureBytes.swift",
        "Operators.swift",
        "Storage/Bools.swift",
        "Storage/IntsGroups/FromBothEnds/FromBothEnds.swift",
        "Storage/IntsGroups/FromBothEnds/FromEnd/FromEnd.swift",
        "Storage/IntsGroups/FromBothEnds/FromEnd/Ints/Ints.swift",
        "Storage/IntsGroups/IntsGroup.swift",
        "Storage/Storage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.