The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KinUtil with Swift 5.8 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.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kinecosystem/kin-util-ios.git
Reference: 0.1.0
Cloned https://github.com/kinecosystem/kin-util-ios.git into spi-builder-workspace
SUCCESS checkout https://github.com/kinecosystem/kin-util-ios.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
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.8-latest swift build 2>&1
Building for debugging...
[1/8] Compiling KinUtil Data+extensions.swift
[2/9] Compiling KinUtil String+extensions.swift
[3/9] Compiling KinUtil Utility.swift
[4/9] Compiling KinUtil Array+extensions.swift
[5/9] Compiling KinUtil Observable.swift
[6/9] Compiling KinUtil Promise.swift
[7/9] 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 more context
            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 more context
            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)
[8/9] Compiling KinUtil Curry.swift
[9/9] 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?,
              ~~~~~~~~      ^
BUILD FAILURE 5.8 linux

Build Machine: Linux 1