The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoffeeCraft with Swift 5.9 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.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: 0.2.2
Cloned https://github.com/ygee07/CoffeeCraft.git into spi-builder-workspace
SUCCESS checkout https://github.com/ygee07/CoffeeCraft.git at 0.2.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
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.9-latest swift build 2>&1
Building for debugging...
[0/1] Copying Assets.xcassets
[2/14] Compiling CoffeeUI LinearProgressBar.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[3/15] Compiling CoffeeUI Color+Defaults.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)
[4/15] Emitting module CoffeeUI
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[5/15] Compiling CoffeeUI BackgroundView.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[6/15] Compiling CoffeeUI BoxIconItem.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[7/15] Compiling CoffeeUI Icon.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[8/15] Compiling CoffeeUI BoxItem.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[9/15] Compiling CoffeeUI CircularProgressBar.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[10/15] Compiling CoffeeUI IconButton.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
[11/15] Compiling CoffeeUI resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/CoffeeUI/BackgroundView.swift:1:8: error: no such module 'SwiftUI'
import SwiftUI
       ^
error: fatalError
[12/15] Emitting module CoffeeBeans
[13/15] Compiling CoffeeBeans Date+Helpers.swift
[14/15] 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 1