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, reference main (663d34), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 00:35:38 UTC.

Swift 6 data race errors: 3

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.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
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-algorithms
[1/5576] Fetching swift-numerics
[57/11167] Fetching swift-numerics, swift-algorithms
Fetched https://github.com/apple/swift-numerics from cache (1.15s)
Fetched https://github.com/apple/swift-algorithms from cache (1.15s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.0.0 (0.57s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.57s)
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
========================================
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": "bytepattern",
      "name": "BytePattern",
      "url": "https://github.com/Sajjon/BytePattern.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BytePattern",
      "dependencies": [
        {
          "identity": "swift-algorithms",
          "name": "swift-algorithms",
          "url": "https://github.com/apple/swift-algorithms",
          "version": "1.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-algorithms",
          "dependencies": [
            {
              "identity": "swift-numerics",
              "name": "swift-numerics",
              "url": "https://github.com/apple/swift-numerics.git",
              "version": "1.0.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Sajjon/BytePattern.git
[1/187] Fetching bytepattern
Fetched https://github.com/Sajjon/BytePattern.git from cache (0.74s)
Fetching https://github.com/apple/swift-algorithms from cache
Fetched https://github.com/apple/swift-algorithms from cache (0.48s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.0 (0.54s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (0.53s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.55s)
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Creating working copy for https://github.com/Sajjon/BytePattern.git
Working copy of https://github.com/Sajjon/BytePattern.git resolved at main (663d343)
warning: '.resolve-product-dependencies': dependency 'bytepattern' is not used by any target
Found 1 product dependencies
  - swift-algorithms
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Sajjon/BytePattern.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[5/7] Compiling _NumericsShims _NumericsShims.c
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/17] Compiling RealModule Float80+Real.swift
[9/18] Compiling RealModule Float+Real.swift
[10/18] Compiling RealModule RealFunctions.swift
[11/18] Compiling RealModule AugmentedArithmetic.swift
[12/18] Compiling RealModule Real.swift
[13/18] Compiling RealModule ApproximateEquality.swift
[14/18] Emitting module RealModule
[15/18] Compiling RealModule ElementaryFunctions.swift
[16/18] Compiling RealModule AlgebraicField.swift
[17/18] Compiling RealModule Float16+Real.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 MinMax.swift
[23/44] Compiling Algorithms Partition.swift
[24/44] Compiling Algorithms Permutations.swift
[25/44] Compiling Algorithms Product.swift
[26/44] Compiling Algorithms RandomSample.swift
[27/44] Compiling Algorithms Split.swift
[28/44] Compiling Algorithms Stride.swift
[29/44] Compiling Algorithms Unique.swift
[30/44] Compiling Algorithms Windows.swift
[31/44] Compiling Algorithms Suffix.swift
[32/44] Compiling Algorithms Trim.swift
[33/44] Compiling Algorithms Reductions.swift
[34/44] Compiling Algorithms Rotate.swift
[35/44] Compiling Algorithms AdjacentPairs.swift
[36/44] Compiling Algorithms Chain.swift
[37/44] Compiling Algorithms Chunked.swift
[38/44] Compiling Algorithms Indexed.swift
[39/44] Compiling Algorithms Intersperse.swift
[40/44] Compiling Algorithms Joined.swift
[41/44] Compiling Algorithms Combinations.swift
[42/44] Compiling Algorithms Compacted.swift
[43/44] Compiling Algorithms Cycle.swift
[44/44] Emitting module Algorithms
[45/57] Compiling BytePattern FromBothEnds.swift
[46/57] Compiling BytePattern Ints.swift
[47/57] Compiling BytePattern FromEnd.swift
[48/57] Compiling BytePattern IntsGroup.swift
[49/58] Compiling BytePattern Operators.swift
[50/58] Compiling BytePattern Bools.swift
[51/58] 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 |
[52/58] Compiling BytePattern SafeCompare.swift
[53/58] Compiling BytePattern SecureBytes.swift
[54/58] Compiling BytePattern BytePattern.swift
[55/58] Compiling BytePattern BytePatternFinder.swift
[56/58] 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 |
[57/58] 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 |
[58/58] Compiling BytePattern Storage.swift
[59/64] Compiling BytesMutation ContigiousBytes+Mutate.swift
[60/64] Emitting module BytesMutation
[61/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 |
[62/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 XCTAssertBytesFromHexEqual.swift
Build complete! (26.98s)
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.