The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RudderKit, reference master (983c3b), with Swift 6.1 for Android on 3 Mar 2026 17:07:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rudderlabs/rudder-ios-kit.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/rudderlabs/rudder-ios-kit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 983c3b8 chore(docs): add deprecation notice to README (#29)
Cloned https://github.com/rudderlabs/rudder-ios-kit.git
Revision (git rev-parse @):
983c3b8cc1124484cd539a682ffc3982591518b7
SUCCESS checkout https://github.com/rudderlabs/rudder-ios-kit.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rudderlabs/rudder-ios-kit.git
https://github.com/rudderlabs/rudder-ios-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RudderKit",
  "name" : "RudderKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "RudderKit",
      "targets" : [
        "RudderKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RudderKit",
      "module_type" : "SwiftTarget",
      "name" : "RudderKit",
      "path" : "Sources",
      "product_memberships" : [
        "RudderKit"
      ],
      "sources" : [
        "Classes/Data+Ext.swift",
        "Classes/JSON.swift",
        "Classes/Logger.swift",
        "Classes/RepeatingTimer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling RudderKit JSON.swift
[4/7] Compiling RudderKit Data+Ext.swift
[5/7] Compiling RudderKit RepeatingTimer.swift
/host/spi-builder-workspace/Sources/Classes/RepeatingTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     var state: State = .suspended
22 |
23 |     static var timers = [RepeatingTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static public func schedule(interval: TimeInterval, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[6/7] Emitting module RudderKit
/host/spi-builder-workspace/Sources/Classes/Logger.swift:38:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public class Logger {
38 |     public static var logLevel: LogLevel = .error
   |                       |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 |     public static func logDebug(_ message: String, function: String? = #function, line: Int? = #line) {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:67:2: error: Objective-C interoperability is disabled
65 | }
66 |
67 | @objc(RudderLogger)
   |  `- error: Objective-C interoperability is disabled
68 | public class ObjCLogger: NSObject {
69 |     @objc
/host/spi-builder-workspace/Sources/Classes/Logger.swift:69:6: error: Objective-C interoperability is disabled
67 | @objc(RudderLogger)
68 | public class ObjCLogger: NSObject {
69 |     @objc
   |      `- error: Objective-C interoperability is disabled
70 |     public static var logLevel: LogLevel {
71 |         set {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:79:6: error: Objective-C interoperability is disabled
77 |     }
78 |
79 |     @objc
   |      `- error: Objective-C interoperability is disabled
80 |     public static func logDebug(_ message: String) {
81 |         Logger.logDebug(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:84:6: error: Objective-C interoperability is disabled
82 |     }
83 |
84 |     @objc
   |      `- error: Objective-C interoperability is disabled
85 |     public static func logInfo(_ message: String) {
86 |         Logger.logInfo(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:89:6: error: Objective-C interoperability is disabled
87 |     }
88 |
89 |     @objc
   |      `- error: Objective-C interoperability is disabled
90 |     public static func logWarning(_ message: String) {
91 |         Logger.logWarning(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:94:6: error: Objective-C interoperability is disabled
92 |     }
93 |
94 |     @objc
   |      `- error: Objective-C interoperability is disabled
95 |     public static func logError(_ message: String) {
96 |         Logger.logError(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/RepeatingTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     var state: State = .suspended
22 |
23 |     static var timers = [RepeatingTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static public func schedule(interval: TimeInterval, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[7/7] Compiling RudderKit Logger.swift
/host/spi-builder-workspace/Sources/Classes/Logger.swift:38:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public class Logger {
38 |     public static var logLevel: LogLevel = .error
   |                       |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 |     public static func logDebug(_ message: String, function: String? = #function, line: Int? = #line) {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:67:2: error: Objective-C interoperability is disabled
65 | }
66 |
67 | @objc(RudderLogger)
   |  `- error: Objective-C interoperability is disabled
68 | public class ObjCLogger: NSObject {
69 |     @objc
/host/spi-builder-workspace/Sources/Classes/Logger.swift:69:6: error: Objective-C interoperability is disabled
67 | @objc(RudderLogger)
68 | public class ObjCLogger: NSObject {
69 |     @objc
   |      `- error: Objective-C interoperability is disabled
70 |     public static var logLevel: LogLevel {
71 |         set {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:79:6: error: Objective-C interoperability is disabled
77 |     }
78 |
79 |     @objc
   |      `- error: Objective-C interoperability is disabled
80 |     public static func logDebug(_ message: String) {
81 |         Logger.logDebug(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:84:6: error: Objective-C interoperability is disabled
82 |     }
83 |
84 |     @objc
   |      `- error: Objective-C interoperability is disabled
85 |     public static func logInfo(_ message: String) {
86 |         Logger.logInfo(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:89:6: error: Objective-C interoperability is disabled
87 |     }
88 |
89 |     @objc
   |      `- error: Objective-C interoperability is disabled
90 |     public static func logWarning(_ message: String) {
91 |         Logger.logWarning(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:94:6: error: Objective-C interoperability is disabled
92 |     }
93 |
94 |     @objc
   |      `- error: Objective-C interoperability is disabled
95 |     public static func logError(_ message: String) {
96 |         Logger.logError(message, function: nil, line: nil)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling RudderKit RepeatingTimer.swift
[3/6] Compiling RudderKit Logger.swift
/host/spi-builder-workspace/Sources/Classes/Logger.swift:67:2: error: Objective-C interoperability is disabled
65 | }
66 |
67 | @objc(RudderLogger)
   |  `- error: Objective-C interoperability is disabled
68 | public class ObjCLogger: NSObject {
69 |     @objc
/host/spi-builder-workspace/Sources/Classes/Logger.swift:69:6: error: Objective-C interoperability is disabled
67 | @objc(RudderLogger)
68 | public class ObjCLogger: NSObject {
69 |     @objc
   |      `- error: Objective-C interoperability is disabled
70 |     public static var logLevel: LogLevel {
71 |         set {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:79:6: error: Objective-C interoperability is disabled
77 |     }
78 |
79 |     @objc
   |      `- error: Objective-C interoperability is disabled
80 |     public static func logDebug(_ message: String) {
81 |         Logger.logDebug(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:84:6: error: Objective-C interoperability is disabled
82 |     }
83 |
84 |     @objc
   |      `- error: Objective-C interoperability is disabled
85 |     public static func logInfo(_ message: String) {
86 |         Logger.logInfo(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:89:6: error: Objective-C interoperability is disabled
87 |     }
88 |
89 |     @objc
   |      `- error: Objective-C interoperability is disabled
90 |     public static func logWarning(_ message: String) {
91 |         Logger.logWarning(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:94:6: error: Objective-C interoperability is disabled
92 |     }
93 |
94 |     @objc
   |      `- error: Objective-C interoperability is disabled
95 |     public static func logError(_ message: String) {
96 |         Logger.logError(message, function: nil, line: nil)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling RudderKit Data+Ext.swift
[5/6] Compiling RudderKit JSON.swift
[6/6] Emitting module RudderKit
/host/spi-builder-workspace/Sources/Classes/Logger.swift:67:2: error: Objective-C interoperability is disabled
65 | }
66 |
67 | @objc(RudderLogger)
   |  `- error: Objective-C interoperability is disabled
68 | public class ObjCLogger: NSObject {
69 |     @objc
/host/spi-builder-workspace/Sources/Classes/Logger.swift:69:6: error: Objective-C interoperability is disabled
67 | @objc(RudderLogger)
68 | public class ObjCLogger: NSObject {
69 |     @objc
   |      `- error: Objective-C interoperability is disabled
70 |     public static var logLevel: LogLevel {
71 |         set {
/host/spi-builder-workspace/Sources/Classes/Logger.swift:79:6: error: Objective-C interoperability is disabled
77 |     }
78 |
79 |     @objc
   |      `- error: Objective-C interoperability is disabled
80 |     public static func logDebug(_ message: String) {
81 |         Logger.logDebug(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:84:6: error: Objective-C interoperability is disabled
82 |     }
83 |
84 |     @objc
   |      `- error: Objective-C interoperability is disabled
85 |     public static func logInfo(_ message: String) {
86 |         Logger.logInfo(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:89:6: error: Objective-C interoperability is disabled
87 |     }
88 |
89 |     @objc
   |      `- error: Objective-C interoperability is disabled
90 |     public static func logWarning(_ message: String) {
91 |         Logger.logWarning(message, function: nil, line: nil)
/host/spi-builder-workspace/Sources/Classes/Logger.swift:94:6: error: Objective-C interoperability is disabled
92 |     }
93 |
94 |     @objc
   |      `- error: Objective-C interoperability is disabled
95 |     public static func logError(_ message: String) {
96 |         Logger.logError(message, function: nil, line: nil)
BUILD FAILURE 6.1 android