The Swift Package Index logo.Swift Package Index

Build Information

Successful build of CreditCardFormatter, reference develop (918bad), with Swift 6.1 for macOS (SPM) on 10 Feb 2026 00:17:24 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/barbarity/CreditCardFormatter.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/barbarity/CreditCardFormatter
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 918bada Fix podspec
Cloned https://github.com/barbarity/CreditCardFormatter.git
Revision (git rev-parse @):
918bada935459b3543891495b4d3fbd78ba77bc7
SUCCESS checkout https://github.com/barbarity/CreditCardFormatter.git at develop
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/barbarity/CreditCardFormatter.git
https://github.com/barbarity/CreditCardFormatter.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CreditCardFormatter",
  "name" : "CreditCardFormatter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CreditCardFormatter",
      "targets" : [
        "CreditCardFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CreditCardFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatterTests",
      "path" : "Tests/CreditCardFormatterTests",
      "sources" : [
        "CreditCardFormatterTests.swift",
        "Formats/AmericanExpressCreditCardFormatTests.swift",
        "Formats/ChinaUnionPayCreditCardFormatTests.swift",
        "Formats/DinersClubInternationalCreditCardFormatTests.swift",
        "Formats/DiscoverCreditCardFormatTests.swift",
        "Formats/JCBCreditCardFormatTests.swift",
        "Formats/MasterCardCreditCardFormatTests.swift",
        "Formats/UnknownCreditCardFormatTests.swift",
        "Formats/VISACreditCardFormatTests.swift",
        "ValidationAlgorithmsTests.swift"
      ],
      "target_dependencies" : [
        "CreditCardFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CreditCardFormatter",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatter",
      "path" : "Sources/CreditCardFormatter",
      "product_memberships" : [
        "CreditCardFormatter"
      ],
      "sources" : [
        "CreditCardFormat.swift",
        "CreditCardFormatter.swift",
        "Extensions/String+startsBetween.swift",
        "Formats/AmericanExpressCreditCardFormat.swift",
        "Formats/ChinaUnionPayCreditCardFormat.swift",
        "Formats/DinersClubInternationalCreditCardFormat.swift",
        "Formats/DiscoverCreditCardFormat.swift",
        "Formats/JCBCreditCardFormat.swift",
        "Formats/MasterCardCreditCardFormat.swift",
        "Formats/UnknownCreditCardFormat.swift",
        "Formats/VISACreditCardFormat.swift",
        "ValidationAlgorithms.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/14] Compiling CreditCardFormatter DiscoverCreditCardFormat.swift
[4/14] Compiling CreditCardFormatter UnknownCreditCardFormat.swift
[5/14] Compiling CreditCardFormatter MasterCardCreditCardFormat.swift
[6/14] Compiling CreditCardFormatter JCBCreditCardFormat.swift
[7/14] Compiling CreditCardFormatter DinersClubInternationalCreditCardFormat.swift
[8/14] Compiling CreditCardFormatter VISACreditCardFormat.swift
[9/14] Compiling CreditCardFormatter ChinaUnionPayCreditCardFormat.swift
[10/14] Compiling CreditCardFormatter String+startsBetween.swift
[11/14] Compiling CreditCardFormatter AmericanExpressCreditCardFormat.swift
[12/14] Compiling CreditCardFormatter CreditCardFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[13/14] Compiling CreditCardFormatter CreditCardFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[14/14] Emitting module CreditCardFormatter
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[15/15] Compiling CreditCardFormatter ValidationAlgorithms.swift
Build complete! (5.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CreditCardFormatter",
  "name" : "CreditCardFormatter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CreditCardFormatter",
      "targets" : [
        "CreditCardFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CreditCardFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatterTests",
      "path" : "Tests/CreditCardFormatterTests",
      "sources" : [
        "CreditCardFormatterTests.swift",
        "Formats/AmericanExpressCreditCardFormatTests.swift",
        "Formats/ChinaUnionPayCreditCardFormatTests.swift",
        "Formats/DinersClubInternationalCreditCardFormatTests.swift",
        "Formats/DiscoverCreditCardFormatTests.swift",
        "Formats/JCBCreditCardFormatTests.swift",
        "Formats/MasterCardCreditCardFormatTests.swift",
        "Formats/UnknownCreditCardFormatTests.swift",
        "Formats/VISACreditCardFormatTests.swift",
        "ValidationAlgorithmsTests.swift"
      ],
      "target_dependencies" : [
        "CreditCardFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CreditCardFormatter",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatter",
      "path" : "Sources/CreditCardFormatter",
      "product_memberships" : [
        "CreditCardFormatter"
      ],
      "sources" : [
        "CreditCardFormat.swift",
        "CreditCardFormatter.swift",
        "Extensions/String+startsBetween.swift",
        "Formats/AmericanExpressCreditCardFormat.swift",
        "Formats/ChinaUnionPayCreditCardFormat.swift",
        "Formats/DinersClubInternationalCreditCardFormat.swift",
        "Formats/DiscoverCreditCardFormat.swift",
        "Formats/JCBCreditCardFormat.swift",
        "Formats/MasterCardCreditCardFormat.swift",
        "Formats/UnknownCreditCardFormat.swift",
        "Formats/VISACreditCardFormat.swift",
        "ValidationAlgorithms.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.