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 (4af59f), with Swift 6.0 for macOS (SPM) on 13 Apr 2025 18:02:56 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
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 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 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/197] Fetching kylogger
Fetched https://github.com/Kjuly/KYLogger.git from cache (0.72s)
Creating working copy for https://github.com/Kjuly/KYLogger.git
Working copy of https://github.com/Kjuly/KYLogger.git resolved at main (4af59f6)
warning: '.resolve-product-dependencies': dependency 'kylogger' 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/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.2.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-5BDAB9E9C0126B9D.txt
[2/12] Compiling KYLoggerObjC KYLoggerObjC.m
[4/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: annotate '_currentSessionIdentifier' 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
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: annotate '_logFileURL' 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
16 |
17 |   // MARK: - Public (Log)
[5/12] Compiling KYLogger KYLogType.swift
[6/12] Compiling KYLogger KYFileLoggerConfig.swift
[7/12] Compiling KYLogger KYFileLoggerError.swift
[8/12] Compiling KYLogger KYFileLogger+FolderNFile.swift
/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: annotate '_logFileURL' 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
16 |
17 |   // MARK: - Public (Log)
[9/12] Compiling KYLogger KYLog.swift
[10/12] Compiling KYLogger KYFileLogger+Session.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: annotate '_currentSessionIdentifier' 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
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: annotate '_logFileURL' 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
16 |
17 |   // MARK: - Public (Log)
[11/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: annotate '_currentSessionIdentifier' 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
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: annotate '_logFileURL' 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
16 |
17 |   // MARK: - Public (Log)
[12/12] Compiling KYLogger KYFileLogger+LogDetails.swift
Build complete! (12.57s)
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.