Build Information
Failed to build Gestalt with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/regexident/Gestalt.git
Reference: 2.1.1
Cloned https://github.com/regexident/Gestalt.git into spi-builder-workspace
SUCCESS checkout https://github.com/regexident/Gestalt.git at 2.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/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) {
^
[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] Compiling Gestalt Gestalt.swift
[4/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
[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.9 linux
Build Machine: Linux 2