The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Localize, reference master (925c86), with Swift 6.1 for Android on 14 Dec 2025 23:10:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/andresilvagomez/Localize.git
Reference: master
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/andresilvagomez/Localize
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 925c862 Merge pull request #66 from minsoe/master
Cloned https://github.com/andresilvagomez/Localize.git
Revision (git rev-parse @):
925c862e52891a048adfe805358db1953bbfd07c
SUCCESS checkout https://github.com/andresilvagomez/Localize.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/andresilvagomez/Localize.git
https://github.com/andresilvagomez/Localize.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localize",
  "name" : "Localize",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localize",
      "targets" : [
        "Localize"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Localize",
      "module_type" : "SwiftTarget",
      "name" : "Localize",
      "path" : "Source",
      "product_memberships" : [
        "Localize"
      ],
      "sources" : [
        "Localize.swift",
        "LocalizeCommonProtocol.swift",
        "LocalizeConfig.swift",
        "LocalizeJson.swift",
        "LocalizeProtocol.swift",
        "LocalizeStatic.swift",
        "LocalizeString.swift",
        "LocalizeStrings.swift",
        "LocalizeUI.swift",
        "Pluralize.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Tests': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Example': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:df03784badd7f27c5aaf58aceda7a3eace61955b295b55f91184969c309ad8ef
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Tests': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Example': File not found.
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling Localize LocalizeProtocol.swift
[4/13] Compiling Localize Pluralize.swift
[5/13] Compiling Localize LocalizeStatic.swift
[6/13] Emitting module Localize
/host/spi-builder-workspace/Source/Localize.swift:33:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Is a pricipal class, contents all logic to localize your keys
 27 | /// read json and determinate all configurations.
 28 | public class Localize: NSObject {
    |              `- note: class 'Localize' does not conform to the 'Sendable' protocol
 29 |
 30 |     // MARK: Properties
 31 |
 32 |     /// Shared instance
 33 |     public static let shared: Localize = Localize()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' 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
 34 |
 35 |     /// Provider to localize your app.
[7/13] Compiling Localize LocalizeUI.swift
[8/13] Compiling Localize LocalizeString.swift
[9/13] Compiling Localize LocalizeStrings.swift
[10/13] Compiling Localize Localize.swift
/host/spi-builder-workspace/Source/Localize.swift:33:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Is a pricipal class, contents all logic to localize your keys
 27 | /// read json and determinate all configurations.
 28 | public class Localize: NSObject {
    |              `- note: class 'Localize' does not conform to the 'Sendable' protocol
 29 |
 30 |     // MARK: Properties
 31 |
 32 |     /// Shared instance
 33 |     public static let shared: Localize = Localize()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' 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
 34 |
 35 |     /// Provider to localize your app.
/host/spi-builder-workspace/Source/LocalizeCommonProtocol.swift:62:18: error: value of type 'UserDefaults' has no member 'setValue'
 60 |     open func update(language: String) {
 61 |         let defaults = UserDefaults.standard
 62 |         defaults.setValue(language, forKey: localizeStorageKey)
    |                  `- error: value of type 'UserDefaults' has no member 'setValue'
 63 |         defaults.synchronize()
 64 |         NotificationCenter.default.post(
[11/13] Compiling Localize LocalizeCommonProtocol.swift
/host/spi-builder-workspace/Source/Localize.swift:33:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Is a pricipal class, contents all logic to localize your keys
 27 | /// read json and determinate all configurations.
 28 | public class Localize: NSObject {
    |              `- note: class 'Localize' does not conform to the 'Sendable' protocol
 29 |
 30 |     // MARK: Properties
 31 |
 32 |     /// Shared instance
 33 |     public static let shared: Localize = Localize()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localize' 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
 34 |
 35 |     /// Provider to localize your app.
/host/spi-builder-workspace/Source/LocalizeCommonProtocol.swift:62:18: error: value of type 'UserDefaults' has no member 'setValue'
 60 |     open func update(language: String) {
 61 |         let defaults = UserDefaults.standard
 62 |         defaults.setValue(language, forKey: localizeStorageKey)
    |                  `- error: value of type 'UserDefaults' has no member 'setValue'
 63 |         defaults.synchronize()
 64 |         NotificationCenter.default.post(
[12/13] Compiling Localize LocalizeConfig.swift
/host/spi-builder-workspace/Source/LocalizeJson.swift:54:38: error: value of type 'AnyObject' has no subscripts
 52 |         var jsonCopy: AnyObject? = self as AnyObject
 53 |         for key in values {
 54 |             if let result = jsonCopy?[key] {
    |                                      `- error: value of type 'AnyObject' has no subscripts
 55 |                 jsonCopy = result as AnyObject?
 56 |             } else {
[13/13] Compiling Localize LocalizeJson.swift
/host/spi-builder-workspace/Source/LocalizeJson.swift:54:38: error: value of type 'AnyObject' has no subscripts
 52 |         var jsonCopy: AnyObject? = self as AnyObject
 53 |         for key in values {
 54 |             if let result = jsonCopy?[key] {
    |                                      `- error: value of type 'AnyObject' has no subscripts
 55 |                 jsonCopy = result as AnyObject?
 56 |             } else {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:df03784badd7f27c5aaf58aceda7a3eace61955b295b55f91184969c309ad8ef
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Tests': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Example': File not found.
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling Localize LocalizeProtocol.swift
[3/12] Emitting module Localize
[4/12] Compiling Localize Localize.swift
/host/spi-builder-workspace/Source/LocalizeCommonProtocol.swift:62:18: error: value of type 'UserDefaults' has no member 'setValue'
 60 |     open func update(language: String) {
 61 |         let defaults = UserDefaults.standard
 62 |         defaults.setValue(language, forKey: localizeStorageKey)
    |                  `- error: value of type 'UserDefaults' has no member 'setValue'
 63 |         defaults.synchronize()
 64 |         NotificationCenter.default.post(
[5/12] Compiling Localize LocalizeCommonProtocol.swift
/host/spi-builder-workspace/Source/LocalizeCommonProtocol.swift:62:18: error: value of type 'UserDefaults' has no member 'setValue'
 60 |     open func update(language: String) {
 61 |         let defaults = UserDefaults.standard
 62 |         defaults.setValue(language, forKey: localizeStorageKey)
    |                  `- error: value of type 'UserDefaults' has no member 'setValue'
 63 |         defaults.synchronize()
 64 |         NotificationCenter.default.post(
[6/12] Compiling Localize LocalizeConfig.swift
/host/spi-builder-workspace/Source/LocalizeJson.swift:54:38: error: value of type 'AnyObject' has no subscripts
 52 |         var jsonCopy: AnyObject? = self as AnyObject
 53 |         for key in values {
 54 |             if let result = jsonCopy?[key] {
    |                                      `- error: value of type 'AnyObject' has no subscripts
 55 |                 jsonCopy = result as AnyObject?
 56 |             } else {
[7/12] Compiling Localize LocalizeJson.swift
/host/spi-builder-workspace/Source/LocalizeJson.swift:54:38: error: value of type 'AnyObject' has no subscripts
 52 |         var jsonCopy: AnyObject? = self as AnyObject
 53 |         for key in values {
 54 |             if let result = jsonCopy?[key] {
    |                                      `- error: value of type 'AnyObject' has no subscripts
 55 |                 jsonCopy = result as AnyObject?
 56 |             } else {
[8/12] Compiling Localize LocalizeUI.swift
[9/12] Compiling Localize LocalizeStatic.swift
[10/12] Compiling Localize LocalizeString.swift
[11/12] Compiling Localize LocalizeStrings.swift
[12/12] Compiling Localize Pluralize.swift
BUILD FAILURE 6.1 android