Build Information
Failed to build Umbrella with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-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/devxoul/Umbrella.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/devxoul/Umbrella
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 9f7999c Bump version to 0.12.0
Cloned https://github.com/devxoul/Umbrella.git
Revision (git rev-parse @):
9f7999ca085519b0a8c1d06ef6a05bd53639fb4b
SUCCESS checkout https://github.com/devxoul/Umbrella.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/devxoul/Umbrella.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/13] Write sources
[12/13] Write swift-version-24593BA9C3E375BF.txt
[14/16] Compiling Umbrella Umbrella.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/16] Emitting module Umbrella
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:25:17: error: cannot find type 'Selector' in scope
var selector: Selector {
^~~~~~~~
[16/16] Compiling Umbrella RuntimeProviderType.swift
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:25:17: error: cannot find type 'Selector' in scope
var selector: Selector {
^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:55: error: cannot find 'NSSelectorFromString' in scope
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:55: error: converting non-escaping value to '(String) throws -> U?' may allow it to escape
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:47: error: generic parameter 'U' could not be inferred
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^
Swift.Optional:6:28: note: in call to function 'flatMap'
@inlinable public func flatMap<U>(_ transform: (Wrapped) throws -> U?) rethrows -> U?
^
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:21:15: error: type 'NSObject' has no member 'responds'
guard cls.responds(to: sel) else { return nil }
~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:22:16: error: type 'NSObject' has no member 'perform'
return cls.perform(sel)?.takeUnretainedValue()
~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:32:23: error: value of type 'AnyObject' has no member 'responds'
return instance.responds(to: self.selector)
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:34:18: error: type 'NSObject' has no member 'responds'
return cls.responds(to: self.selector)
~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:41:20: error: value of type 'AnyObject' has no member 'perform'
_ = instance.perform(self.selector, with: eventName, with: parameters)
~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:43:21: error: type 'NSObject' has no member 'perform'
_ = self.cls?.perform(self.selector, with: eventName, with: parameters)
~~~~~~~~~ ^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Umbrella
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:25:17: error: cannot find type 'Selector' in scope
var selector: Selector {
^~~~~~~~
[3/3] Compiling Umbrella RuntimeProviderType.swift
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:25:17: error: cannot find type 'Selector' in scope
var selector: Selector {
^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:55: error: cannot find 'NSSelectorFromString' in scope
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:55: error: converting non-escaping value to '(String) throws -> U?' may allow it to escape
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:20:47: error: generic parameter 'U' could not be inferred
guard let sel = self.instanceSelectorName.flatMap(NSSelectorFromString) else { return nil }
^
Swift.Optional:6:28: note: in call to function 'flatMap'
@inlinable public func flatMap<U>(_ transform: (Wrapped) throws -> U?) rethrows -> U?
^
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:21:15: error: type 'NSObject' has no member 'responds'
guard cls.responds(to: sel) else { return nil }
~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:22:16: error: type 'NSObject' has no member 'perform'
return cls.perform(sel)?.takeUnretainedValue()
~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:32:23: error: value of type 'AnyObject' has no member 'responds'
return instance.responds(to: self.selector)
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:34:18: error: type 'NSObject' has no member 'responds'
return cls.responds(to: self.selector)
~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:41:20: error: value of type 'AnyObject' has no member 'perform'
_ = instance.perform(self.selector, with: eventName, with: parameters)
~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Umbrella/RuntimeProviderType.swift:43:21: error: type 'NSObject' has no member 'perform'
_ = self.cls?.perform(self.selector, with: eventName, with: parameters)
~~~~~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux