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 1.4.1 (4af59f), with Swift 6.1 for macOS (SPM) on 1 May 2025 08:43:39 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.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kjuly/KYLogger.git
Reference: 1.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kjuly/KYLogger
 * tag               1.4.1      -> FETCH_HEAD
HEAD is now at 4af59f6 KYLogger.podspec: Set spec.version=1.4.1
Cloned https://github.com/Kjuly/KYLogger.git
Revision (git rev-parse @):
4af59f622b9ebd06ff9f42b55adbb25d207336ad
SUCCESS checkout https://github.com/Kjuly/KYLogger.git at 1.4.1
========================================
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/197] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.63s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at 1.4.1 (4af59f6)
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 KYFileLogger+FolderNFile.swift
[6/12] Compiling KYLogger KYFileLoggerConfig.swift
[7/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)
[8/12] Compiling KYLogger KYFileLogger+Session.swift
[9/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)
[10/12] Compiling KYLogger KYLogType.swift
[11/12] Compiling KYLogger KYFileLogger+LogDetails.swift
[12/12] Compiling KYLogger KYLog.swift
Build complete! (4.41s)
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.