Build Information
Failed to build pingx, reference main (3fd821
), with Swift 5.10 for Linux on 13 Jul 2025 16:24:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shineRR/pingx.git
Reference: main
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/shineRR/pingx
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3fd8211 [IMP-3] Migrate pinger to async/await (#8)
Cloned https://github.com/shineRR/pingx.git
Revision (git rev-parse @):
3fd8211bde0ce53e33ae9c27f8807a379ba78d21
SUCCESS checkout https://github.com/shineRR/pingx.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/shineRR/pingx.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:c30bb8beee7254e839cc0142f4ae78578b8fc8e8159324cc3637097cc1b395b6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/32] Emitting module pingx
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:36:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:37:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:10: error: expected '{' in body of function declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:154:19: error: cannot find type 'CFSocketError' in scope
private extension CFSocketError {
^~~~~~~~~~~~~
[4/36] Compiling pingx ICMPResponseValidationError.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:10: error: expected '{' in body of function declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
[5/36] Compiling pingx ICMPPackageExtractor.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:10: error: expected '{' in body of function declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
[6/36] Compiling pingx SafeCheckedContinuation.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:10: error: expected '{' in body of function declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
[7/36] Compiling pingx AsyncPingerResult.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:10: error: expected '{' in body of function declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
[8/36] Compiling pingx Interval.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[9/36] Compiling pingx ICMPHeader.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[10/36] Compiling pingx ICMPPacket.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[11/36] Compiling pingx ICMPType.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[12/36] Compiling pingx AsyncPinger.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:154:19: error: cannot find type 'CFSocketError' in scope
private extension CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:101:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:102:38: error: cannot find type 'CFData' in scope
data: icmpHeader.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:40: error: incorrect argument label in call (have 'returning:', expected 'throwing:')
safeContinuation.resume(returning: .failure(.timeout))
^~~~~~~~~~
throwing
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:53: error: type 'Never' has no member 'failure'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:62: error: cannot infer contextual base in reference to member 'timeout'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:97:36: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: .seconds(CFAbsoluteTimeGetCurrent() - icmpPacket.icmpHeader.payload.timestamp),
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'T' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:37: note: 'T' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'E' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:40: note: 'E' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: note: explicitly specify the generic arguments to fix this issue
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
<Any, <#E: Error#>>
[13/36] Compiling pingx Pinger.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:154:19: error: cannot find type 'CFSocketError' in scope
private extension CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:101:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:102:38: error: cannot find type 'CFData' in scope
data: icmpHeader.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:40: error: incorrect argument label in call (have 'returning:', expected 'throwing:')
safeContinuation.resume(returning: .failure(.timeout))
^~~~~~~~~~
throwing
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:53: error: type 'Never' has no member 'failure'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:62: error: cannot infer contextual base in reference to member 'timeout'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:97:36: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: .seconds(CFAbsoluteTimeGetCurrent() - icmpPacket.icmpHeader.payload.timestamp),
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'T' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:37: note: 'T' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'E' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:40: note: 'E' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: note: explicitly specify the generic arguments to fix this issue
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
<Any, <#E: Error#>>
[14/36] Compiling pingx AnyPingSequence.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:154:19: error: cannot find type 'CFSocketError' in scope
private extension CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:101:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:102:38: error: cannot find type 'CFData' in scope
data: icmpHeader.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:40: error: incorrect argument label in call (have 'returning:', expected 'throwing:')
safeContinuation.resume(returning: .failure(.timeout))
^~~~~~~~~~
throwing
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:53: error: type 'Never' has no member 'failure'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:62: error: cannot infer contextual base in reference to member 'timeout'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:97:36: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: .seconds(CFAbsoluteTimeGetCurrent() - icmpPacket.icmpHeader.payload.timestamp),
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'T' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:37: note: 'T' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'E' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:40: note: 'E' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: note: explicitly specify the generic arguments to fix this issue
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
<Any, <#E: Error#>>
[15/36] Compiling pingx PingSequence.swift
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:154:19: error: cannot find type 'CFSocketError' in scope
private extension CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: consecutive declarations on a line must be separated by ';'
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
;
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:53:63: error: expected declaration
func validateICMPPackage(_ icmpPackage: ICMPPacket) throws(ICMPResponseValidationError) {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/ICMPPackageExtractor.swift:52:9: note: in extension of 'ICMPPacketExtractor'
private extension ICMPPacketExtractor {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:101:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Pingers/AsyncPinger.swift:102:38: error: cannot find type 'CFData' in scope
data: icmpHeader.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: expected ',' separator
func resume(returning value: sending T) {
^
,
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:42: error: unnamed parameters must be written with the empty name '_'
func resume(returning value: sending T) {
^
_:
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:36:34: error: cannot find type 'sending' in scope
func resume(returning value: sending T) {
^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:40: error: incorrect argument label in call (have 'returning:', expected 'throwing:')
safeContinuation.resume(returning: .failure(.timeout))
^~~~~~~~~~
throwing
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:53: error: type 'Never' has no member 'failure'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:79:62: error: cannot infer contextual base in reference to member 'timeout'
safeContinuation.resume(returning: .failure(.timeout))
~^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:97:36: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: .seconds(CFAbsoluteTimeGetCurrent() - icmpPacket.icmpHeader.payload.timestamp),
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'T' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:37: note: 'T' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: error: generic parameter 'E' could not be inferred
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Helpers/SafeCheckedContinuation.swift:27:40: note: 'E' declared as parameter to type 'SafeCheckedContinuation'
final class SafeCheckedContinuation<T, E: Error>: @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Sequence/PingSequence.swift:71:36: note: explicitly specify the generic arguments to fix this issue
let safeContinuation = SafeCheckedContinuation(continuation: continuation)
^
<Any, <#E: Error#>>
[16/36] Compiling pingx String+Extensions.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:30:23: error: value of type 'sockaddr_in' has no member 'sin_len'
socketAddress.sin_len = UInt8(MemoryLayout<sockaddr_in>.size)
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:31:36: error: cannot assign value of type 'UInt8' to type 'sa_family_t' (aka 'UInt16')
socketAddress.sin_family = UInt8(AF_INET)
^~~~~~~~~~~~~~
sa_family_t( )
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:35:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:36:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:38:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:39:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:40:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:42:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:43:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:47:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:55:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:62:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:68:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:62: error: cannot find 'kCFAllocatorDefault' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:92: error: cannot infer contextual base in reference to member 'zero'
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:79:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:80:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:82:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: error: generic parameter 'OutputType' could not be inferred
return PingxSocket(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:32:25: note: 'OutputType' declared as parameter to type 'PingxSocket'
final class PingxSocket<OutputType: AnyObject>: PingxSocketProtocol, @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocket(
^
<AnyObject>
[17/36] Compiling pingx ICMPHeaderFactory.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:30:23: error: value of type 'sockaddr_in' has no member 'sin_len'
socketAddress.sin_len = UInt8(MemoryLayout<sockaddr_in>.size)
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:31:36: error: cannot assign value of type 'UInt8' to type 'sa_family_t' (aka 'UInt16')
socketAddress.sin_family = UInt8(AF_INET)
^~~~~~~~~~~~~~
sa_family_t( )
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:35:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:36:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:38:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:39:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:40:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:42:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:43:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:47:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:55:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:62:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:68:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:62: error: cannot find 'kCFAllocatorDefault' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:92: error: cannot infer contextual base in reference to member 'zero'
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:79:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:80:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:82:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: error: generic parameter 'OutputType' could not be inferred
return PingxSocket(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:32:25: note: 'OutputType' declared as parameter to type 'PingxSocket'
final class PingxSocket<OutputType: AnyObject>: PingxSocketProtocol, @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocket(
^
<AnyObject>
[18/36] Compiling pingx SocketFactory.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:30:23: error: value of type 'sockaddr_in' has no member 'sin_len'
socketAddress.sin_len = UInt8(MemoryLayout<sockaddr_in>.size)
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:31:36: error: cannot assign value of type 'UInt8' to type 'sa_family_t' (aka 'UInt16')
socketAddress.sin_family = UInt8(AF_INET)
^~~~~~~~~~~~~~
sa_family_t( )
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:35:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:36:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:38:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:39:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:40:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:42:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:43:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:47:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:55:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:62:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:68:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:62: error: cannot find 'kCFAllocatorDefault' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:92: error: cannot infer contextual base in reference to member 'zero'
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:79:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:80:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:82:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: error: generic parameter 'OutputType' could not be inferred
return PingxSocket(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:32:25: note: 'OutputType' declared as parameter to type 'PingxSocket'
final class PingxSocket<OutputType: AnyObject>: PingxSocketProtocol, @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocket(
^
<AnyObject>
[19/36] Compiling pingx Atomic.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:30:23: error: value of type 'sockaddr_in' has no member 'sin_len'
socketAddress.sin_len = UInt8(MemoryLayout<sockaddr_in>.size)
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:31:36: error: cannot assign value of type 'UInt8' to type 'sa_family_t' (aka 'UInt16')
socketAddress.sin_family = UInt8(AF_INET)
^~~~~~~~~~~~~~
sa_family_t( )
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:35:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:36:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:38:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:39:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:40:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:42:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:43:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:47:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:55:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:51:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:62:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:68:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:62: error: cannot find 'kCFAllocatorDefault' in scope
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:75:92: error: cannot infer contextual base in reference to member 'zero'
guard let socketSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, socket, .zero) else {
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:79:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:80:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:82:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: error: generic parameter 'OutputType' could not be inferred
return PingxSocket(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:32:25: note: 'OutputType' declared as parameter to type 'PingxSocket'
final class PingxSocket<OutputType: AnyObject>: PingxSocketProtocol, @unchecked Sendable {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/SocketFactory.swift:85:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocket(
^
<AnyObject>
[20/36] Compiling pingx CommandBlock.swift
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[21/36] Compiling pingx IPv4Address.swift
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[22/36] Compiling pingx IPHeader.swift
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[23/36] Compiling pingx PingxIdentifier.swift
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[24/36] Compiling pingx Response.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:36:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:37:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:68:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:69:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[25/36] Compiling pingx PingxSocket.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:36:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:37:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:68:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:69:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[26/36] Compiling pingx PingConfiguration.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:36:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:37:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:68:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:69:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[27/36] Compiling pingx AsyncPingerError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:29:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:36:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:37:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:43:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:44:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:74: error: cannot find type 'CFSocketError' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:24: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:38: error: cannot find type 'CFData' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:58:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:68:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/PingxSocket.swift:69:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[28/36] Compiling pingx ICMPChecksum.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[29/36] Compiling pingx IPv4AddressStringConverter.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[30/36] Compiling pingx IPv4AddressConverterError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[31/36] Compiling pingx IPv4AddressConverter.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[32/36] Compiling pingx Result+Extensions.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[33/36] Compiling pingx Payload.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[34/36] Compiling pingx Request.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[35/36] Compiling pingx PingError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
[36/36] Compiling pingx PingResult.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:32:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:38:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Identifier/PingxIdentifier.swift:32:22: error: cannot find 'CFSwapInt16HostToBig' in scope
id: UInt16 = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux