The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SHDateFormatter, reference develop (ca2e01), with Swift 6.1 for Android on 17 Sep 2025 17:01:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/blackjacx/SHDateFormatter.git
Reference: develop
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/blackjacx/SHDateFormatter
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at ca2e011 Bump swift-actions/setup-swift from 1 to 2 in /.github/workflows
Cloned https://github.com/blackjacx/SHDateFormatter.git
Revision (git rev-parse @):
ca2e011acc769b2231c0293819bb7521b7ff7997
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/blackjacx/SHDateFormatter.git at develop
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/blackjacx/SHDateFormatter.git
https://github.com/blackjacx/SHDateFormatter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "7.6.2",
            "upper_bound" : "8.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "13.7.1",
            "upper_bound" : "14.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble"
    }
  ],
  "manifest_display_name" : "SHDateFormatter",
  "name" : "SHDateFormatter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "SHDateFormatter",
      "targets" : [
        "SHDateFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SHDateFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "SHDateFormatterTests",
      "path" : "Tests/SHDateFormatterTests",
      "product_dependencies" : [
        "Quick",
        "Nimble"
      ],
      "sources" : [
        "DateFormatterTests.swift"
      ],
      "target_dependencies" : [
        "SHDateFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SHDateFormatter",
      "module_type" : "SwiftTarget",
      "name" : "SHDateFormatter",
      "path" : "Source/SHDateFormatter",
      "product_memberships" : [
        "SHDateFormatter"
      ],
      "sources" : [
        "Classes/Date+Utils.swift",
        "Classes/SHDateFormatter+Extension.swift",
        "Classes/SHDateFormatter.swift",
        "Classes/TimeZone+Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/Quick/Quick
[1/14841] Fetching quick
Fetching https://github.com/Quick/Nimble
Fetched https://github.com/Quick/Quick from cache (1.12s)
[1/19658] Fetching nimble
Fetched https://github.com/Quick/Nimble from cache (2.26s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 13.7.1 (4.38s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.48s)
Computing version for https://github.com/Quick/Quick
Computed https://github.com/Quick/Quick at 7.6.2 (1.46s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/16294] Fetching swift-argument-parser
[653/22280] Fetching swift-argument-parser, swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.89s)
[15969/16294] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.36s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.39s)
Fetching https://github.com/apple/swift-numerics.git
[1/6348] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.76s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.66s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/460] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.63s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.57s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.0 (0.92s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (0.90s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.0
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 13.7.1
Creating working copy for https://github.com/Quick/Quick
Working copy of https://github.com/Quick/Quick resolved at 7.6.2
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
warning: 'nimble': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/PrivacyInfo.xcprivacy
warning: 'quick': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/Quick/Sources/Quick/PrivacyInfo.xcprivacy
[1/1] Compiling plugin LintCommandPlugin
[2/2] Compiling plugin LintWarning
[3/3] Compiling plugin LintError
[4/4] Compiling plugin DefocusCommandPlugin
[5/5] Compiling plugin GenerateManual
[6/6] Compiling plugin GenerateDoccReference
Building for debugging...
[6/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/13] Emitting module SHDateFormatter
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SHDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public struct SHDateFormatter {
    |               `- note: consider making struct 'SHDateFormatter' conform to the 'Sendable' protocol
 35 |
 36 |     public static let shared = SHDateFormatter()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SHDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     public static func is12hFormat(_ locale: Locale = Locale.current) -> Bool {
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:45:16: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     static let formatter = DateFormatter()
 45 |     static let iso8601Formatter = ISO8601DateFormatter()
    |                |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |     static let serialDispatchQueue = DispatchQueue(label: "com.dateFormatter.globalSerialDispatchQueue")
 47 |
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[10/13] Compiling SHDateFormatter SHDateFormatter+Extension.swift
[11/13] Compiling SHDateFormatter TimeZone+Extensions.swift
[12/13] Compiling SHDateFormatter Date+Utils.swift
[13/13] Compiling SHDateFormatter SHDateFormatter.swift
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SHDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public struct SHDateFormatter {
    |               `- note: consider making struct 'SHDateFormatter' conform to the 'Sendable' protocol
 35 |
 36 |     public static let shared = SHDateFormatter()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SHDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     public static func is12hFormat(_ locale: Locale = Locale.current) -> Bool {
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:45:16: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     static let formatter = DateFormatter()
 45 |     static let iso8601Formatter = ISO8601DateFormatter()
    |                |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |     static let serialDispatchQueue = DispatchQueue(label: "com.dateFormatter.globalSerialDispatchQueue")
 47 |
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:95:35: error: value of type 'DateFormatter' has no member 'formatterBehavior'
 93 |
 94 |     func reset() {
 95 |         SHDateFormatter.formatter.formatterBehavior = .default
    |                                   `- error: value of type 'DateFormatter' has no member 'formatterBehavior'
 96 |         SHDateFormatter.formatter.doesRelativeDateFormatting = false
 97 |         SHDateFormatter.formatter.dateFormat = nil
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:95:56: error: cannot infer contextual base in reference to member 'default'
 93 |
 94 |     func reset() {
 95 |         SHDateFormatter.formatter.formatterBehavior = .default
    |                                                        `- error: cannot infer contextual base in reference to member 'default'
 96 |         SHDateFormatter.formatter.doesRelativeDateFormatting = false
 97 |         SHDateFormatter.formatter.dateFormat = nil
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'nimble': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/PrivacyInfo.xcprivacy
warning: 'quick': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/Quick/Sources/Quick/PrivacyInfo.xcprivacy
[0/1] Planning build
[1/1] Compiling plugin LintCommandPlugin
[2/2] Compiling plugin LintWarning
[3/3] Compiling plugin LintError
[4/4] Compiling plugin DefocusCommandPlugin
[5/5] Compiling plugin GenerateManual
[6/6] Compiling plugin GenerateDoccReference
Building for debugging...
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/12] Compiling SHDateFormatter TimeZone+Extensions.swift
[9/12] Compiling SHDateFormatter SHDateFormatter+Extension.swift
[10/12] Compiling SHDateFormatter Date+Utils.swift
[11/12] Compiling SHDateFormatter SHDateFormatter.swift
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:95:35: error: value of type 'DateFormatter' has no member 'formatterBehavior'
 93 |
 94 |     func reset() {
 95 |         SHDateFormatter.formatter.formatterBehavior = .default
    |                                   `- error: value of type 'DateFormatter' has no member 'formatterBehavior'
 96 |         SHDateFormatter.formatter.doesRelativeDateFormatting = false
 97 |         SHDateFormatter.formatter.dateFormat = nil
/host/spi-builder-workspace/Source/SHDateFormatter/Classes/SHDateFormatter.swift:95:56: error: cannot infer contextual base in reference to member 'default'
 93 |
 94 |     func reset() {
 95 |         SHDateFormatter.formatter.formatterBehavior = .default
    |                                                        `- error: cannot infer contextual base in reference to member 'default'
 96 |         SHDateFormatter.formatter.doesRelativeDateFormatting = false
 97 |         SHDateFormatter.formatter.dateFormat = nil
[12/12] Emitting module SHDateFormatter
BUILD FAILURE 6.1 android