Build Information
Failed to build SwiftXMLParser with Swift 5.8 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mkuliszkiewicz/SwiftXMLParser.git
Reference: main
Cloned https://github.com/mkuliszkiewicz/SwiftXMLParser.git into spi-builder-workspace
SUCCESS checkout https://github.com/mkuliszkiewicz/SwiftXMLParser.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/3] Compiling SwiftXMLParser XMLElement.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module SwiftXMLParser
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:11:25: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
private var parser: XMLParser?
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:54:27: error: cannot find type 'XMLParserDelegate' in scope
extension SwiftXMLParser: XMLParserDelegate {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:56:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:63:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:83:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:93:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:100:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:107:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:116:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
[3/3] Compiling SwiftXMLParser SwiftXMLParser.swift
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:11:25: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
private var parser: XMLParser?
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:54:27: error: cannot find type 'XMLParserDelegate' in scope
extension SwiftXMLParser: XMLParserDelegate {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:56:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:63:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:83:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:93:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:100:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:107:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:116:19: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
_ parser: XMLParser,
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:46:26: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let parser = XMLParser(data: data)
^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:119:57: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
debugPrint("Failed to parse XML, line: \(parser.lineNumber), column: \(parser.columnNumber) \(parseError)")
~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:119:87: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
debugPrint("Failed to parse XML, line: \(parser.lineNumber), column: \(parser.columnNumber) \(parseError)")
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftXMLParser/SwiftXMLParser.swift:46:26: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let parser = XMLParser(data: data)
^~~~~~~~~
BUILD FAILURE 5.8 linux