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.0 for macOS (SPM) on 3 Dec 2024 05:24:38 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.3
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "rudder-ios-kit",
      "name": "RudderKit",
      "url": "https://github.com/rudderlabs/rudder-ios-kit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/rudder-ios-kit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/rudderlabs/rudder-ios-kit.git
[1/248] Fetching rudder-ios-kit
Fetched https://github.com/rudderlabs/rudder-ios-kit.git from cache (0.82s)
Creating working copy for https://github.com/rudderlabs/rudder-ios-kit.git
Working copy of https://github.com/rudderlabs/rudder-ios-kit.git resolved at master (fad7497)
warning: '.resolve-product-dependencies': dependency 'rudder-ios-kit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
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.1.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--7754E27361AE5C74.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: annotate 'timers' with '@MainActor' if property should only be accessed from the main actor
   |                `- 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] 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: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
   |                       `- 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: annotate 'timers' with '@MainActor' if property should only be accessed from the main actor
   |                `- 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) {
[5/7] Compiling RudderKit Data+Ext.swift
[6/7] Compiling RudderKit JSON.swift
[7/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: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
   |                       `- 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) {
Build complete! (6.68s)
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.