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

Failed to build UnifiedLogHandler, reference master (7b4bfa), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 07:16:07 UTC.

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/UnifiedLogging.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gonzalezreal/UnifiedLogging
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7b4bfa2 Add LICENSE
Cloned https://github.com/gonzalezreal/UnifiedLogging.git
Revision (git rev-parse @):
7b4bfa24ba7af8ff819d777cf7acc22450ca68b6
SUCCESS checkout https://github.com/gonzalezreal/UnifiedLogging.git at master
Fetching https://github.com/apple/swift-log
[1/3649] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (1.11s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.2.0 (0.68s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.2.0
========================================
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": "unifiedlogging",
      "name": "UnifiedLogHandler",
      "url": "https://github.com/gonzalezreal/UnifiedLogging.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UnifiedLogging",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log",
          "version": "1.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/gonzalezreal/UnifiedLogging.git
[1/28] Fetching unifiedlogging
Fetched https://github.com/gonzalezreal/UnifiedLogging.git from cache (0.62s)
Fetching https://github.com/apple/swift-log from cache
Fetched https://github.com/apple/swift-log from cache (0.52s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.1 (0.48s)
Creating working copy for https://github.com/gonzalezreal/UnifiedLogging.git
Working copy of https://github.com/gonzalezreal/UnifiedLogging.git resolved at master (7b4bfa2)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.1
warning: '.resolve-product-dependencies': dependency 'unifiedlogging' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/gonzalezreal/UnifiedLogging.git
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/7] Emitting module Logging
[5/7] Compiling Logging LogHandler.swift
[6/7] Compiling Logging Locks.swift
[7/7] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling UnifiedLogHandler LogFormatter.swift
[9/10] Emitting module UnifiedLogHandler
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:6:26: error: 'Logger' is ambiguous for type lookup in this context
 4 |
 5 | public struct UnifiedLogHandler: LogHandler {
 6 |     public var metadata: Logger.Metadata {
   |                          `- error: 'Logger' is ambiguous for type lookup in this context
 7 |         get { formatter.metadata }
 8 |         set { formatter.metadata = newValue }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:11:26: error: 'Logger' is ambiguous for type lookup in this context
 9 |     }
10 |
11 |     public var logLevel: Logger.Level = .info
   |                          `- error: 'Logger' is ambiguous for type lookup in this context
12 |
13 |     private let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:20:50: error: 'Logger' is ambiguous for type lookup in this context
18 |     }
19 |
20 |     public subscript(metadataKey key: String) -> Logger.Metadata.Value? {
   |                                                  `- error: 'Logger' is ambiguous for type lookup in this context
21 |         get { formatter.metadata[key] }
22 |         set { formatter.metadata[key] = newValue }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:28: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                            `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:51: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                                                   `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:77: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                                                                             `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:31:20: error: 'Logger' is ambiguous for type lookup in this context
29 |
30 | private extension OSLogType {
31 |     init(logLevel: Logger.Level) {
   |                    `- error: 'Logger' is ambiguous for type lookup in this context
32 |         switch logLevel {
33 |         case .trace, .debug:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
[10/10] Compiling UnifiedLogHandler UnifiedLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:6:26: error: 'Logger' is ambiguous for type lookup in this context
 4 |
 5 | public struct UnifiedLogHandler: LogHandler {
 6 |     public var metadata: Logger.Metadata {
   |                          `- error: 'Logger' is ambiguous for type lookup in this context
 7 |         get { formatter.metadata }
 8 |         set { formatter.metadata = newValue }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:11:26: error: 'Logger' is ambiguous for type lookup in this context
 9 |     }
10 |
11 |     public var logLevel: Logger.Level = .info
   |                          `- error: 'Logger' is ambiguous for type lookup in this context
12 |
13 |     private let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:20:50: error: 'Logger' is ambiguous for type lookup in this context
18 |     }
19 |
20 |     public subscript(metadataKey key: String) -> Logger.Metadata.Value? {
   |                                                  `- error: 'Logger' is ambiguous for type lookup in this context
21 |         get { formatter.metadata[key] }
22 |         set { formatter.metadata[key] = newValue }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:28: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                            `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:51: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                                                   `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:25:77: error: 'Logger' is ambiguous for type lookup in this context
23 |     }
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
   |                                                                             `- error: 'Logger' is ambiguous for type lookup in this context
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
27 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:31:20: error: 'Logger' is ambiguous for type lookup in this context
29 |
30 | private extension OSLogType {
31 |     init(logLevel: Logger.Level) {
   |                    `- error: 'Logger' is ambiguous for type lookup in this context
32 |         switch logLevel {
33 |         case .trace, .debug:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: found this candidate
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: found this candidate
 29 |     @usableFromInline
 30 |     var handler: LogHandler
os.Logger:2:15: note: found this candidate
 1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 2 | public struct Logger : @unchecked Sendable {
   |               `- note: found this candidate
 3 |     public init(subsystem: String, category: String)
 4 |     public init()
/Users/admin/builder/spi-builder-workspace/Sources/UnifiedLogHandler/UnifiedLogHandler.swift:26:55: error: extraneous argument label 'logLevel:' in call
24 |
25 |     public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file _: String, function _: String, line _: UInt) {
26 |         os_log("%{PUBLIC}@", log: log, type: OSLogType(logLevel: level), formatter.format(message: message, metadata: metadata))
   |                                                       `- error: extraneous argument label 'logLevel:' in call
27 |     }
28 | }
BUILD FAILURE 6.0 macosSpm