Build Information
Failed to build CoffeeCraft 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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ygee07/CoffeeCraft.git
Reference: main
Cloned https://github.com/ygee07/CoffeeCraft.git into spi-builder-workspace
SUCCESS checkout https://github.com/ygee07/CoffeeCraft.git at main
========================================
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...
[0/1] Copying Assets.xcassets
[2/12] Compiling CoffeeUI Color+Defaults.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
[3/12] Compiling CoffeeUI CircularProgressBar.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
[4/12] Compiling CoffeeUI BackgroundView.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Emitting module CoffeeUI
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
[6/12] Compiling CoffeeUI resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
[7/12] Compiling CoffeeUI LinearProgressBar.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
[8/12] Compiling CoffeeUI Icon.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
^
error: fatalError
[9/12] Compiling CoffeeBeans String+Converters.swift
/host/spi-builder-workspace/Sources/CoffeeBeans/String+Validators.swift:8:20: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let pred = NSPredicate(format:"SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: CVarArg...)
^
/host/spi-builder-workspace/Sources/CoffeeBeans/String+Validators.swift:15:20: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let pred = NSPredicate(format:"SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: CVarArg...)
^
BUILD FAILURE 5.9 linux
Build Machine: Linux 2