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

Successful build of RudderKit, reference master (fad749), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 23:45:51 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.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rudderlabs/rudder-ios-kit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rudderlabs/rudder-ios-kit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at fad7497 Merge pull request #19 from rudderlabs/license/update/elv2
Cloned https://github.com/rudderlabs/rudder-ios-kit.git
Revision (git rev-parse @):
fad74979d8e79f2a418417f07f2b17d68ec7f8ff
SUCCESS checkout https://github.com/rudderlabs/rudder-ios-kit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
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
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RudderKit",
  "name" : "RudderKit",
  "path" : "/Users/admin/builder/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 ...
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/7] Compiling RudderKit RepeatingTimer.swift
/Users/admin/builder/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) {
[4/7] Compiling RudderKit Logger.swift
/Users/admin/builder/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) {
[5/7] Compiling RudderKit JSON.swift
[6/7] Compiling RudderKit Data+Ext.swift
[7/7] Emitting module RudderKit
/Users/admin/builder/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) {
/Users/admin/builder/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) {
Build complete! (4.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RudderKit",
  "name" : "RudderKit",
  "path" : "/Users/admin/builder/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"
}
Done.