The Swift Package Index logo.Swift Package Index

Build Information

Failed to build XmlSwift with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-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/BiAtoms/Xml.swift.git
Reference: 1.1.0
Cloned https://github.com/BiAtoms/Xml.swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/BiAtoms/Xml.swift.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Compiling XmlSwift XmlParserDelegate.swift
[2/5] Compiling XmlSwift XmlParser.swift
/host/spi-builder-workspace/Sources/XmlParser.swift:12:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
    open let parser: XMLParser
    ~~~~     ^
    public
/host/spi-builder-workspace/Sources/XmlParser.swift:12:22: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    open let parser: XMLParser
                     ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
    open let document = XmlDocument(root: nil)
    ~~~~     ^
    public
/host/spi-builder-workspace/Sources/XmlParser.swift:16:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public required init(parser: XMLParser) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:36:22: error: cannot find type 'XMLParserDelegate' in scope
extension XmlParser: XMLParserDelegate {
                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:37:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:53:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, foundCharacters string: String) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:57:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:19:16: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'delegate'
        parser.delegate = self
        ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:22:47: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'parse'
    open func parse() -> Bool { return parser.parse() }
                                       ~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:24:16: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
        parser.abortParsing()
        ~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:30:23: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'parserError'
        return parser.parserError
               ~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:67:27: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.init(parser: XMLParser(stream: stream))
                          ^~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:71:27: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        self.init(parser: XMLParser(data: data))
                          ^~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:75:28: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        guard let parser = XMLParser(contentsOf: url) else { return nil }
                           ^~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling XmlSwift XmlDocument.swift
[4/5] Compiling XmlSwift XmlElement.swift
[5/5] Emitting module XmlSwift
/host/spi-builder-workspace/Sources/XmlParser.swift:12:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
    open let parser: XMLParser
    ~~~~     ^
    public
/host/spi-builder-workspace/Sources/XmlParser.swift:12:22: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    open let parser: XMLParser
                     ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
    open let document = XmlDocument(root: nil)
    ~~~~     ^
    public
/host/spi-builder-workspace/Sources/XmlParser.swift:16:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public required init(parser: XMLParser) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:36:22: error: cannot find type 'XMLParserDelegate' in scope
extension XmlParser: XMLParserDelegate {
                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XmlParser.swift:37:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:53:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, foundCharacters string: String) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
/host/spi-builder-workspace/Sources/XmlParser.swift:57:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
    public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
                                 ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2