The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build CurrencyConverter with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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.10
Building package at path:  $workDir
https://github.com/pixyzehn/currency-converter.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2853] Fetching swift-docc-symbolkit
[2854/4311] Fetching swift-docc-symbolkit, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.41s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.91s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.39s)
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...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling CurrencyConverter XMLParserError.swift
[6/10] 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()
        ~~~~~~~ ^~~~~
[7/10] Compiling CurrencyConverter ReferenceRates.swift
[8/10] Compiling CurrencyConverter CurrencyConverter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling CurrencyConverter CurrencyRate.swift
[10/10] 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 {
                                         ^~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux