Build Information
Failed to build HSObserver with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ConfusedVorlon/HSObserver.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ConfusedVorlon/HSObserver
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at acbb61e Merge branch 'feature/objc' into develop
Cloned https://github.com/ConfusedVorlon/HSObserver.git
Revision (git rev-parse @):
acbb61ea94518871ddea3571bf0d1aba24384584
SUCCESS checkout https://github.com/ConfusedVorlon/HSObserver.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/ConfusedVorlon/HSObserver.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling HSObserver HSObserves.swift
[4/8] Compiling HSObserver NSNotification+HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:29:6: error: Objective-C interoperability is disabled
@objc
~^~~~
[5/8] 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
~^~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] 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
~^~~~
[7/8] 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)
~~~~~~~ ^~~~~~~~~~~~~~
[8/8] 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,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:34:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/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)
~~~~~~~ ^~~~~~~~~~~~~~
[3/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
~^~~~
[4/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)
[5/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
~^~~~
[6/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,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:34:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux