The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DSFToggleButton 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/dagronf/DSFToggleButton.git
Reference: master
Cloned https://github.com/dagronf/DSFToggleButton.git into spi-builder-workspace
SPI manifest file found: spi-builder-workspace/.spi.yml
SUCCESS checkout https://github.com/dagronf/DSFToggleButton.git at master
========================================
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
Fetching https://github.com/dagronf/DSFAppearanceManager
[1/327] Fetching dsfappearancemanager
Fetched https://github.com/dagronf/DSFAppearanceManager (0.25s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.3.0 (0.27s)
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.3.0
Building for debugging...
[1/15] Compiling DSFAppearanceManager DSFAppearanceManager.swift
[2/15] Compiling DSFAppearanceManager NSView+Appearance.swift
[3/15] Compiling DSFAppearanceManager NSWindow+Appearance.swift
[4/15] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
[5/16] Emitting module DSFAppearanceManager
[6/16] Compiling DSFAppearanceManager DSFAppearanceCache.swift
[7/16] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
[8/16] Compiling DSFAppearanceManager WeakBox.swift
[9/16] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[10/16] Compiling DSFAppearanceManager DSFSimpleLock.swift
[11/16] Compiling DSFAppearanceManager DSFDebounce.swift
[12/16] Compiling DSFAppearanceManager WeakBag.swift
[14/18] Wrapping AST for DSFAppearanceManager for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/22] Compiling DSFToggleButton DSFToggleButton+SwiftUI.swift
[17/22] Compiling DSFToggleButton DSFToggleButton+extensions.swift
[18/22] Emitting module DSFToggleButton
/host/spi-builder-workspace/Sources/DSFToggleButton/DSFToggleButton.swift:27:8: error: DSFToggleButton only supported on macOS
#error("DSFToggleButton only supported on macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[19/22] Compiling DSFToggleButton DSFToggleButton.swift
/host/spi-builder-workspace/Sources/DSFToggleButton/DSFToggleButton.swift:27:8: error: DSFToggleButton only supported on macOS
#error("DSFToggleButton only supported on macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1