Build Information
Failed to build ETBinding with Swift 5.7 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EtneteraMobile/ETBinding.git
Reference: master
Cloned https://github.com/EtneteraMobile/ETBinding.git into spi-builder-workspace
SUCCESS checkout https://github.com/EtneteraMobile/ETBinding.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/12] Compiling ETBinding LifecycleState.swift
[2/12] Compiling ETBinding Observable.swift
[3/13] Compiling ETBinding LiveStateData.swift
[4/13] Compiling ETBinding StateValue.swift
[5/13] Compiling ETBinding LifecycleBoundObserver.swift
[6/13] Compiling ETBinding Constants.swift
[7/13] Compiling ETBinding FutureEvent.swift
[8/13] Compiling ETBinding LiveOptionalData.swift
[9/13] Compiling ETBinding LiveOptionalStateData.swift
[10/13] Emitting module ETBinding
[11/13] Compiling ETBinding DeallocTracker.swift
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:56: error: cannot find 'arc4random' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:72: error: cannot find 'objc_getAssociatedObject' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:13: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
^~~~~~~~~~~~~~~~~~~~~~~~
[12/13] Compiling ETBinding LiveData.swift
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:56: error: cannot find 'arc4random' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:72: error: cannot find 'objc_getAssociatedObject' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:13: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
^~~~~~~~~~~~~~~~~~~~~~~~
[13/13] Compiling ETBinding Observer.swift
BUILD FAILURE 5.7 linux
Build Machine: Linux 1