The Swift Package Index logo.Swift Package Index

Build Information

Failed to build XMLTools, reference 0.6.1 (83b37c), with Swift 6.1 for Wasm on 27 May 2025 10:49:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spilikin/swiftxmltools.git
Reference: 0.6.1
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/spilikin/swiftxmltools
 * tag               0.6.1      -> FETCH_HEAD
HEAD is now at 83b37c3 made Infoset.init() public and removed EMPTY Singleton
Cloned https://github.com/spilikin/swiftxmltools.git
Revision (git rev-parse @):
83b37c331cc1212c805d25a24bb84da79dac5814
SUCCESS checkout https://github.com/spilikin/swiftxmltools.git at 0.6.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/spilikin/swiftxmltools.git
https://github.com/spilikin/swiftxmltools.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "XMLTools",
  "name" : "XMLTools",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "XMLTools",
      "targets" : [
        "XMLTools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "XMLToolsTests",
      "module_type" : "SwiftTarget",
      "name" : "XMLToolsTests",
      "path" : "Tests/XMLToolsTests",
      "sources" : [
        "DOMTests.swift",
        "LOTLTests.swift",
        "ManipulationTests.swift",
        "NamespaceTests.swift",
        "PublicAPITests.swift",
        "QNameTests.swift",
        "SelectTest.swift",
        "SerializerTests.swift",
        "ValuesTests.swift",
        "XMLToolsTests.swift"
      ],
      "target_dependencies" : [
        "XMLTools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XMLTools",
      "module_type" : "SwiftTarget",
      "name" : "XMLTools",
      "path" : "Sources/XMLTools",
      "product_memberships" : [
        "XMLTools"
      ],
      "sources" : [
        "DOM+Traversal.swift",
        "DOM.swift",
        "Infoset+Attributes.swift",
        "Infoset+Data.swift",
        "Infoset+Descendant.swift",
        "Infoset+Manipulation.swift",
        "Infoset+Number.swift",
        "Infoset+Parent.swift",
        "Infoset+QName.swift",
        "Infoset+Text.swift",
        "Infoset.swift",
        "Parser.swift",
        "Serializer.swift",
        "XMLTools.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/16] Compiling XMLTools DOM+Traversal.swift
[4/16] Compiling XMLTools DOM.swift
[5/16] Compiling XMLTools Infoset+Attributes.swift
[6/16] Compiling XMLTools Infoset+Data.swift
[7/16] Emitting module XMLTools
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:14:23: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 12 | extension NamespaceDeclaration {
 13 |     // See https://www.w3.org/XML/1998/namespace
 14 |     public static let xml = NamespaceDeclaration("xml", uri: "https://www.w3.org/XML/1998/namespace")
    |                       |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |     // XMLDSig
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:16:23: warning: static property 'xmldsig' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 14 |     public static let xml = NamespaceDeclaration("xml", uri: "https://www.w3.org/XML/1998/namespace")
 15 |     // XMLDSig
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
    |                       |- warning: static property 'xmldsig' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xmldsig' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     // XMLSchema
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:18:23: warning: static property 'xsd' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
 17 |     // XMLSchema
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
    |                       |- warning: static property 'xsd' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xsd' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     // XML Schema instance
 20 |     public static let xsi = NamespaceDeclaration("xsi", uri: "http://www.w3.org/2001/XMLSchema-instance")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:20:23: warning: static property 'xsi' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
 19 |     // XML Schema instance
 20 |     public static let xsi = NamespaceDeclaration("xsi", uri: "http://www.w3.org/2001/XMLSchema-instance")
    |                       |- warning: static property 'xsi' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xsi' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 | }
 22 |
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:160:23: warning: static property 'XmlLang' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
158 |     /// See https://www.w3.org/XML/1998/namespace
159 |     /// Designed for identifying the human language used in the scope of the element to which it's attached.
160 |     public static let XmlLang = QName("lang", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlLang' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlLang' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
161 |     /// Designed to express whether or not the document's creator wishes white space to be considered as
162 |     /// significant in the scope of the element to which it's attached.
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:163:23: warning: static property 'XmlSpace' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
161 |     /// Designed to express whether or not the document's creator wishes white space to be considered as
162 |     /// significant in the scope of the element to which it's attached.
163 |     public static let XmlSpace = QName("space", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlSpace' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlSpace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |     /// The XML Base specification (Second edition) describes a facility, similar to that of HTML BASE,
165 |     /// for defining base URIs for parts of XML documents. It defines a single attribute, xml:base,
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:167:23: warning: static property 'XmlBase' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
165 |     /// for defining base URIs for parts of XML documents. It defines a single attribute, xml:base,
166 |     /// and describes in detail the procedure for its use in processing relative URI refeferences.
167 |     public static let XmlBase = QName("base", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlBase' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlBase' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 |     /// The xml:id specification defines a single attribute, xml:id,
169 |     /// known to be of type ID independently of any DTD or schema.
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:170:23: warning: static property 'XmlId' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
168 |     /// The xml:id specification defines a single attribute, xml:id,
169 |     /// known to be of type ID independently of any DTD or schema.
170 |     public static let XmlId = QName("id", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlId' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlId' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | }
172 |
[8/16] Compiling XMLTools Infoset+Number.swift
[9/16] Compiling XMLTools Infoset+Parent.swift
[10/16] Compiling XMLTools Infoset+Descendant.swift
[11/16] Compiling XMLTools Infoset+Manipulation.swift
[12/16] Compiling XMLTools Infoset+QName.swift
[13/16] Compiling XMLTools Infoset+Text.swift
[14/16] Compiling XMLTools Serializer.swift
[15/17] Compiling XMLTools Infoset.swift
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:25:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     public func parse(data: Data) throws -> Infoset {
 24 |         let delegate = ParserDelegate(options: options)
 25 |         let parser = XMLParser(data: data)
    |                      `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 26 |         parser.shouldProcessNamespaces = true
 27 |         parser.shouldReportNamespacePrefixes = true
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:149:39: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
    |                                       `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
150 |         self.errorColumnNumber = parser.columnNumber
151 |     }
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:150:41: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
150 |         self.errorColumnNumber = parser.columnNumber
    |                                         `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
151 |     }
152 | }
[16/17] Compiling XMLTools Parser.swift
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:25:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     public func parse(data: Data) throws -> Infoset {
 24 |         let delegate = ParserDelegate(options: options)
 25 |         let parser = XMLParser(data: data)
    |                      `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 26 |         parser.shouldProcessNamespaces = true
 27 |         parser.shouldReportNamespacePrefixes = true
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:149:39: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
    |                                       `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
150 |         self.errorColumnNumber = parser.columnNumber
151 |     }
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:150:41: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
150 |         self.errorColumnNumber = parser.columnNumber
    |                                         `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
151 |     }
152 | }
[17/17] Compiling XMLTools XMLTools.swift
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:14:23: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 12 | extension NamespaceDeclaration {
 13 |     // See https://www.w3.org/XML/1998/namespace
 14 |     public static let xml = NamespaceDeclaration("xml", uri: "https://www.w3.org/XML/1998/namespace")
    |                       |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |     // XMLDSig
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:16:23: warning: static property 'xmldsig' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 14 |     public static let xml = NamespaceDeclaration("xml", uri: "https://www.w3.org/XML/1998/namespace")
 15 |     // XMLDSig
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
    |                       |- warning: static property 'xmldsig' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xmldsig' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     // XMLSchema
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:18:23: warning: static property 'xsd' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 16 |     public static let xmldsig = NamespaceDeclaration("ds", uri: "http://www.w3.org/2000/09/xmldsig#")
 17 |     // XMLSchema
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
    |                       |- warning: static property 'xsd' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xsd' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     // XML Schema instance
 20 |     public static let xsi = NamespaceDeclaration("xsi", uri: "http://www.w3.org/2001/XMLSchema-instance")
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:20:23: warning: static property 'xsi' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | public struct NamespaceDeclaration {
    |               `- note: consider making struct 'NamespaceDeclaration' conform to the 'Sendable' protocol
  2 |
  3 |     public let prefix: String
    :
 18 |     public static let xsd = NamespaceDeclaration("xsd", uri: "http://www.w3.org/2001/XMLSchema")
 19 |     // XML Schema instance
 20 |     public static let xsi = NamespaceDeclaration("xsi", uri: "http://www.w3.org/2001/XMLSchema-instance")
    |                       |- warning: static property 'xsi' is not concurrency-safe because non-'Sendable' type 'NamespaceDeclaration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'xsi' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 | }
 22 |
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:160:23: warning: static property 'XmlLang' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
158 |     /// See https://www.w3.org/XML/1998/namespace
159 |     /// Designed for identifying the human language used in the scope of the element to which it's attached.
160 |     public static let XmlLang = QName("lang", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlLang' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlLang' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
161 |     /// Designed to express whether or not the document's creator wishes white space to be considered as
162 |     /// significant in the scope of the element to which it's attached.
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:163:23: warning: static property 'XmlSpace' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
161 |     /// Designed to express whether or not the document's creator wishes white space to be considered as
162 |     /// significant in the scope of the element to which it's attached.
163 |     public static let XmlSpace = QName("space", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlSpace' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlSpace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |     /// The XML Base specification (Second edition) describes a facility, similar to that of HTML BASE,
165 |     /// for defining base URIs for parts of XML documents. It defines a single attribute, xml:base,
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:167:23: warning: static property 'XmlBase' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
165 |     /// for defining base URIs for parts of XML documents. It defines a single attribute, xml:base,
166 |     /// and describes in detail the procedure for its use in processing relative URI refeferences.
167 |     public static let XmlBase = QName("base", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlBase' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlBase' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 |     /// The xml:id specification defines a single attribute, xml:id,
169 |     /// known to be of type ID independently of any DTD or schema.
/host/spi-builder-workspace/Sources/XMLTools/XMLTools.swift:170:23: warning: static property 'XmlId' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | public struct QName: Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'QName' conform to the 'Sendable' protocol
110 |
111 |     public let localName: String
    :
168 |     /// The xml:id specification defines a single attribute, xml:id,
169 |     /// known to be of type ID independently of any DTD or schema.
170 |     public static let XmlId = QName("id", uri: NamespaceDeclaration.xml.uri)
    |                       |- warning: static property 'XmlId' is not concurrency-safe because non-'Sendable' type 'QName' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'XmlId' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | }
172 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling XMLTools Infoset+Number.swift
[3/15] Compiling XMLTools Infoset+Parent.swift
[4/15] Compiling XMLTools Infoset+Descendant.swift
[5/15] Compiling XMLTools Infoset+Manipulation.swift
[6/15] Compiling XMLTools Infoset+QName.swift
[7/15] Compiling XMLTools Infoset+Text.swift
[8/16] Compiling XMLTools Serializer.swift
[9/16] Compiling XMLTools Infoset.swift
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:25:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     public func parse(data: Data) throws -> Infoset {
 24 |         let delegate = ParserDelegate(options: options)
 25 |         let parser = XMLParser(data: data)
    |                      `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 26 |         parser.shouldProcessNamespaces = true
 27 |         parser.shouldReportNamespacePrefixes = true
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:149:39: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
    |                                       `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
150 |         self.errorColumnNumber = parser.columnNumber
151 |     }
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:150:41: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
150 |         self.errorColumnNumber = parser.columnNumber
    |                                         `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
151 |     }
152 | }
[10/16] Compiling XMLTools Parser.swift
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:25:22: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     public func parse(data: Data) throws -> Infoset {
 24 |         let delegate = ParserDelegate(options: options)
 25 |         let parser = XMLParser(data: data)
    |                      `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 26 |         parser.shouldProcessNamespaces = true
 27 |         parser.shouldReportNamespacePrefixes = true
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:149:39: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
    |                                       `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'lineNumber'
150 |         self.errorColumnNumber = parser.columnNumber
151 |     }
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:150:41: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
150 |         self.errorColumnNumber = parser.columnNumber
    |                                         `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'columnNumber'
151 |     }
152 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Compiling XMLTools Infoset+Attributes.swift
[12/16] Compiling XMLTools Infoset+Data.swift
[13/16] Compiling XMLTools DOM+Traversal.swift
[14/16] Compiling XMLTools DOM.swift
[15/16] Emitting module XMLTools
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:60:41: error: cannot find type 'XMLParserDelegate' in scope
 58 | }
 59 |
 60 | private class ParserDelegate: NSObject, XMLParserDelegate {
    |                                         `- error: cannot find type 'XMLParserDelegate' in scope
 61 |     fileprivate var document: Document
 62 |     private var currentElement: Element?
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:75:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 73 |     }
 74 |
 75 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String: String] = [:]) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         if let parent = currentElement {
 77 |             currentElement = parent.appendElement(QName(elementName, uri: namespaceURI!))
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:114:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
112 |     }
113 |
114 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |         if options.trimWhitespaces {
116 |             let trimmed = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:125:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
123 |     }
124 |
125 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
126 |         if let parent = currentElement?.parentNode as? Element {
127 |             currentElement = parent
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:136:41: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
134 |     }
135 |
136 |     func parserDidEndDocument(_ parser: XMLParser) {
    |                                         `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:139:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
137 |     }
138 |
139 |     func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
140 |         if namespaceContext == nil {
141 |             // create empty namespace context
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XMLTools/Parser.swift:147:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
145 |     }
146 |
147 |     func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
    |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
148 |         self.parseError = parseError
149 |         self.errorLineNumber = parser.lineNumber
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
[16/16] Compiling XMLTools XMLTools.swift
BUILD FAILURE 6.1 wasm