Build Information
Failed to build pingx, reference 1.0.9 (66c254
), with Swift 5.9 for Linux on 3 Jan 2025 20:16:51 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.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shineRR/pingx.git
Reference: 1.0.9
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
* tag 1.0.9 -> FETCH_HEAD
HEAD is now at 66c2541 [IMP-1] Transitioning to Swift Testing - Part 2 (#7)
Cloned https://github.com/shineRR/pingx.git
Revision (git rev-parse @):
66c2541918d2a329458e8acd365ef5beb2947851
SUCCESS checkout https://github.com/shineRR/pingx.git at 1.0.9
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:e6feefcc5d5d2f301fe47477cfe0928fc3b12c59579fdacf1d387095b6fee662
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/36] Emitting module pingx
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
[2/40] Compiling pingx PingerDelegate.swift
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:86:44: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard outgoingRequests[request.id] == nil else {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:96:38: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests[request.id] = request
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:105:64: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:111:56: error: cannot convert value of type 'Request.ID' (aka 'ObjectIdentifier') to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: requestId)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:147:58: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:172:28: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: (CFAbsoluteTimeGetCurrent() - package.icmpHeader.payload.timestamp) * 1000
^~~~~~~~~~~~~~~~~~~~~~~~
[3/40] Compiling pingx ICMPResponseValidationError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:86:44: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard outgoingRequests[request.id] == nil else {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:96:38: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests[request.id] = request
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:105:64: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:111:56: error: cannot convert value of type 'Request.ID' (aka 'ObjectIdentifier') to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: requestId)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:147:58: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:172:28: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: (CFAbsoluteTimeGetCurrent() - package.icmpHeader.payload.timestamp) * 1000
^~~~~~~~~~~~~~~~~~~~~~~~
[4/40] Compiling pingx PingerError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:86:44: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard outgoingRequests[request.id] == nil else {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:96:38: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests[request.id] = request
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:105:64: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:111:56: error: cannot convert value of type 'Request.ID' (aka 'ObjectIdentifier') to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: requestId)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:147:58: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:172:28: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: (CFAbsoluteTimeGetCurrent() - package.icmpHeader.payload.timestamp) * 1000
^~~~~~~~~~~~~~~~~~~~~~~~
[5/40] Compiling pingx ContinuousPinger.swift
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:86:44: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard outgoingRequests[request.id] == nil else {
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:96:38: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests[request.id] = request
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:105:64: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:111:56: error: cannot convert value of type 'Request.ID' (aka 'ObjectIdentifier') to expected argument type 'UInt16'
self?.outgoingRequests.removeValue(forKey: requestId)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:147:58: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
outgoingRequests.removeValue(forKey: request.id)
^
/host/spi-builder-workspace/Sources/pingx/Pinger/Impl/ContinuousPinger.swift:172:28: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
duration: (CFAbsoluteTimeGetCurrent() - package.icmpHeader.payload.timestamp) * 1000
^~~~~~~~~~~~~~~~~~~~~~~~
[6/40] Compiling pingx PingxSocket.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:63:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:64:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
[7/40] Compiling pingx PingxSocketImpl.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:63:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:64:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
[8/40] Compiling pingx PingxTimer.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:63:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:64:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
[9/40] Compiling pingx PingxDispatchSourceTimer.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:63:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:64:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
[10/40] Compiling pingx PacketSender.swift
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Impl/PingxSocketImpl.swift:35:17: error: cannot find type 'CFSocket' in scope
let socket: CFSocket
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:36:23: error: cannot find type 'CFRunLoopSource' in scope
let socketSource: CFRunLoopSource
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:53: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/Impl/PingxSocketImpl.swift:63:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
CFRunLoopSourceInvalidate(socketSource)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:64:9: error: cannot find 'CFSocketInvalidate' in scope
CFSocketInvalidate(socket)
^~~~~~~~~~~~~~~~~~
[11/40] Compiling pingx ICMPChecksum.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Checksum/Impl/ICMPChecksum.swift:62:33: error: cannot find type 'CFAbsoluteTime' in scope
count: MemoryLayout<CFAbsoluteTime>.size
^~~~~~~~~~~~~~
[12/40] Compiling pingx IPv4AddressConverterApi.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Checksum/Impl/ICMPChecksum.swift:62:33: error: cannot find type 'CFAbsoluteTime' in scope
count: MemoryLayout<CFAbsoluteTime>.size
^~~~~~~~~~~~~~
[13/40] Compiling pingx IPv4AddressConverterError.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Checksum/Impl/ICMPChecksum.swift:62:33: error: cannot find type 'CFAbsoluteTime' in scope
count: MemoryLayout<CFAbsoluteTime>.size
^~~~~~~~~~~~~~
[14/40] Compiling pingx IPv4AddressConverter.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Checksum/Impl/ICMPChecksum.swift:62:33: error: cannot find type 'CFAbsoluteTime' in scope
count: MemoryLayout<CFAbsoluteTime>.size
^~~~~~~~~~~~~~
[15/40] Compiling pingx DispatchQueue+Extensions.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Checksum/Impl/ICMPChecksum.swift:62:33: error: cannot find type 'CFAbsoluteTime' in scope
count: MemoryLayout<CFAbsoluteTime>.size
^~~~~~~~~~~~~~
[16/40] Compiling pingx TimerFactory.swift
[17/40] Compiling pingx TimerFactoryImpl.swift
[18/40] Compiling pingx Atomic.swift
[19/40] Compiling pingx CommandBlock.swift
[20/40] Compiling pingx FatalError.swift
[21/40] Compiling pingx ICMPType.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
[22/40] Compiling pingx Packet.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
[23/40] Compiling pingx Payload.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
[24/40] Compiling pingx Request.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
[25/40] Compiling pingx Response.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
[26/40] Compiling pingx IPv4Address.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[27/40] Compiling pingx IPHeader.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[28/40] Compiling pingx PacketType.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[29/40] Compiling pingx ICMPHeader.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[30/40] Compiling pingx ICMPPacket.swift
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:37:20: error: cannot find type 'CFAbsoluteTime' in scope
let timestamp: CFAbsoluteTime
^~~~~~~~~~~~~~
[31/40] Compiling pingx String+Extensions.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:33: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:34: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/Factory/PacketFactory/Impl/PacketFactoryImpl.swift:47:29: error: cannot find 'CFSwapInt16HostToBig' in scope
sequenceNumber: CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:32:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:33:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:35:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:36:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:37:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:39:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:40:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:44:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:52:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:59:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:65:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:72:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:73:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:75:14: error: cannot infer contextual base in reference to member 'zero'
.zero
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:78:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:79:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:81:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: error: generic parameter 'T' could not be inferred
return PingxSocketImpl(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:27:29: note: 'T' declared as parameter to type 'PingxSocketImpl'
final class PingxSocketImpl<T: AnyObject>: PingxSocket {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocketImpl(
^
<AnyObject>
[32/40] Compiling pingx PacketFactory.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:33: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:34: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/Factory/PacketFactory/Impl/PacketFactoryImpl.swift:47:29: error: cannot find 'CFSwapInt16HostToBig' in scope
sequenceNumber: CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:32:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:33:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:35:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:36:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:37:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:39:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:40:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:44:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:52:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:59:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:65:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:72:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:73:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:75:14: error: cannot infer contextual base in reference to member 'zero'
.zero
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:78:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:79:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:81:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: error: generic parameter 'T' could not be inferred
return PingxSocketImpl(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:27:29: note: 'T' declared as parameter to type 'PingxSocketImpl'
final class PingxSocketImpl<T: AnyObject>: PingxSocket {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocketImpl(
^
<AnyObject>
[33/40] Compiling pingx PacketFactoryImpl.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:33: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:34: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/Factory/PacketFactory/Impl/PacketFactoryImpl.swift:47:29: error: cannot find 'CFSwapInt16HostToBig' in scope
sequenceNumber: CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:32:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:33:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:35:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:36:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:37:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:39:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:40:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:44:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:52:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:59:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:65:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:72:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:73:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:75:14: error: cannot infer contextual base in reference to member 'zero'
.zero
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:78:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:79:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:81:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: error: generic parameter 'T' could not be inferred
return PingxSocketImpl(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:27:29: note: 'T' declared as parameter to type 'PingxSocketImpl'
final class PingxSocketImpl<T: AnyObject>: PingxSocket {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocketImpl(
^
<AnyObject>
[34/40] Compiling pingx SocketFactory.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:33: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:34: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/Factory/PacketFactory/Impl/PacketFactoryImpl.swift:47:29: error: cannot find 'CFSwapInt16HostToBig' in scope
sequenceNumber: CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:32:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:33:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:35:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:36:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:37:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:39:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:40:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:44:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:52:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:59:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:65:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:72:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:73:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:75:14: error: cannot infer contextual base in reference to member 'zero'
.zero
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:78:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:79:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:81:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: error: generic parameter 'T' could not be inferred
return PingxSocketImpl(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:27:29: note: 'T' declared as parameter to type 'PingxSocketImpl'
final class PingxSocketImpl<T: AnyObject>: PingxSocket {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocketImpl(
^
<AnyObject>
[35/40] Compiling pingx SocketFactoryImpl.swift
/host/spi-builder-workspace/Sources/pingx/Extensions/String+Extensions.swift:33: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:34: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/Factory/PacketFactory/Impl/PacketFactoryImpl.swift:47:29: error: cannot find 'CFSwapInt16HostToBig' in scope
sequenceNumber: CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max)),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:32:23: error: cannot find 'CFSocketContext' in scope
var context = CFSocketContext(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:33:23: error: cannot infer contextual base in reference to member 'zero'
version: .zero,
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:35:21: error: 'nil' requires a contextual type
retain: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:36:22: error: 'nil' requires a contextual type
release: nil,
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:37:30: error: 'nil' requires a contextual type
copyDescription: nil
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:39:22: error: cannot find 'CFSocketCreate' in scope
let socket = CFSocketCreate(
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:40:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:44:13: error: cannot find 'CFSocketCallBackType' in scope
CFSocketCallBackType.dataCallBack.rawValue, { _, callbackType, _, data, info in
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:63: error: cannot find 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:52:40: error: cannot find type 'CFData' in scope
let cfdata = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue()
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:48:38: error: cannot find type 'CFSocketCallBackType' in scope
(callbackType as CFSocketCallBackType) == CFSocketCallBackType.dataCallBack
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:59:22: error: cannot find 'CFSocketGetNative' in scope
let native = CFSocketGetNative(socket)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:65:13: error: cannot find 'SO_NOSIGPIPE' in scope
SO_NOSIGPIPE,
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:72:34: error: cannot find 'CFSocketCreateRunLoopSource' in scope
guard let socketSource = CFSocketCreateRunLoopSource(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:73:13: error: cannot find 'kCFAllocatorDefault' in scope
kCFAllocatorDefault,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:75:14: error: cannot infer contextual base in reference to member 'zero'
.zero
~^~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:78:9: error: cannot find 'CFRunLoopAddSource' in scope
CFRunLoopAddSource(
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:79:13: error: cannot find 'CFRunLoopGetMain' in scope
CFRunLoopGetMain(),
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:81:14: error: cannot infer contextual base in reference to member 'commonModes'
.commonModes
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:42:17: error: cannot find type 'CFSocket' in scope
socket: CFSocket,
^~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:43:23: error: cannot find type 'CFRunLoopSource' in scope
socketSource: CFRunLoopSource,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: error: generic parameter 'T' could not be inferred
return PingxSocketImpl(
^
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Impl/PingxSocketImpl.swift:27:29: note: 'T' declared as parameter to type 'PingxSocketImpl'
final class PingxSocketImpl<T: AnyObject>: PingxSocket {
^
/host/spi-builder-workspace/Sources/pingx/Factory/SocketFactory/Impl/SocketFactoryImpl.swift:84:16: note: explicitly specify the generic arguments to fix this issue
return PingxSocketImpl(
^
<AnyObject>
[36/40] Compiling pingx PacketSenderDelegate.swift
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:69:74: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard let packet = try? packetFactory.create(identifier: request.id, type: request.type) else {
^
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:75:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:76:34: error: cannot find type 'CFData' in scope
data: packet.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
[37/40] Compiling pingx PacketSenderError.swift
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:69:74: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard let packet = try? packetFactory.create(identifier: request.id, type: request.type) else {
^
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:75:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:76:34: error: cannot find type 'CFData' in scope
data: packet.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
[38/40] Compiling pingx PacketSenderImpl.swift
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:69:74: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard let packet = try? packetFactory.create(identifier: request.id, type: request.type) else {
^
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:75:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:76:34: error: cannot find type 'CFData' in scope
data: packet.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
[39/40] Compiling pingx Pinger.swift
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:69:74: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard let packet = try? packetFactory.create(identifier: request.id, type: request.type) else {
^
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:75:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:76:34: error: cannot find type 'CFData' in scope
data: packet.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
[40/40] Compiling pingx PingerConfiguration.swift
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:103:37: error: cannot find type 'CFSocketError' in scope
func handleSocketError(_ error: CFSocketError, request: Request) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Request/Request.swift:32:21: error: cannot find 'CFSwapInt16HostToBig' in scope
public let id = CFSwapInt16HostToBig(UInt16.random(in: 0..<UInt16.max))
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:69:74: error: cannot convert value of type 'ObjectIdentifier' to expected argument type 'UInt16'
guard let packet = try? packetFactory.create(identifier: request.id, type: request.type) else {
^
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:75:59: error: cannot find type 'CFData' in scope
address: request.destination.socketAddress as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/PacketSender/Impl/PacketSenderImpl.swift:76:34: error: cannot find type 'CFData' in scope
data: packet.data as CFData,
^~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Socket/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36: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/Api/PingxSocket.swift:36:55: error: cannot find type 'CFTimeInterval' in scope
func send(address: CFData, data: CFData, timeout: CFTimeInterval) -> CFSocketError
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/pingx/Model/Payload/Payload.swift:43:20: error: cannot find type 'CFAbsoluteTime' in scope
timestamp: CFAbsoluteTime = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux