This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of OhMyLog with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/forkercat/OhMyLog.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/forkercat/OhMyLog
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 71e8260 Update README
Cloned https://github.com/forkercat/OhMyLog.git
Revision (git rev-parse @):
71e8260d2ee70928f03ca0a30e1a744007aa8bd5
SUCCESS checkout https://github.com/forkercat/OhMyLog.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/forkercat/OhMyLog.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write OhMyLog-Demo-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/14] Compiling OhMyLog Logger+Any.swift
[6/14] Compiling OhMyLog Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Logger.swift:13:27: warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
11 |     public enum Defaults {
12 |         public static let loggerName = "Default"
13 |         public static let logLevel = Logger.Level.debug
   |                           |- warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- 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
14 |         public static let showLevelIcon = false
15 |         public static let showContext = true
16 |     }
17 |
18 |     public enum Level: Int {
   |                 `- note: consider making enum 'Level' conform to the 'Sendable' protocol
19 |         case trace
20 |         case debug
[7/14] Compiling OhMyLog Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Log.swift:11:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum Log {
11 |     static var logger = Logger(name: Logger.Defaults.loggerName, level: Logger.Defaults.logLevel)
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
12 |
13 |     @inline(__always)
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Logger.swift:13:27: warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
11 |     public enum Defaults {
12 |         public static let loggerName = "Default"
13 |         public static let logLevel = Logger.Level.debug
   |                           |- warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- 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
14 |         public static let showLevelIcon = false
15 |         public static let showContext = true
16 |     }
17 |
18 |     public enum Level: Int {
   |                 `- note: consider making enum 'Level' conform to the 'Sendable' protocol
19 |         case trace
20 |         case debug
[8/14] Compiling OhMyLog Logger+String.swift
[9/14] Compiling OhMyLog Log+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Log.swift:11:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum Log {
11 |     static var logger = Logger(name: Logger.Defaults.loggerName, level: Logger.Defaults.logLevel)
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
12 |
13 |     @inline(__always)
[10/14] Compiling OhMyLog Log+Any.swift
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Log.swift:11:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum Log {
11 |     static var logger = Logger(name: Logger.Defaults.loggerName, level: Logger.Defaults.logLevel)
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
12 |
13 |     @inline(__always)
[11/14] Emitting module OhMyLog
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Log.swift:11:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum Log {
11 |     static var logger = Logger(name: Logger.Defaults.loggerName, level: Logger.Defaults.logLevel)
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
12 |
13 |     @inline(__always)
/Users/admin/builder/spi-builder-workspace/Sources/OhMyLog/Logger.swift:13:27: warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
11 |     public enum Defaults {
12 |         public static let loggerName = "Default"
13 |         public static let logLevel = Logger.Level.debug
   |                           |- warning: static property 'logLevel' is not concurrency-safe because non-'Sendable' type 'Logger.Level' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- 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
14 |         public static let showLevelIcon = false
15 |         public static let showContext = true
16 |     }
17 |
18 |     public enum Level: Int {
   |                 `- note: consider making enum 'Level' conform to the 'Sendable' protocol
19 |         case trace
20 |         case debug
[12/16] Compiling OhMyLog_Demo main.swift
[13/16] Emitting module OhMyLog_Demo
[13/16] Write Objects.LinkFileList
[14/16] Linking OhMyLog-Demo
[15/16] Applying OhMyLog-Demo
Build complete! (21.46s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OhMyLog",
  "name" : "OhMyLog",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OhMyLog",
      "targets" : [
        "OhMyLog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OhMyLog-Demo",
      "targets" : [
        "OhMyLog-Demo"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OhMyLog_Demo",
      "module_type" : "SwiftTarget",
      "name" : "OhMyLog-Demo",
      "path" : "Sources/OhMyLog-Demo",
      "product_memberships" : [
        "OhMyLog-Demo"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "OhMyLog"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "OhMyLog",
      "module_type" : "SwiftTarget",
      "name" : "OhMyLog",
      "path" : "Sources/OhMyLog",
      "product_memberships" : [
        "OhMyLog",
        "OhMyLog-Demo"
      ],
      "sources" : [
        "Log+Any.swift",
        "Log+String.swift",
        "Log.swift",
        "Logger+Any.swift",
        "Logger+String.swift",
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.