Build Information
Failed to build XMLParsing, reference 0.1.0 (8853c2
), with Swift 6.1 for Linux on 28 Apr 2025 03:20:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MihaelIsaev/XMLParsing.git
Reference: 0.1.0
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/MihaelIsaev/XMLParsing
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 8853c2c Update Package.swift
Cloned https://github.com/MihaelIsaev/XMLParsing.git
Revision (git rev-parse @):
8853c2c4b6332095d1f5b1db6a4a9b99431cc233
SUCCESS checkout https://github.com/MihaelIsaev/XMLParsing.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/MihaelIsaev/XMLParsing.git
https://github.com/MihaelIsaev/XMLParsing.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "XMLParsing",
"name" : "XMLParsing",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "XMLParsing",
"targets" : [
"XMLParsing"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XMLParsingTests",
"module_type" : "SwiftTarget",
"name" : "XMLParsingTests",
"path" : "Tests/XMLParsingTests",
"sources" : [
"XMLParsingTests.swift"
],
"target_dependencies" : [
"XMLParsing"
],
"type" : "test"
},
{
"c99name" : "XMLParsing",
"module_type" : "SwiftTarget",
"name" : "XMLParsing",
"path" : "Sources/XMLParsing",
"product_memberships" : [
"XMLParsing"
],
"sources" : [
"Decoder/DecodingErrorExtension.swift",
"Decoder/XMLDecoder.swift",
"Decoder/XMLDecodingStorage.swift",
"Decoder/XMLKeyedDecodingContainer.swift",
"Decoder/XMLUnkeyedDecodingContainer.swift",
"Encoder/EncodingErrorExtension.swift",
"Encoder/XMLEncoder.swift",
"Encoder/XMLEncodingStorage.swift",
"Encoder/XMLReferencingEncoder.swift",
"ISO8601DateFormatter.swift",
"XMLKey.swift",
"XMLStackParser.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling XMLParsing XMLReferencingEncoder.swift
[4/15] Compiling XMLParsing XMLKey.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/15] Compiling XMLParsing DecodingErrorExtension.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
[6/15] Compiling XMLParsing XMLDecoder.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
[7/15] Emitting module XMLParsing
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
27 |
28 | /// Produce human-readable XML with indented output.
29 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'prettyPrinted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
32 | @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
33 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sortedKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | }
35 |
/host/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:255:43: error: cannot find type 'XMLParserDelegate' in scope
253 | }
254 |
255 | internal class _XMLStackParser: NSObject, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
256 | var root: _XMLElement?
257 | var stack = [_XMLElement]()
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:290:43: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
288 | }
289 |
290 | func parserDidStartDocument(_ parser: XMLParser) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
291 | root = nil
292 | stack = [_XMLElement]()
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/XMLParsing/XMLStackParser.swift:295:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
293 | }
294 |
295 | 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.
296 | let node = _XMLElement(key: elementName)
297 | node.attributes = attributeDict
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/XMLParsing/XMLStackParser.swift:310:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
308 | }
309 |
310 | 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.
311 | if let poppedNode = stack.popLast(){
312 | if let content = poppedNode.value?.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/XMLParsing/XMLStackParser.swift:329:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
327 | }
328 |
329 | 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.
330 | currentNode?.value = (currentNode?.value ?? "") + string
331 | }
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/XMLParsing/XMLStackParser.swift:333:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
331 | }
332 |
333 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
334 | if let string = String(data: CDATABlock, encoding: .utf8) {
335 | currentNode?.value = (currentNode?.value ?? "") + string
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/XMLParsing/XMLStackParser.swift:339:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
337 | }
338 |
339 | 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.
340 | print(parseError)
341 | }
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
[8/15] Compiling XMLParsing ISO8601DateFormatter.swift
/host/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[9/15] Compiling XMLParsing XMLUnkeyedDecodingContainer.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
[10/15] Compiling XMLParsing EncodingErrorExtension.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
[11/15] Compiling XMLParsing XMLDecodingStorage.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/XMLKeyedDecodingContainer.swift:39:36: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
37 |
38 | public var allKeys: [Key] {
39 | return self.container.keys.flatMap { Key(stringValue: $0) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
40 | }
41 |
[12/15] Compiling XMLParsing XMLKeyedDecodingContainer.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/XMLKeyedDecodingContainer.swift:39:36: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
37 |
38 | public var allKeys: [Key] {
39 | return self.container.keys.flatMap { Key(stringValue: $0) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
40 | }
41 |
[13/15] Compiling XMLParsing XMLEncoder.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
27 |
28 | /// Produce human-readable XML with indented output.
29 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'prettyPrinted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
32 | @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
33 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sortedKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | }
35 |
[14/15] Compiling XMLParsing XMLEncodingStorage.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
27 |
28 | /// Produce human-readable XML with indented output.
29 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'prettyPrinted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
32 | @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
33 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sortedKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | }
35 |
[15/15] Compiling XMLParsing XMLStackParser.swift
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:255:43: error: cannot find type 'XMLParserDelegate' in scope
253 | }
254 |
255 | internal class _XMLStackParser: NSObject, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
256 | var root: _XMLElement?
257 | var stack = [_XMLElement]()
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:290:43: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
288 | }
289 |
290 | func parserDidStartDocument(_ parser: XMLParser) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
291 | root = nil
292 | stack = [_XMLElement]()
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/XMLParsing/XMLStackParser.swift:295:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
293 | }
294 |
295 | 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.
296 | let node = _XMLElement(key: elementName)
297 | node.attributes = attributeDict
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/XMLParsing/XMLStackParser.swift:310:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
308 | }
309 |
310 | 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.
311 | if let poppedNode = stack.popLast(){
312 | if let content = poppedNode.value?.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/XMLParsing/XMLStackParser.swift:329:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
327 | }
328 |
329 | 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.
330 | currentNode?.value = (currentNode?.value ?? "") + string
331 | }
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/XMLParsing/XMLStackParser.swift:333:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
331 | }
332 |
333 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
334 | if let string = String(data: CDATABlock, encoding: .utf8) {
335 | currentNode?.value = (currentNode?.value ?? "") + string
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/XMLParsing/XMLStackParser.swift:339:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
337 | }
338 |
339 | 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.
340 | print(parseError)
341 | }
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/XMLParsing/XMLStackParser.swift:103:52: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
101 | element.attributes = (object[_XMLElement.attributesKey] as? [String: Any])?.mapValues({ String(describing: $0) }) ?? [:]
102 |
103 | let objects: [(String, NSObject)] = object.flatMap({
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
104 | guard let key = $0 as? String, let value = $1 as? NSObject, key != _XMLElement.attributesKey else { return nil }
105 |
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:129:30: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
127 |
128 | fileprivate static func createElement(parentElement: _XMLElement, key: String, object: NSArray) {
129 | let objects = object.flatMap({ $0 as? NSObject })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
130 | objects.forEach({
131 | if let dict = $0 as? NSDictionary {
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:278:25: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
276 |
277 | func parse(with data: Data) throws -> _XMLElement? {
278 | let xmlParser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
279 | xmlParser.delegate = self
280 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling XMLParsing ISO8601DateFormatter.swift
[3/13] Compiling XMLParsing XMLKey.swift
[4/14] Compiling XMLParsing XMLStackParser.swift
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:255:43: error: cannot find type 'XMLParserDelegate' in scope
253 | }
254 |
255 | internal class _XMLStackParser: NSObject, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
256 | var root: _XMLElement?
257 | var stack = [_XMLElement]()
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:290:43: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
288 | }
289 |
290 | func parserDidStartDocument(_ parser: XMLParser) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
291 | root = nil
292 | stack = [_XMLElement]()
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/XMLParsing/XMLStackParser.swift:295:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
293 | }
294 |
295 | 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.
296 | let node = _XMLElement(key: elementName)
297 | node.attributes = attributeDict
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/XMLParsing/XMLStackParser.swift:310:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
308 | }
309 |
310 | 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.
311 | if let poppedNode = stack.popLast(){
312 | if let content = poppedNode.value?.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/XMLParsing/XMLStackParser.swift:329:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
327 | }
328 |
329 | 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.
330 | currentNode?.value = (currentNode?.value ?? "") + string
331 | }
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/XMLParsing/XMLStackParser.swift:333:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
331 | }
332 |
333 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
334 | if let string = String(data: CDATABlock, encoding: .utf8) {
335 | currentNode?.value = (currentNode?.value ?? "") + string
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/XMLParsing/XMLStackParser.swift:339:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
337 | }
338 |
339 | 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.
340 | print(parseError)
341 | }
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/XMLParsing/XMLStackParser.swift:103:52: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
101 | element.attributes = (object[_XMLElement.attributesKey] as? [String: Any])?.mapValues({ String(describing: $0) }) ?? [:]
102 |
103 | let objects: [(String, NSObject)] = object.flatMap({
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
104 | guard let key = $0 as? String, let value = $1 as? NSObject, key != _XMLElement.attributesKey else { return nil }
105 |
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:129:30: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
127 |
128 | fileprivate static func createElement(parentElement: _XMLElement, key: String, object: NSArray) {
129 | let objects = object.flatMap({ $0 as? NSObject })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
130 | objects.forEach({
131 | if let dict = $0 as? NSDictionary {
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:278:25: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
276 |
277 | func parse(with data: Data) throws -> _XMLElement? {
278 | let xmlParser = XMLParser(data: data)
| `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
279 | xmlParser.delegate = self
280 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/14] Compiling XMLParsing XMLDecodingStorage.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/XMLKeyedDecodingContainer.swift:39:36: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
37 |
38 | public var allKeys: [Key] {
39 | return self.container.keys.flatMap { Key(stringValue: $0) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
40 | }
41 |
[6/14] Compiling XMLParsing XMLKeyedDecodingContainer.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/XMLKeyedDecodingContainer.swift:39:36: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
37 |
38 | public var allKeys: [Key] {
39 | return self.container.keys.flatMap { Key(stringValue: $0) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
40 | }
41 |
[7/14] Compiling XMLParsing XMLUnkeyedDecodingContainer.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
[8/14] Compiling XMLParsing EncodingErrorExtension.swift
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
[9/14] Compiling XMLParsing XMLReferencingEncoder.swift
[10/14] Compiling XMLParsing DecodingErrorExtension.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
[11/14] Compiling XMLParsing XMLDecoder.swift
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
[12/14] Compiling XMLParsing XMLEncoder.swift
[13/14] Compiling XMLParsing XMLEncodingStorage.swift
[14/14] Emitting module XMLParsing
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/host/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
/host/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:255:43: error: cannot find type 'XMLParserDelegate' in scope
253 | }
254 |
255 | internal class _XMLStackParser: NSObject, XMLParserDelegate {
| `- error: cannot find type 'XMLParserDelegate' in scope
256 | var root: _XMLElement?
257 | var stack = [_XMLElement]()
/host/spi-builder-workspace/Sources/XMLParsing/XMLStackParser.swift:290:43: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
288 | }
289 |
290 | func parserDidStartDocument(_ parser: XMLParser) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
291 | root = nil
292 | stack = [_XMLElement]()
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/XMLParsing/XMLStackParser.swift:295:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
293 | }
294 |
295 | 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.
296 | let node = _XMLElement(key: elementName)
297 | node.attributes = attributeDict
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/XMLParsing/XMLStackParser.swift:310:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
308 | }
309 |
310 | 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.
311 | if let poppedNode = stack.popLast(){
312 | if let content = poppedNode.value?.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/XMLParsing/XMLStackParser.swift:329:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
327 | }
328 |
329 | 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.
330 | currentNode?.value = (currentNode?.value ?? "") + string
331 | }
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/XMLParsing/XMLStackParser.swift:333:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
331 | }
332 |
333 | func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) {
| `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
334 | if let string = String(data: CDATABlock, encoding: .utf8) {
335 | currentNode?.value = (currentNode?.value ?? "") + string
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/XMLParsing/XMLStackParser.swift:339:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
337 | }
338 |
339 | 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.
340 | print(parseError)
341 | }
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
BUILD FAILURE 6.1 linux