The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GoogleCloudLogging, reference 1.1.2 (4c0d40), with Swift 6.1 for Wasm on 28 May 2025 07:55:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/DnV1eX/GoogleCloudLogging.git
Reference: 1.1.2
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/DnV1eX/GoogleCloudLogging
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at 4c0d407 Precise available OS version conditions in FileHandle throwing legacy functions.
Cloned https://github.com/DnV1eX/GoogleCloudLogging.git
Revision (git rev-parse @):
4c0d4076a7532c2177a6b3d0e964dfc36436695d
SUCCESS checkout https://github.com/DnV1eX/GoogleCloudLogging.git at 1.1.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DnV1eX/GoogleCloudLogging.git
https://github.com/DnV1eX/GoogleCloudLogging.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "GoogleCloudLogging",
  "name" : "GoogleCloudLogging",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "GoogleCloudLogging",
      "targets" : [
        "GoogleCloudLogging"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GoogleCloudLoggingTests",
      "module_type" : "SwiftTarget",
      "name" : "GoogleCloudLoggingTests",
      "path" : "Tests/GoogleCloudLoggingTests",
      "sources" : [
        "GoogleCloudLoggingTests.swift"
      ],
      "target_dependencies" : [
        "GoogleCloudLogging"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoogleCloudLogging",
      "module_type" : "SwiftTarget",
      "name" : "GoogleCloudLogging",
      "path" : "Sources/GoogleCloudLogging",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "GoogleCloudLogging"
      ],
      "sources" : [
        "GoogleCloudLogHandler.swift",
        "GoogleCloudLogging.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.99s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Emitting module Logging
[5/8] Compiling Logging LogHandler.swift
[6/8] Compiling Logging Locks.swift
[7/8] Compiling Logging MetadataProvider.swift
[8/8] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/12] Emitting module GoogleCloudLogging
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:61:31: warning: static property 'globalMetadata' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |     /// - Warning: Do not abuse `globalMetadata` as it is added to each log entry of the app.
 60 |     ///
 61 |     @Atomic public static var globalMetadata: Logger.Metadata = [:]
    |                               |- warning: static property 'globalMetadata' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'globalMetadata' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'globalMetadata' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |
 63 |     /// Overridden log level of each `Logger`. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:67:31: warning: static property 'forcedLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 65 |     /// For example, you can set `.trace` in a particular app instance to debug some special error case or track its behavior.
 66 |     ///
 67 |     @Atomic public static var forcedLogLevel: Logger.Level?
    |                               |- warning: static property 'forcedLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'forcedLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'forcedLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /// Initial log level of `Logger`. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:73:31: warning: static property 'defaultLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 71 |     /// **Default** is `.info`.
 72 |     ///
 73 |     @Atomic public static var defaultLogLevel: Logger.Level = .info
    |                               |- warning: static property 'defaultLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'defaultLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'defaultLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 74 |
 75 |     /// The log level upon receipt of which an attempt is made to immediately `upload` local logs to the server. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:79:31: warning: static property 'signalingLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 77 |     /// **Default** is `.critical`.
 78 |     ///
 79 |     @Atomic public static var signalingLogLevel: Logger.Level? = .critical
    |                               |- warning: static property 'signalingLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'signalingLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'signalingLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |
 81 |     /// Log entry upload size limit in bytes. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:87:31: warning: static property 'maxLogEntrySize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |     /// **Default** is equivalent to `256 KB`, which is the approximate Google Cloud limit.
 86 |     ///
 87 |     @Atomic public static var maxLogEntrySize: UInt? = 256_000
    |                               |- warning: static property 'maxLogEntrySize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'maxLogEntrySize' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'maxLogEntrySize' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 |     /// Log upload size limit in bytes. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:95:31: warning: static property 'maxLogSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 93 |     /// **Default** is equivalent to `10 MB`, which is the approximate Google Cloud limit.
 94 |     ///
 95 |     @Atomic public static var maxLogSize: UInt? = 10_000_000
    |                               |- warning: static property 'maxLogSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'maxLogSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'maxLogSize' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 |
 97 |     /// Logs retention period in seconds. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:103:31: warning: static property 'retentionPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     /// **Default** is equivalent to `30 days`, which is the default Google Cloud logs retention period.
102 |     ///
103 |     @Atomic public static var retentionPeriod: TimeInterval? = 3600 * 24 * 30
    |                               |- warning: static property 'retentionPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'retentionPeriod' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'retentionPeriod' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 |     /// Log upload interval in seconds. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:148:23: error: cannot find type 'DispatchSourceTimer' in scope
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
147 |
148 |     static let timer: DispatchSourceTimer = {
    |                       `- error: cannot find type 'DispatchSourceTimer' in scope
149 |         let timer = DispatchSource.makeTimerSource()
150 |         timer.setEventHandler(handler: uploadOnSchedule)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:111:31: warning: static property 'uploadInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |     /// **Default** is equivalent to `1 hour`.
110 |     ///
111 |     @Atomic public static var uploadInterval: TimeInterval? = 3600 {
    |                               |- warning: static property 'uploadInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'uploadInterval' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'uploadInterval' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |         didSet {
113 |             if logging != nil {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:127:31: warning: static property 'includeSourceLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 |     /// **Default** is `true`.
126 |     ///
127 |     @Atomic public static var includeSourceLocation = true
    |                               |- warning: static property 'includeSourceLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'includeSourceLocation' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'includeSourceLocation' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |     /// Internal logger for GoogleCloudLogHandler. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:133:31: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
131 |     /// You can choose an appropriate `logLevel`.
132 |     ///
133 |     @Atomic public static var logger = Logger(label: "GoogleCloudLogHandler")
    |                               |- warning: static property 'logger' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 |
135 |     /// URL to the local logs storage. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:142:45: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |     /// **Default** is `/tmp/GoogleCloudLogEntries.jsonl`.
141 |     ///
142 |     @Atomic public internal(set) static var logFile = FileManager.default.temporaryDirectory.appendingPathComponent("GoogleCloudLogEntries", isDirectory: false).appendingPathExtension("jsonl")
    |                                             |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                             |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                                             |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 |     @Atomic static var logging: GoogleCloudLogging?
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:144:24: warning: static property 'logging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
142 |     @Atomic public internal(set) static var logFile = FileManager.default.temporaryDirectory.appendingPathComponent("GoogleCloudLogEntries", isDirectory: false).appendingPathExtension("jsonl")
143 |
144 |     @Atomic static var logging: GoogleCloudLogging?
    |                        |- warning: static property 'logging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'logging' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'logging' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:146:34: error: cannot find 'DispatchQueue' in scope
144 |     @Atomic static var logging: GoogleCloudLogging?
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
    |                                  `- error: cannot find 'DispatchQueue' in scope
147 |
148 |     static let timer: DispatchSourceTimer = {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 23 |
 24 | /// Customizable SwiftLog logging backend for Google Cloud Logging via REST API v2 with offline functionality.
 25 | public struct GoogleCloudLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 26 |
 27 |     /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:25: error: cannot find 'DispatchQueue' in scope
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:99: error: cannot infer contextual base in reference to member 'concurrent'
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'concurrent'
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:488:11: error: cannot find type 'DispatchSourceTimer' in scope
486 |
487 |
488 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
489 |
490 |     func schedule(delay: TimeInterval?, repeating: TimeInterval?) {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:14: warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'TokenRequestError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |              `- warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'TokenRequestError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         case errorReceived(Response.Error)
 42 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:14: warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'EntriesWriteError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |              `- warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'EntriesWriteError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 41 |         case errorReceived(Response.Error)
 42 |     }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:213:34: error: cannot find 'DispatchQueue' in scope
211 |     private var accessToken: Token?
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
    |                                  `- error: cannot find 'DispatchQueue' in scope
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:214:28: error: cannot find 'DispatchQueue' in scope
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
    |                            `- error: cannot find 'DispatchQueue' in scope
215 |
216 |     let session: URLSession
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
216 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[11/12] Compiling GoogleCloudLogging GoogleCloudLogHandler.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:61:31: warning: static property 'globalMetadata' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |     /// - Warning: Do not abuse `globalMetadata` as it is added to each log entry of the app.
 60 |     ///
 61 |     @Atomic public static var globalMetadata: Logger.Metadata = [:]
    |                               |- warning: static property 'globalMetadata' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'globalMetadata' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'globalMetadata' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |
 63 |     /// Overridden log level of each `Logger`. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:67:31: warning: static property 'forcedLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 65 |     /// For example, you can set `.trace` in a particular app instance to debug some special error case or track its behavior.
 66 |     ///
 67 |     @Atomic public static var forcedLogLevel: Logger.Level?
    |                               |- warning: static property 'forcedLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'forcedLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'forcedLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /// Initial log level of `Logger`. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:73:31: warning: static property 'defaultLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 71 |     /// **Default** is `.info`.
 72 |     ///
 73 |     @Atomic public static var defaultLogLevel: Logger.Level = .info
    |                               |- warning: static property 'defaultLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'defaultLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'defaultLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 74 |
 75 |     /// The log level upon receipt of which an attempt is made to immediately `upload` local logs to the server. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:79:31: warning: static property 'signalingLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 77 |     /// **Default** is `.critical`.
 78 |     ///
 79 |     @Atomic public static var signalingLogLevel: Logger.Level? = .critical
    |                               |- warning: static property 'signalingLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'signalingLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'signalingLogLevel' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |
 81 |     /// Log entry upload size limit in bytes. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:87:31: warning: static property 'maxLogEntrySize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |     /// **Default** is equivalent to `256 KB`, which is the approximate Google Cloud limit.
 86 |     ///
 87 |     @Atomic public static var maxLogEntrySize: UInt? = 256_000
    |                               |- warning: static property 'maxLogEntrySize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'maxLogEntrySize' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'maxLogEntrySize' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 |     /// Log upload size limit in bytes. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:95:31: warning: static property 'maxLogSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 93 |     /// **Default** is equivalent to `10 MB`, which is the approximate Google Cloud limit.
 94 |     ///
 95 |     @Atomic public static var maxLogSize: UInt? = 10_000_000
    |                               |- warning: static property 'maxLogSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'maxLogSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'maxLogSize' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 |
 97 |     /// Logs retention period in seconds. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:103:31: warning: static property 'retentionPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     /// **Default** is equivalent to `30 days`, which is the default Google Cloud logs retention period.
102 |     ///
103 |     @Atomic public static var retentionPeriod: TimeInterval? = 3600 * 24 * 30
    |                               |- warning: static property 'retentionPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'retentionPeriod' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'retentionPeriod' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 |     /// Log upload interval in seconds. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:148:23: error: cannot find type 'DispatchSourceTimer' in scope
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
147 |
148 |     static let timer: DispatchSourceTimer = {
    |                       `- error: cannot find type 'DispatchSourceTimer' in scope
149 |         let timer = DispatchSource.makeTimerSource()
150 |         timer.setEventHandler(handler: uploadOnSchedule)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:111:31: warning: static property 'uploadInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |     /// **Default** is equivalent to `1 hour`.
110 |     ///
111 |     @Atomic public static var uploadInterval: TimeInterval? = 3600 {
    |                               |- warning: static property 'uploadInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'uploadInterval' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'uploadInterval' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |         didSet {
113 |             if logging != nil {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:127:31: warning: static property 'includeSourceLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 |     /// **Default** is `true`.
126 |     ///
127 |     @Atomic public static var includeSourceLocation = true
    |                               |- warning: static property 'includeSourceLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: convert 'includeSourceLocation' to a 'let' constant to make 'Sendable' shared state immutable
    |                               |- note: add '@MainActor' to make static property 'includeSourceLocation' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 |     /// Internal logger for GoogleCloudLogHandler. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:133:31: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
131 |     /// You can choose an appropriate `logLevel`.
132 |     ///
133 |     @Atomic public static var logger = Logger(label: "GoogleCloudLogHandler")
    |                               |- warning: static property 'logger' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 |
135 |     /// URL to the local logs storage. *Atomic*.
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:142:45: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |     /// **Default** is `/tmp/GoogleCloudLogEntries.jsonl`.
141 |     ///
142 |     @Atomic public internal(set) static var logFile = FileManager.default.temporaryDirectory.appendingPathComponent("GoogleCloudLogEntries", isDirectory: false).appendingPathExtension("jsonl")
    |                                             |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                             |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                                             |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 |     @Atomic static var logging: GoogleCloudLogging?
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:144:24: warning: static property 'logging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
142 |     @Atomic public internal(set) static var logFile = FileManager.default.temporaryDirectory.appendingPathComponent("GoogleCloudLogEntries", isDirectory: false).appendingPathExtension("jsonl")
143 |
144 |     @Atomic static var logging: GoogleCloudLogging?
    |                        |- warning: static property 'logging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'logging' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'logging' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:146:34: error: cannot find 'DispatchQueue' in scope
144 |     @Atomic static var logging: GoogleCloudLogging?
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
    |                                  `- error: cannot find 'DispatchQueue' in scope
147 |
148 |     static let timer: DispatchSourceTimer = {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 23 |
 24 | /// Customizable SwiftLog logging backend for Google Cloud Logging via REST API v2 with offline functionality.
 25 | public struct GoogleCloudLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 26 |
 27 |     /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:25: error: cannot find 'DispatchQueue' in scope
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:99: error: cannot infer contextual base in reference to member 'concurrent'
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'concurrent'
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:488:11: error: cannot find type 'DispatchSourceTimer' in scope
486 |
487 |
488 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
489 |
490 |     func schedule(delay: TimeInterval?, repeating: TimeInterval?) {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:214:9: error: cannot find 'DispatchQueue' in scope
212 |         upload()
213 |
214 |         DispatchQueue.main.async { // Async in case setup before LoggingSystem bootstrap.
    |         `- error: cannot find 'DispatchQueue' in scope
215 |             if isFirstSetup {
216 |                 logger.info("GoogleCloudLogHandler has been setup", metadata: [MetadataKey.serviceAccountCredentials: "\(url)", MetadataKey.logFile: "\(logFile)"])
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:236:9: error: cannot find 'DispatchQueue' in scope
234 |         self.label = label
235 |
236 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
237 |             Self.logger.trace("GoogleCloudLogHandler has been initialized", metadata: [MetadataKey.label: "\(label)"])
238 |         }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:300:31: error: 'nil' requires a contextual type
298 |         assert(logging != nil, "App must setup GoogleCloudLogHandler before upload")
299 |
300 |         timer.schedule(delay: nil, repeating: uploadInterval)
    |                               `- error: 'nil' requires a contextual type
301 |     }
302 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:377:23: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
375 |                             logger.debug("No overflowed or expired logs to delete")
376 |                         }
377 |                     } catch {
    |                       `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
378 |                         logger.error("Unable to delete overflowed or expired logs", metadata: [MetadataKey.error: "\(error)"])
379 |                     }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:442:35: error: cannot infer contextual base in reference to member 'barrier'
440 |     public var wrappedValue: T {
441 |         get { queue.sync { value } }
442 |         set { queue.async(flags: .barrier) { self.value = newValue } }
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
443 |     }
444 |     public init(wrappedValue: T) {
[12/12] Compiling GoogleCloudLogging GoogleCloudLogging.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:14: warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'TokenRequestError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |              `- warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'TokenRequestError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         case errorReceived(Response.Error)
 42 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:14: warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'EntriesWriteError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |              `- warning: associated value 'noDataReceived' of 'Sendable'-conforming enum 'EntriesWriteError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 41 |         case errorReceived(Response.Error)
 42 |     }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:213:34: error: cannot find 'DispatchQueue' in scope
211 |     private var accessToken: Token?
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
    |                                  `- error: cannot find 'DispatchQueue' in scope
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:214:28: error: cannot find 'DispatchQueue' in scope
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
    |                            `- error: cannot find 'DispatchQueue' in scope
215 |
216 |     let session: URLSession
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
216 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:132:34: error: cannot find type 'CFError' in scope
130 |
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
    |                                  `- error: cannot find type 'CFError' in scope
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:31: error: cannot find 'kSecAttrKeyType' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                               `- error: cannot find 'kSecAttrKeyType' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:48: error: cannot find 'kSecAttrKeyTypeRSA' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:68: error: cannot find 'kSecAttrKeyClass' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                    `- error: cannot find 'kSecAttrKeyClass' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:86: error: cannot find 'kSecAttrKeyClassPrivate' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                      `- error: cannot find 'kSecAttrKeyClassPrivate' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:111: error: cannot find 'kSecAttrKeySizeInBits' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                                               `- error: cannot find 'kSecAttrKeySizeInBits' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:142: error: cannot find type 'CFDictionary' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                                                                              `- error: cannot find type 'CFDictionary' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:36: error: cannot find 'SecKeyCreateWithData' in scope
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
    |                                    `- error: cannot find 'SecKeyCreateWithData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:64: error: cannot find type 'CFData' in scope
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
    |                                                                `- error: cannot find type 'CFData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:35: error: cannot find 'SecKeyCreateSignature' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                   `- error: cannot find 'SecKeyCreateSignature' in scope
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:113: error: cannot find type 'CFData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                                                                                                 `- error: cannot find type 'CFData' in scope
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:70: error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                                                      `- error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:227:30: error: cannot find 'OperationQueue' in scope
225 |         serviceAccountCredentials = credentials
226 |
227 |         let operationQueue = OperationQueue()
    |                              `- error: cannot find 'OperationQueue' in scope
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:46: error: cannot infer contextual base in reference to member 'ephemeral'
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                                              `- error: cannot infer contextual base in reference to member 'ephemeral'
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:67: error: 'nil' requires a contextual type
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                                                                   `- error: 'nil' requires a contextual type
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:240:27: error: cannot find 'URLRequest' in scope
238 |                 return
239 |             }
240 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
241 |             request.httpMethod = "POST"
242 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:272:45: error: cannot find 'DispatchSemaphore' in scope
270 |             } else {
271 |                 let tokenReference = Referenced<Token>()
272 |                 let tokenRequestSemaphore = DispatchSemaphore(value: 0)
    |                                             `- error: cannot find 'DispatchSemaphore' in scope
273 |                 self.requestToken { result in
274 |                     switch result {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:305:27: error: cannot find 'URLRequest' in scope
303 |             }
304 |             let url = URL(string: "https://logging.googleapis.com/v2/entries:write")!
305 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
306 |             request.httpMethod = "POST"
307 |             request.setValue("Bearer \(token.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:29: error: cannot find 'applyingTransform' in scope
385 |
386 |     func safeLogId() -> String {
387 |         let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
    |                             `- error: cannot find 'applyingTransform' in scope
388 |             .folding(options: [.diacriticInsensitive, .widthInsensitive], locale: .init(identifier: "en_US"))
389 |             .replacingOccurrences(of: " ", with: "_")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:48: error: cannot infer contextual base in reference to member 'toLatin'
385 |
386 |     func safeLogId() -> String {
387 |         let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
    |                                                `- error: cannot infer contextual base in reference to member 'toLatin'
388 |             .folding(options: [.diacriticInsensitive, .widthInsensitive], locale: .init(identifier: "en_US"))
389 |             .replacingOccurrences(of: " ", with: "_")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/6] Compiling Logging Locks.swift
[3/6] Compiling Logging MetadataProvider.swift
[4/6] Emitting module Logging
[5/6] Compiling Logging Logging.swift
[6/6] Compiling Logging LogHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Emitting module GoogleCloudLogging
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:148:23: error: cannot find type 'DispatchSourceTimer' in scope
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
147 |
148 |     static let timer: DispatchSourceTimer = {
    |                       `- error: cannot find type 'DispatchSourceTimer' in scope
149 |         let timer = DispatchSource.makeTimerSource()
150 |         timer.setEventHandler(handler: uploadOnSchedule)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:146:34: error: cannot find 'DispatchQueue' in scope
144 |     @Atomic static var logging: GoogleCloudLogging?
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
    |                                  `- error: cannot find 'DispatchQueue' in scope
147 |
148 |     static let timer: DispatchSourceTimer = {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 23 |
 24 | /// Customizable SwiftLog logging backend for Google Cloud Logging via REST API v2 with offline functionality.
 25 | public struct GoogleCloudLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 26 |
 27 |     /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:25: error: cannot find 'DispatchQueue' in scope
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:99: error: cannot infer contextual base in reference to member 'concurrent'
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'concurrent'
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:488:11: error: cannot find type 'DispatchSourceTimer' in scope
486 |
487 |
488 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
489 |
490 |     func schedule(delay: TimeInterval?, repeating: TimeInterval?) {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         case errorReceived(Response.Error)
 42 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:213:34: error: cannot find 'DispatchQueue' in scope
211 |     private var accessToken: Token?
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
    |                                  `- error: cannot find 'DispatchQueue' in scope
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:214:28: error: cannot find 'DispatchQueue' in scope
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
    |                            `- error: cannot find 'DispatchQueue' in scope
215 |
216 |     let session: URLSession
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
216 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[9/10] Compiling GoogleCloudLogging GoogleCloudLogging.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     enum TokenRequestError: Error {
 31 |         case invalidURL(String)
 32 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         case errorReceived(Response.Error)
 34 |         case wrongTokenType(Token)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         case noEntriesToSend
 39 |         case tokenExpired(Token)
 40 |         case noDataReceived(URLResponse?)
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         case errorReceived(Response.Error)
 42 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:213:34: error: cannot find 'DispatchQueue' in scope
211 |     private var accessToken: Token?
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
    |                                  `- error: cannot find 'DispatchQueue' in scope
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:214:28: error: cannot find 'DispatchQueue' in scope
212 |
213 |     let completionHandlerQueue = DispatchQueue(label: "GoogleCloudLogging.CompletionHandler")
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
    |                            `- error: cannot find 'DispatchQueue' in scope
215 |
216 |     let session: URLSession
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     let accessTokenQueue = DispatchQueue(label: "GoogleCloudLogging.AccessToken")
215 |
216 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:132:34: error: cannot find type 'CFError' in scope
130 |
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
    |                                  `- error: cannot find type 'CFError' in scope
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:31: error: cannot find 'kSecAttrKeyType' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                               `- error: cannot find 'kSecAttrKeyType' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:48: error: cannot find 'kSecAttrKeyTypeRSA' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:68: error: cannot find 'kSecAttrKeyClass' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                    `- error: cannot find 'kSecAttrKeyClass' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:86: error: cannot find 'kSecAttrKeyClassPrivate' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                      `- error: cannot find 'kSecAttrKeyClassPrivate' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:111: error: cannot find 'kSecAttrKeySizeInBits' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                                               `- error: cannot find 'kSecAttrKeySizeInBits' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:142: error: cannot find type 'CFDictionary' in scope
131 |         static func sign(_ data: Data, with key: Data) throws -> Data {
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
    |                                                                                                                                              `- error: cannot find type 'CFDictionary' in scope
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
135 |                 throw error!.takeRetainedValue() as Error
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:36: error: cannot find 'SecKeyCreateWithData' in scope
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
    |                                    `- error: cannot find 'SecKeyCreateWithData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:64: error: cannot find type 'CFData' in scope
132 |             var error: Unmanaged<CFError>?
133 |             let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
134 |             guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
    |                                                                `- error: cannot find type 'CFData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:35: error: cannot find 'SecKeyCreateSignature' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                   `- error: cannot find 'SecKeyCreateSignature' in scope
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:113: error: cannot find type 'CFData' in scope
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                                                                                                 `- error: cannot find type 'CFData' in scope
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:70: error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
135 |                 throw error!.takeRetainedValue() as Error
136 |             }
137 |             guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
    |                                                                      `- error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
138 |                 throw error!.takeRetainedValue() as Error
139 |             }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:227:30: error: cannot find 'OperationQueue' in scope
225 |         serviceAccountCredentials = credentials
226 |
227 |         let operationQueue = OperationQueue()
    |                              `- error: cannot find 'OperationQueue' in scope
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:46: error: cannot infer contextual base in reference to member 'ephemeral'
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                                              `- error: cannot infer contextual base in reference to member 'ephemeral'
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:67: error: 'nil' requires a contextual type
227 |         let operationQueue = OperationQueue()
228 |         operationQueue.underlyingQueue = completionHandlerQueue
229 |         session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
    |                                                                   `- error: 'nil' requires a contextual type
230 |     }
231 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:240:27: error: cannot find 'URLRequest' in scope
238 |                 return
239 |             }
240 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
241 |             request.httpMethod = "POST"
242 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:272:45: error: cannot find 'DispatchSemaphore' in scope
270 |             } else {
271 |                 let tokenReference = Referenced<Token>()
272 |                 let tokenRequestSemaphore = DispatchSemaphore(value: 0)
    |                                             `- error: cannot find 'DispatchSemaphore' in scope
273 |                 self.requestToken { result in
274 |                     switch result {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:305:27: error: cannot find 'URLRequest' in scope
303 |             }
304 |             let url = URL(string: "https://logging.googleapis.com/v2/entries:write")!
305 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
306 |             request.httpMethod = "POST"
307 |             request.setValue("Bearer \(token.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:29: error: cannot find 'applyingTransform' in scope
385 |
386 |     func safeLogId() -> String {
387 |         let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
    |                             `- error: cannot find 'applyingTransform' in scope
388 |             .folding(options: [.diacriticInsensitive, .widthInsensitive], locale: .init(identifier: "en_US"))
389 |             .replacingOccurrences(of: " ", with: "_")
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:48: error: cannot infer contextual base in reference to member 'toLatin'
385 |
386 |     func safeLogId() -> String {
387 |         let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
    |                                                `- error: cannot infer contextual base in reference to member 'toLatin'
388 |             .folding(options: [.diacriticInsensitive, .widthInsensitive], locale: .init(identifier: "en_US"))
389 |             .replacingOccurrences(of: " ", with: "_")
[10/10] Compiling GoogleCloudLogging GoogleCloudLogHandler.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:148:23: error: cannot find type 'DispatchSourceTimer' in scope
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
147 |
148 |     static let timer: DispatchSourceTimer = {
    |                       `- error: cannot find type 'DispatchSourceTimer' in scope
149 |         let timer = DispatchSource.makeTimerSource()
150 |         timer.setEventHandler(handler: uploadOnSchedule)
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:146:34: error: cannot find 'DispatchQueue' in scope
144 |     @Atomic static var logging: GoogleCloudLogging?
145 |
146 |     static let fileHandleQueue = DispatchQueue(label: "GoogleCloudLogHandler.FileHandle")
    |                                  `- error: cannot find 'DispatchQueue' in scope
147 |
148 |     static let timer: DispatchSourceTimer = {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 23 |
 24 | /// Customizable SwiftLog logging backend for Google Cloud Logging via REST API v2 with offline functionality.
 25 | public struct GoogleCloudLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 26 |
 27 |     /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:25: error: cannot find 'DispatchQueue' in scope
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:438:99: error: cannot infer contextual base in reference to member 'concurrent'
436 | public class Atomic<T> {
437 |
438 |     private let queue = DispatchQueue(label: "GoogleCloudLogHandler.AtomicProperty", attributes: .concurrent)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'concurrent'
439 |     private var value: T
440 |     public var wrappedValue: T {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:488:11: error: cannot find type 'DispatchSourceTimer' in scope
486 |
487 |
488 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
489 |
490 |     func schedule(delay: TimeInterval?, repeating: TimeInterval?) {
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:214:9: error: cannot find 'DispatchQueue' in scope
212 |         upload()
213 |
214 |         DispatchQueue.main.async { // Async in case setup before LoggingSystem bootstrap.
    |         `- error: cannot find 'DispatchQueue' in scope
215 |             if isFirstSetup {
216 |                 logger.info("GoogleCloudLogHandler has been setup", metadata: [MetadataKey.serviceAccountCredentials: "\(url)", MetadataKey.logFile: "\(logFile)"])
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:236:9: error: cannot find 'DispatchQueue' in scope
234 |         self.label = label
235 |
236 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
237 |             Self.logger.trace("GoogleCloudLogHandler has been initialized", metadata: [MetadataKey.label: "\(label)"])
238 |         }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:300:31: error: 'nil' requires a contextual type
298 |         assert(logging != nil, "App must setup GoogleCloudLogHandler before upload")
299 |
300 |         timer.schedule(delay: nil, repeating: uploadInterval)
    |                               `- error: 'nil' requires a contextual type
301 |     }
302 |
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:377:23: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
375 |                             logger.debug("No overflowed or expired logs to delete")
376 |                         }
377 |                     } catch {
    |                       `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
378 |                         logger.error("Unable to delete overflowed or expired logs", metadata: [MetadataKey.error: "\(error)"])
379 |                     }
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:442:35: error: cannot infer contextual base in reference to member 'barrier'
440 |     public var wrappedValue: T {
441 |         get { queue.sync { value } }
442 |         set { queue.async(flags: .barrier) { self.value = newValue } }
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
443 |     }
444 |     public init(wrappedValue: T) {
BUILD FAILURE 6.1 wasm