The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KinUtil with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/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/kinecosystem/kin-util-ios.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/kinecosystem/kin-util-ios
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c72c3b1 Merge pull request #11 from kinecosystem/DP-467_swift-5
Cloned https://github.com/kinecosystem/kin-util-ios.git
Revision (git rev-parse @):
c72c3b151f71a6bf15b0ce98edd3f69a154610f5
SUCCESS checkout https://github.com/kinecosystem/kin-util-ios.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/kinecosystem/kin-util-ios.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/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/10] Compiling KinUtil Array+extensions.swift
[4/10] Compiling KinUtil Data+extensions.swift
[5/11] Compiling KinUtil Utility.swift
[6/11] Compiling KinUtil Observables.swift
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
    init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
                                         change: [NSKeyValueChangeKey : Any]?,
                                                  ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
        @objc override func observeValue(forKeyPath keyPath: String?,
        ~^~~~~

/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:29: error: method does not override any method from its superclass
        @objc override func observeValue(forKeyPath keyPath: String?,
              ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:31: error: cannot find 'NSKeyValueChangeKey' in scope
            let new = change?[NSKeyValueChangeKey.newKey]
                              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:30: error: type of expression is ambiguous without a type annotation
            let new = change?[NSKeyValueChangeKey.newKey]
                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:31: error: cannot find 'NSKeyValueChangeKey' in scope
            let old = change?[NSKeyValueChangeKey.oldKey]
                              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:30: error: type of expression is ambiguous without a type annotation
            let old = change?[NSKeyValueChangeKey.oldKey]
                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:16: error: value of type 'NSObject' has no member 'addObserver'
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
        ~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:89: error: reference to member 'new' cannot be resolved without a contextual type
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
                                                                                        ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:105: error: 'nil' requires a contextual type
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
                                                                                                        ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:113:9: error: cannot find 'objc_setAssociatedObject' in scope
        objc_setAssociatedObject(object,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:116:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
                                 .OBJC_ASSOCIATION_RETAIN)
                                 ~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:120:39: error: value of type 'NSObject' has no member 'removeObserver'
        object?.takeUnretainedValue().removeObserver(observer, forKeyPath: keyPath)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~
[7/11] Compiling KinUtil Promise.swift
[8/11] Compiling KinUtil Observable.swift
[9/11] Compiling KinUtil String+extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Compiling KinUtil Curry.swift
[11/11] Emitting module KinUtil
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
    init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
                                         change: [NSKeyValueChangeKey : Any]?,
                                                  ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
        @objc override func observeValue(forKeyPath keyPath: String?,
        ~^~~~~

/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:29: error: method does not override any method from its superclass
        @objc override func observeValue(forKeyPath keyPath: String?,
              ~~~~~~~~      ^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Compiling KinUtil Observables.swift
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
    init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
                                         change: [NSKeyValueChangeKey : Any]?,
                                                  ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
        @objc override func observeValue(forKeyPath keyPath: String?,
        ~^~~~~

/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:29: error: method does not override any method from its superclass
        @objc override func observeValue(forKeyPath keyPath: String?,
              ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:31: error: cannot find 'NSKeyValueChangeKey' in scope
            let new = change?[NSKeyValueChangeKey.newKey]
                              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:30: error: type of expression is ambiguous without a type annotation
            let new = change?[NSKeyValueChangeKey.newKey]
                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:31: error: cannot find 'NSKeyValueChangeKey' in scope
            let old = change?[NSKeyValueChangeKey.oldKey]
                              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:30: error: type of expression is ambiguous without a type annotation
            let old = change?[NSKeyValueChangeKey.oldKey]
                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:16: error: value of type 'NSObject' has no member 'addObserver'
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
        ~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:89: error: reference to member 'new' cannot be resolved without a contextual type
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
                                                                                        ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:105: error: 'nil' requires a contextual type
        object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
                                                                                                        ^
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:113:9: error: cannot find 'objc_setAssociatedObject' in scope
        objc_setAssociatedObject(object,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:116:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
                                 .OBJC_ASSOCIATION_RETAIN)
                                 ~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:120:39: error: value of type 'NSObject' has no member 'removeObserver'
        object?.takeUnretainedValue().removeObserver(observer, forKeyPath: keyPath)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/3] Emitting module KinUtil
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
    init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
                                         change: [NSKeyValueChangeKey : Any]?,
                                                  ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
        @objc override func observeValue(forKeyPath keyPath: String?,
        ~^~~~~

/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:29: error: method does not override any method from its superclass
        @objc override func observeValue(forKeyPath keyPath: String?,
              ~~~~~~~~      ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1