Build Information
Failed to build CurrencyConverter with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.39.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pixyzehn/currency-converter.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/pixyzehn/currency-converter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8aff1b3 Bump Xcode version to 15.4
Cloned https://github.com/pixyzehn/currency-converter.git
Revision (git rev-parse @):
8aff1b38ca75f21c169231341abfc3d770e336d0
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/pixyzehn/currency-converter.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/pixyzehn/currency-converter.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/1458] Fetching swift-docc-plugin
[1343/4311] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.42s)
Fetched https://github.com/apple/swift-docc-plugin (0.43s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (1.08s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.42s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling CurrencyConverter CurrencyConverter.swift
[4/8] Compiling CurrencyConverter CurrencyRate.swift
[5/8] Emitting module CurrencyConverter
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:6:25: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
private let parser: XMLParser?
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:41:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
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/CurrencyConverter/ReferenceRatesXMLParser.swift:84:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
func parserDidEndDocument(_ parser: XMLParser) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:92:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:3:42: error: cannot find type 'XMLParserDelegate' in scope
class ReferenceRatesXMLParser: NSObject, XMLParserDelegate {
^~~~~~~~~~~~~~~~~
[6/8] Compiling CurrencyConverter XMLParserError.swift
[7/8] Compiling CurrencyConverter ReferenceRates.swift
[8/8] Compiling CurrencyConverter ReferenceRatesXMLParser.swift
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:6:25: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
private let parser: XMLParser?
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:41:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
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/CurrencyConverter/ReferenceRatesXMLParser.swift:84:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
func parserDidEndDocument(_ parser: XMLParser) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:92:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:3:42: error: cannot find type 'XMLParserDelegate' in scope
class ReferenceRatesXMLParser: NSObject, XMLParserDelegate {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:24:18: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
parser = XMLParser(contentsOf: url)
^~~~~~~~~
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:26:17: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'delegate'
parser?.delegate = self
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:30:18: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
parser = XMLParser(data: data)
^~~~~~~~~
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:32:17: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'delegate'
parser?.delegate = self
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/CurrencyConverter/ReferenceRatesXMLParser.swift:36:17: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'parse'
parser?.parse()
~~~~~~~ ^~~~~
error: fatalError
BUILD FAILURE 5.9 linux