Build Information
Failed to build HSObserver 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.17.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ConfusedVorlon/HSObserver.git
Reference: master
Cloned https://github.com/ConfusedVorlon/HSObserver.git into spi-builder-workspace
SUCCESS checkout https://github.com/ConfusedVorlon/HSObserver.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/6] Compiling HSObserver HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
@objc
~^~~~
[2/6] Compiling HSObserver HSObserves.swift
[3/6] Compiling HSObserver NSNotification+HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:29:6: error: Objective-C interoperability is disabled
@objc
~^~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)[4/6] Emitting module HSObserver
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
options: NSKeyValueObservingOptions = [],
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
private var block:([NSKeyValueChangeKey:Any]?)->Void
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
private var options:NSKeyValueObservingOptions
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
change: [NSKeyValueChangeKey : Any]?,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:61:26: error: method does not override any method from its superclass
override public func observeValue(forKeyPath keyPath: String?,
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:29:6: error: Objective-C interoperability is disabled
@objc
~^~~~
[5/6] Compiling HSObserver HSHasObservers.swift
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:23:30: error: cannot find 'objc_getAssociatedObject' in scope
guard let existing = objc_getAssociatedObject(self, &observerKey) as? [HSObserves] else {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:32:9: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(self,
^~~~~~~~~~~~~~~~~~~~~~~~
[6/6] Compiling HSObserver HSKeyPathObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
options: NSKeyValueObservingOptions = [],
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
private var block:([NSKeyValueChangeKey:Any]?)->Void
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
private var options:NSKeyValueObservingOptions
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
change: [NSKeyValueChangeKey : Any]?,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:61:26: error: method does not override any method from its superclass
override public func observeValue(forKeyPath keyPath: String?,
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:49:17: error: value of type 'AnyObject' has no member 'addObserver'
object?.addObserver(self,
~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:52:37: error: 'nil' requires a contextual type
context: nil)
^
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:58:17: error: value of type 'AnyObject' has no member 'removeObserver'
object?.removeObserver(self, forKeyPath: keyPath)
~~~~~~~ ^~~~~~~~~~~~~~
BUILD FAILURE 5.7 linux
Build Machine: Linux 1