The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ISO8601DurationFormatter 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.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kkla320/ISO8601DurationFormatter.git
Reference: main
Cloned https://github.com/kkla320/ISO8601DurationFormatter.git into spi-builder-workspace
SUCCESS checkout https://github.com/kkla320/ISO8601DurationFormatter.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-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/7] Emitting module ISO8601DurationFormatter
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:48: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:140: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
                                                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:26: error: method does not override any method from its superclass
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
           ~~~~~~~~      ^
[2/7] Compiling ISO8601DurationFormatter String+append.swift
[3/7] Compiling ISO8601DurationFormatter DateComponents+ISO8601Duration.swift
[4/7] Compiling ISO8601DurationFormatter Operators.swift
[5/7] Compiling ISO8601DurationFormatter ISO8601DurationFormatter.swift
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:48: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:140: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
                                                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ISO8601DurationFormatter/ISO8601DurationFormatter.swift:70:26: error: method does not override any method from its superclass
    public override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
           ~~~~~~~~      ^
[6/7] Compiling ISO8601DurationFormatter DateComponents+init.swift
[7/7] Compiling ISO8601DurationFormatter Dictionary+mappings.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1