The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DSFRational with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/dagronf/DSFRational.git
Reference: master
Cloned https://github.com/dagronf/DSFRational.git into spi-builder-workspace
SUCCESS checkout https://github.com/dagronf/DSFRational.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-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module DSFRational
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:25:2: error: Objective-C interoperability is disabled
@objc public protocol RationalRepresentation: class {
~^~~~~
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:26:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var fraction: Double { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:27:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var whole: Int { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:28:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var numerator: UInt { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:29:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var denominator: UInt { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:30:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var description: String { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:25:47: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
@objc public protocol RationalRepresentation: class {
                                              ^~~~~
                                              AnyObject
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:35:2: error: Objective-C interoperability is disabled
@objc public class DSFRational: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:51:3: error: Objective-C interoperability is disabled
        @objc static func value(for fraction: Double) -> RationalRepresentation {
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:70:3: error: Objective-C interoperability is disabled
        @objc static func value(for fraction: Double, maxDenominator: Int) -> RationalRepresentation {
        ~^~~~~
        
[2/2] Compiling DSFRational DSFRational.swift
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:25:2: error: Objective-C interoperability is disabled
@objc public protocol RationalRepresentation: class {
~^~~~~
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:26:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var fraction: Double { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:27:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var whole: Int { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:28:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var numerator: UInt { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:29:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var denominator: UInt { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:30:3: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
        @objc var description: String { get }
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:25:47: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
@objc public protocol RationalRepresentation: class {
                                              ^~~~~
                                              AnyObject
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:35:2: error: Objective-C interoperability is disabled
@objc public class DSFRational: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:51:3: error: Objective-C interoperability is disabled
        @objc static func value(for fraction: Double) -> RationalRepresentation {
        ~^~~~~
        
/host/spi-builder-workspace/Sources/DSFRational/DSFRational.swift:70:3: error: Objective-C interoperability is disabled
        @objc static func value(for fraction: Double, maxDenominator: Int) -> RationalRepresentation {
        ~^~~~~
        
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1