Build Information
Failed to build Gestalt 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/regexident/Gestalt.git
Reference: 2.1.1
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/regexident/Gestalt
* tag 2.1.1 -> FETCH_HEAD
HEAD is now at 6469230 Bumped version to '2.1.1'
Cloned https://github.com/regexident/Gestalt.git
Revision (git rev-parse @):
6469230fb1b81ea449312a855b410425030b287e
SUCCESS checkout https://github.com/regexident/Gestalt.git at 2.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/regexident/Gestalt.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/7] Compiling Gestalt Themeable.swift
/host/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Themeable: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling Gestalt Gestalt.swift
[5/7] Compiling Gestalt ThemeManager.swift
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:64: error: cannot find type 'Notification' in scope
@objc private func handleDynamicTypeChange(_ notification: Notification) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:6: error: Objective-C interoperability is disabled
@objc private func handleDynamicTypeChange(_ notification: Notification) {
~^~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:148:9: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:152:14: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
.OBJC_ASSOCIATION_RETAIN_NONATOMIC
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:234:20: error: cannot find 'OperationQueue' in scope
queue: OperationQueue.main
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:235:29: error: cannot infer type of closure parameter 'notification' without a type annotation
) { [weak observer] notification in
^
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:255:9: error: cannot find 'DispatchQueue' in scope
DispatchQueue.main.async { [weak self] in
^~~~~~~~~~~~~
[6/7] Emitting module Gestalt
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:64: error: cannot find type 'Notification' in scope
@objc private func handleDynamicTypeChange(_ notification: Notification) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:6: error: Objective-C interoperability is disabled
@objc private func handleDynamicTypeChange(_ notification: Notification) {
~^~~~~
/host/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Themeable: class {
^~~~~
AnyObject
[7/7] Compiling Gestalt ThemeObserver.swift
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:19:16: error: cannot find 'Thread' in scope
assert(Thread.isMainThread)
^~~~~~
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:24:17: error: cannot find 'NSLog' in scope
NSLog("No theme found for theme manager \($0)")
^~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:28:22: error: cannot call value of non-function type 'Bool'
themeManager.animated(duration: themeManager.animationDuration) {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Gestalt Themeable.swift
/host/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Themeable: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Gestalt
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:64: error: cannot find type 'Notification' in scope
@objc private func handleDynamicTypeChange(_ notification: Notification) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:6: error: Objective-C interoperability is disabled
@objc private func handleDynamicTypeChange(_ notification: Notification) {
~^~~~~
/host/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Themeable: class {
^~~~~
AnyObject
[4/5] Compiling Gestalt ThemeObserver.swift
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:19:16: error: cannot find 'Thread' in scope
assert(Thread.isMainThread)
^~~~~~
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:24:17: error: cannot find 'NSLog' in scope
NSLog("No theme found for theme manager \($0)")
^~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeObserver.swift:28:22: error: cannot call value of non-function type 'Bool'
themeManager.animated(duration: themeManager.animationDuration) {
^
[5/5] Compiling Gestalt ThemeManager.swift
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:29:35: error: cannot find type 'TimeInterval' in scope
public var animationDuration: TimeInterval = 3.0 // 0.4
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:32:43: error: cannot find 'Notification' in scope
private static let notificationName = Notification.Name("Gestalt.ThemeChangedNotification")
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:35:37: error: cannot find type 'NotificationCenter' in scope
private var notificationCenter: NotificationCenter = .init()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:286:38: error: cannot find type 'TimeInterval' in scope
internal func animated(duration: TimeInterval, closure: @escaping () -> ()) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:64: error: cannot find type 'Notification' in scope
@objc private func handleDynamicTypeChange(_ notification: Notification) {
^~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:297:6: error: Objective-C interoperability is disabled
@objc private func handleDynamicTypeChange(_ notification: Notification) {
~^~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:148:9: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:152:14: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
.OBJC_ASSOCIATION_RETAIN_NONATOMIC
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:234:20: error: cannot find 'OperationQueue' in scope
queue: OperationQueue.main
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:235:29: error: cannot infer type of closure parameter 'notification' without a type annotation
) { [weak observer] notification in
^
/host/spi-builder-workspace/Gestalt/ThemeManager.swift:255:9: error: cannot find 'DispatchQueue' in scope
DispatchQueue.main.async { [weak self] in
^~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1