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

Failed to build Logg, reference master (0e056b), with Swift 6.1 for Wasm on 27 May 2025 19:57:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/Logg.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/JuanjoArreola/Logg
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0e056b6 New emojis. README updated
Cloned https://github.com/JuanjoArreola/Logg.git
Revision (git rev-parse @):
0e056b6a8e028a0b8070892059656586dcaad673
SUCCESS checkout https://github.com/JuanjoArreola/Logg.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/JuanjoArreola/Logg.git
https://github.com/JuanjoArreola/Logg.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Logg",
  "name" : "Logg",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Logg",
      "targets" : [
        "Logg"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggTests",
      "path" : "Tests/LoggTests",
      "sources" : [
        "LoggTests.swift"
      ],
      "target_dependencies" : [
        "Logg"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Logg",
      "module_type" : "SwiftTarget",
      "name" : "Logg",
      "path" : "Sources/Logg",
      "product_memberships" : [
        "Logg"
      ],
      "sources" : [
        "CompositeLogger.swift",
        "ConsoleFormatter.swift",
        "ConsoleLogger.swift",
        "DefaultFormatter.swift",
        "FileLogger.swift",
        "LogContext.swift",
        "LogFormatter.swift",
        "LogLevel.swift",
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling Logg ConsoleLogger.swift
/host/spi-builder-workspace/Sources/Logg/ConsoleLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.ConsoleQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public class ConsoleLogger: Logger {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] Emitting module Logg
/host/spi-builder-workspace/Sources/Logg/ConsoleLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.ConsoleQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public class ConsoleLogger: Logger {
/host/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | open class DefaultFormatter: LogFormatter {
 4 |
 5 |     public static var shared = DefaultFormatter()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public var formatter: DateFormatter
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.FileQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public enum FileLoggerError: Error {
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
   |                       |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
   |                       |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
   |                       |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let none: LogLevel = []
13 |
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
12 |     public static let none: LogLevel = []
   |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     public init(rawValue: Int) {
/host/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
[5/12] Compiling Logg CompositeLogger.swift
[6/12] Compiling Logg ConsoleFormatter.swift
[7/12] Compiling Logg LogFormatter.swift
[8/12] Compiling Logg LogContext.swift
[9/12] Compiling Logg LogLevel.swift
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
   |                       |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
   |                       |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
   |                       |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let none: LogLevel = []
13 |
/host/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
12 |     public static let none: LogLevel = []
   |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     public init(rawValue: Int) {
[10/12] Compiling Logg DefaultFormatter.swift
/host/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | open class DefaultFormatter: LogFormatter {
 4 |
 5 |     public static var shared = DefaultFormatter()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public var formatter: DateFormatter
[11/12] Compiling Logg FileLogger.swift
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.FileQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public enum FileLoggerError: Error {
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:23:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
21 |         var isDirectory: ObjCBool = false
22 |         if !FileManager.default.fileExists(atPath: path.path, isDirectory: &isDirectory) {
23 |             FileManager.default.createFile(atPath: path.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
24 |         } else if isDirectory.boolValue {
25 |             throw FileLoggerError.invalidFile
[12/12] Compiling Logg Logger.swift
/host/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling Logg ConsoleLogger.swift
/host/spi-builder-workspace/Sources/Logg/ConsoleLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.ConsoleQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public class ConsoleLogger: Logger {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Compiling Logg CompositeLogger.swift
[4/11] Compiling Logg ConsoleFormatter.swift
[5/11] Emitting module Logg
/host/spi-builder-workspace/Sources/Logg/ConsoleLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.ConsoleQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public class ConsoleLogger: Logger {
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.FileQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public enum FileLoggerError: Error {
/host/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
[6/11] Compiling Logg Logger.swift
/host/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
[7/11] Compiling Logg DefaultFormatter.swift
[8/11] Compiling Logg FileLogger.swift
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:3:24: error: cannot find 'DispatchQueue' in scope
 1 | import Foundation
 2 |
 3 | private let logQueue = DispatchQueue(label: "com.logg.FileQueue", attributes: [])
   |                        `- error: cannot find 'DispatchQueue' in scope
 4 |
 5 | public enum FileLoggerError: Error {
/host/spi-builder-workspace/Sources/Logg/FileLogger.swift:23:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
21 |         var isDirectory: ObjCBool = false
22 |         if !FileManager.default.fileExists(atPath: path.path, isDirectory: &isDirectory) {
23 |             FileManager.default.createFile(atPath: path.path, contents: nil, attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
24 |         } else if isDirectory.boolValue {
25 |             throw FileLoggerError.invalidFile
[9/11] Compiling Logg LogContext.swift
[10/11] Compiling Logg LogFormatter.swift
[11/11] Compiling Logg LogLevel.swift
BUILD FAILURE 6.1 wasm