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 KYLogger, reference main (c1d5bd), with Swift 6.1 for macOS (SPM) on 6 Jul 2025 14:09:35 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kjuly/KYLogger.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kjuly/KYLogger
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c1d5bda Adjust the alignment of multi-line logs
Cloned https://github.com/Kjuly/KYLogger.git
Revision (git rev-parse @):
c1d5bda4a2e3c29dcf6437ad91a44978dd0141a0
SUCCESS checkout https://github.com/Kjuly/KYLogger.git at main
========================================
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": "kylogger",
      "name": "KYLogger",
      "url": "https://github.com/Kjuly/KYLogger.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KYLogger",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Kjuly/KYLogger.git
[1/206] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.70s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (c1d5bda)
warning: '.resolve-product-dependencies': dependency 'kylogger' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kjuly/KYLogger.git
https://github.com/Kjuly/KYLogger.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KYLogger",
  "name" : "KYLogger",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.5"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "KYLogger",
      "targets" : [
        "KYLogger",
        "KYLoggerObjC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KYLoggerTests",
      "module_type" : "SwiftTarget",
      "name" : "KYLoggerTests",
      "path" : "KYLoggerTests",
      "sources" : [
        "KYFileLogger/KYFileLoggerConfigTests.swift",
        "KYFileLogger/KYFileLoggerErrorTests.swift",
        "KYFileLogger/KYFileLoggerTests.swift",
        "KYFileLogger/KYFileLogger_FolderNFileTests.swift",
        "KYFileLogger/KYFileLogger_LogDetailsTests.swift",
        "KYFileLogger/KYFileLogger_SessionTests.swift",
        "KYLogger/KYLoggerTests.swift"
      ],
      "target_dependencies" : [
        "KYLogger"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KYLoggerObjC",
      "module_type" : "ClangTarget",
      "name" : "KYLoggerObjC",
      "path" : "KYLogger/SourcesObjC",
      "product_memberships" : [
        "KYLogger"
      ],
      "sources" : [
        "KYLoggerObjC.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "KYLogger",
      "module_type" : "SwiftTarget",
      "name" : "KYLogger",
      "path" : "KYLogger/Sources",
      "product_memberships" : [
        "KYLogger"
      ],
      "sources" : [
        "KYFileLogger/KYFileLogger+FolderNFile.swift",
        "KYFileLogger/KYFileLogger+LogDetails.swift",
        "KYFileLogger/KYFileLogger+Session.swift",
        "KYFileLogger/KYFileLogger.swift",
        "KYFileLogger/KYFileLoggerConfig.swift",
        "KYFileLogger/KYFileLoggerError.swift",
        "KYLogger/KYLog.swift",
        "KYLogger/KYLogType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/3] Write sources
[1/3] Write swift-version-2F0A5646E1D333AE.txt
[2/12] Compiling KYLoggerObjC KYLoggerObjC.m
[4/12] Compiling KYLogger KYFileLoggerError.swift
[5/12] Compiling KYLogger KYLogType.swift
[6/12] Compiling KYLogger KYLog.swift
[7/12] Compiling KYLogger KYFileLoggerConfig.swift
[8/12] Compiling KYLogger KYFileLogger+Session.swift
[9/12] Compiling KYLogger KYFileLogger.swift
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:14:14: warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class KYFileLogger: NSObject {
13 |
14 |   static var _currentSessionIdentifier: String?
   |              |- warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_currentSessionIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property '_currentSessionIdentifier' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |   static var _logFileURL: URL?
16 |
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 |   static var _currentSessionIdentifier: String?
15 |   static var _logFileURL: URL?
   |              |- warning: static property '_logFileURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property '_logFileURL' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |   // MARK: - Public (Log)
[10/12] Emitting module KYLogger
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:14:14: warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class KYFileLogger: NSObject {
13 |
14 |   static var _currentSessionIdentifier: String?
   |              |- warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_currentSessionIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property '_currentSessionIdentifier' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |   static var _logFileURL: URL?
16 |
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 |   static var _currentSessionIdentifier: String?
15 |   static var _logFileURL: URL?
   |              |- warning: static property '_logFileURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property '_logFileURL' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |   // MARK: - Public (Log)
[11/12] Compiling KYLogger KYFileLogger+LogDetails.swift
[12/12] Compiling KYLogger KYFileLogger+FolderNFile.swift
Build complete! (4.09s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KYLogger",
  "name" : "KYLogger",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.5"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "KYLogger",
      "targets" : [
        "KYLogger",
        "KYLoggerObjC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KYLoggerTests",
      "module_type" : "SwiftTarget",
      "name" : "KYLoggerTests",
      "path" : "KYLoggerTests",
      "sources" : [
        "KYFileLogger/KYFileLoggerConfigTests.swift",
        "KYFileLogger/KYFileLoggerErrorTests.swift",
        "KYFileLogger/KYFileLoggerTests.swift",
        "KYFileLogger/KYFileLogger_FolderNFileTests.swift",
        "KYFileLogger/KYFileLogger_LogDetailsTests.swift",
        "KYFileLogger/KYFileLogger_SessionTests.swift",
        "KYLogger/KYLoggerTests.swift"
      ],
      "target_dependencies" : [
        "KYLogger"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KYLoggerObjC",
      "module_type" : "ClangTarget",
      "name" : "KYLoggerObjC",
      "path" : "KYLogger/SourcesObjC",
      "product_memberships" : [
        "KYLogger"
      ],
      "sources" : [
        "KYLoggerObjC.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "KYLogger",
      "module_type" : "SwiftTarget",
      "name" : "KYLogger",
      "path" : "KYLogger/Sources",
      "product_memberships" : [
        "KYLogger"
      ],
      "sources" : [
        "KYFileLogger/KYFileLogger+FolderNFile.swift",
        "KYFileLogger/KYFileLogger+LogDetails.swift",
        "KYFileLogger/KYFileLogger+Session.swift",
        "KYFileLogger/KYFileLogger.swift",
        "KYFileLogger/KYFileLoggerConfig.swift",
        "KYFileLogger/KYFileLoggerError.swift",
        "KYLogger/KYLog.swift",
        "KYLogger/KYLogType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.