Build Information
Failed to build GoogleCloudLogging, reference master (8787f7), with Swift 6.3 for Wasm on 13 Apr 2026 05:20:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DnV1eX/GoogleCloudLogging.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/DnV1eX/GoogleCloudLogging
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8787f77 Update README.md
Cloned https://github.com/DnV1eX/GoogleCloudLogging.git
Revision (git rev-parse @):
8787f77000cdd89c080cb6ac0b71552805ce86f4
SUCCESS checkout https://github.com/DnV1eX/GoogleCloudLogging.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/DnV1eX/GoogleCloudLogging.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-log.git
[1/6521] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.53s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (1.07s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Logging MetadataProvider.swift
[5/9] Emitting module Logging
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging LogHandler.swift
[8/9] Compiling Logging LogEvent.swift
[9/9] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] 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:149:21: error: cannot find 'DispatchSource' in scope
147 |
148 | static let timer: DispatchSourceTimer = {
149 | let timer = DispatchSource.makeTimerSource()
| `- error: cannot find 'DispatchSource' in scope
150 | timer.setEventHandler(handler: uploadOnSchedule)
151 | timer.activate()
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
26 |
27 | /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
/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
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[12/13] 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: "_")
[13/13] 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:149:21: error: cannot find 'DispatchSource' in scope
147 |
148 | static let timer: DispatchSourceTimer = {
149 | let timer = DispatchSource.makeTimerSource()
| `- error: cannot find 'DispatchSource' in scope
150 | timer.setEventHandler(handler: uploadOnSchedule)
151 | timer.activate()
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift:25:15: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
26 |
27 | /// Predefined metadata key strings.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
/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) {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.3 wasm