Build Information
Failed to build XLIFFKit with Swift 6.0 (beta) for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattcomi/XLIFFKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/mattcomi/XLIFFKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a2367f4 Update README.md
Cloned https://github.com/mattcomi/XLIFFKit.git
Revision (git rev-parse @):
a2367f4942d8dda85538184eefdd5d0261cd71e9
SUCCESS checkout https://github.com/mattcomi/XLIFFKit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/mattcomi/XLIFFKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling XLIFFKit XLIFFFile.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:12:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
10 | public var body: XLIFFBody
11 |
12 | init(_ xmlElement: XMLElement, uuid: UUID) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
13 | self.uuid = uuid
14 | original = try xmlElement.attribute(forName: "original").stringValue ?? ""
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:8:41: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
6 | public private(set) var translationUnits = [XLIFFTranslationUnit]()
7 | private var translationUnitByUUID = [UUID: XLIFFTranslationUnit]()
8 | private var xmlElementByUUID = [UUID: XMLElement]()
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
9 |
10 | /// The UUIDs of all the translation units that have been changed by calling ``setTranslationUnit(forUUID:to:)``.
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:14:31: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
12 | init(_ xmlElement: XMLElement, uuid: UUID) throws {
13 | self.uuid = uuid
14 | original = try xmlElement.attribute(forName: "original").stringValue ?? ""
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
15 | sourceLanguage = try xmlElement.attribute(forName: "source-language").stringValue ?? ""
16 | targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:15:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
13 | self.uuid = uuid
14 | original = try xmlElement.attribute(forName: "original").stringValue ?? ""
15 | sourceLanguage = try xmlElement.attribute(forName: "source-language").stringValue ?? ""
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
16 | targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
17 |
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:16:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
14 | original = try xmlElement.attribute(forName: "original").stringValue ?? ""
15 | sourceLanguage = try xmlElement.attribute(forName: "source-language").stringValue ?? ""
16 | targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
17 |
18 | self.body = try XLIFFBody(try xmlElement.firstElement(forName: "body"))
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:18:46: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
16 | targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
17 |
18 | self.body = try XLIFFBody(try xmlElement.firstElement(forName: "body"))
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
19 | }
20 | }
[4/11] Compiling XLIFFKit XLIFFError.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:8: warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XLIFFError.KeyType'; this is an error in the Swift 6 language mode
4 |
5 | public enum XLIFFError: Error, Equatable {
6 | public enum KeyType {
| `- note: consider making enum 'KeyType' conform to the 'Sendable' protocol
7 | case attribute
8 | case element
:
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XLIFFError.KeyType'; this is an error in the Swift 6 language mode
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:8: warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XMLElement' (aka 'AnyObject'); this is an error in the Swift 6 language mode
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XMLElement' (aka 'AnyObject'); this is an error in the Swift 6 language mode
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
3 | import Foundation
4 |
5 | public enum XLIFFError: Error, Equatable {
| `- error: type 'XLIFFError' does not conform to protocol 'Equatable'
6 | public enum KeyType {
7 | case attribute
:
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
1 | extension FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
3 | public static func < (lhs: Self, rhs: Self) -> Bool
4 | public static func <= (lhs: Self, rhs: Self) -> Bool
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
1 | extension BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
| `- note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
3 | public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
4 | public static func < <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
Swift._Pointer:2:24: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
1 | extension _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '_Pointer'
3 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
| `- note: candidate would match if 'XLIFFError' conformed to '_Pointer'
4 | @inlinable public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
5 | }
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
1 | extension Strideable {
2 | @inlinable public static func < (x: Self, y: Self) -> Bool
3 | @inlinable public static func == (x: Self, y: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'Strideable'
4 | }
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
1 | extension StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
| `- note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
3 | @inlinable public static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
4 | @inlinable public static func < <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
Swift.SIMD:4:24: note: candidate would match if 'XLIFFError' conformed to 'SIMD'
2 | public var indices: Range<Int> { get }
3 | public init(repeating value: Self.Scalar)
4 | public static func == (a: Self, b: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'SIMD'
5 | @inlinable public func hash(into hasher: inout Hasher)
6 | public func encode(to encoder: any Encoder) throws
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
3 | public var description: String { get }
4 | public func hash(into hasher: inout Hasher)
5 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
| `- note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
6 | }
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
1 | extension __BridgedNSError where Self : RawRepresentable, Self.RawValue : FixedWidthInteger {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
3 | }
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
1 | extension _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
3 | }
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
3 | }
[5/11] Compiling XLIFFKit XLIFFState.swift
[6/11] Compiling XLIFFKit XMLElementExtensions.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
3 | import Foundation
4 |
5 | extension XMLElement {
| `- error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
6 | func attribute(forName name: String) throws -> XMLNode {
7 | guard let attribute = self.attribute(forName: name) else {
[7/11] Compiling XLIFFKit XLIFFTranslationUnit.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:13:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | public var state: XLIFFState?
12 |
13 | init(_ xmlElement: XMLElement, uuid: UUID) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
14 | self.uuid = uuid
15 |
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:40:28: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
38 | }
39 |
40 | func save(to xmlElement: XMLElement) {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
41 | guard xmlElement.attribute(forName: "id")?.stringValue == id else {
42 | fatalError()
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:61:56: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
59 | }
60 |
61 | private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
63 | return targetElement
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:61:71: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
59 | }
60 |
61 | private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
63 | return targetElement
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:16:25: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
14 | self.uuid = uuid
15 |
16 | id = try xmlElement.attribute(forName: "id").stringValue ?? ""
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
17 | source = try xmlElement.firstElement(forName: "source").stringValue ?? ""
18 | note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:17:29: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
15 |
16 | id = try xmlElement.attribute(forName: "id").stringValue ?? ""
17 | source = try xmlElement.firstElement(forName: "source").stringValue ?? ""
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
18 | note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
19 |
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:18:23: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
16 | id = try xmlElement.attribute(forName: "id").stringValue ?? ""
17 | source = try xmlElement.firstElement(forName: "source").stringValue ?? ""
18 | note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
19 |
20 | let targetXMLElement = xmlElement.firstElementIfExists(forName: "target")
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:20:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
18 | note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
19 |
20 | let targetXMLElement = xmlElement.firstElementIfExists(forName: "target")
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
21 |
22 | target = targetXMLElement?.stringValue
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:41:22: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
39 |
40 | func save(to xmlElement: XMLElement) {
41 | guard xmlElement.attribute(forName: "id")?.stringValue == id else {
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
42 | fatalError()
43 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:47:24: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'stringValue'
45 | if target != nil || state != nil {
46 | let targetXMLElement = addTargetElementIfNeeded(to: xmlElement)
47 | targetXMLElement.stringValue = target
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'stringValue'
48 |
49 | if let state {
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:26: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addAttribute'
48 |
49 | if let state {
50 | targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addAttribute'
51 | }
52 | } else if target == nil {
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:47: error: type 'XMLNode' (aka 'AnyObject') has no member 'attribute'
48 |
49 | if let state {
50 | targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
| `- error: type 'XMLNode' (aka 'AnyObject') has no member 'attribute'
51 | }
52 | } else if target == nil {
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:53:33: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
51 | }
52 | } else if target == nil {
53 | if let index = xmlElement.firstElementIfExists(forName: "target")?.index {
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
54 | xmlElement.removeChild(at: index)
55 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:54:20: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'removeChild'
52 | } else if target == nil {
53 | if let index = xmlElement.firstElementIfExists(forName: "target")?.index {
54 | xmlElement.removeChild(at: index)
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'removeChild'
55 | }
56 | } else if state == nil {
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:57:18: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
55 | }
56 | } else if state == nil {
57 | xmlElement.firstElementIfExists(forName: "target")?.removeAttribute(forName: "state")
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
58 | }
59 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:62:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
60 |
61 | private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
62 | if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
63 | return targetElement
64 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:66:33: error: type 'XMLNode' (aka 'AnyObject') has no member 'element'
64 | }
65 |
66 | let targetElement = XMLNode.element(withName: "target") as! XMLElement
| `- error: type 'XMLNode' (aka 'AnyObject') has no member 'element'
67 |
68 | xmlElement.addChild(targetElement)
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:68:16: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addChild'
66 | let targetElement = XMLNode.element(withName: "target") as! XMLElement
67 |
68 | xmlElement.addChild(targetElement)
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addChild'
69 |
70 | return targetElement
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/11] Emitting module XLIFFKit
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:8:41: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
6 | public private(set) var translationUnits = [XLIFFTranslationUnit]()
7 | private var translationUnitByUUID = [UUID: XLIFFTranslationUnit]()
8 | private var xmlElementByUUID = [UUID: XMLElement]()
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
9 |
10 | /// The UUIDs of all the translation units that have been changed by calling ``setTranslationUnit(forUUID:to:)``.
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:13:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | private(set) var changes = Set<UUID>()
12 |
13 | init(_ xmlElement: XMLElement) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
14 | for translationUnitXMLElement in xmlElement.elements(forName: "trans-unit") {
15 | let translationUnit = try XLIFFTranslationUnit(translationUnitXMLElement, uuid: UUID())
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:38:43: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
36 | }
37 |
38 | func xmlElement(withUUID uuid: UUID) -> XMLElement? {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
39 | xmlElementByUUID[uuid]
40 | }
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:6:28: error: 'XMLDocument' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
4 |
5 | public struct XLIFFDocument {
6 | private var xmlDocument: XMLDocument
| `- error: 'XMLDocument' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
7 |
8 | private var indexOfFileByUUID = [UUID: Int]()
Foundation.XMLDocument:2:18: note: 'XMLDocument' 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 XMLDocument = AnyObject
| `- note: 'XMLDocument' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:8: warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XLIFFError.KeyType'; this is an error in the Swift 6 language mode
4 |
5 | public enum XLIFFError: Error, Equatable {
6 | public enum KeyType {
| `- note: consider making enum 'KeyType' conform to the 'Sendable' protocol
7 | case attribute
8 | case element
:
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XLIFFError.KeyType'; this is an error in the Swift 6 language mode
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:8: warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XMLElement' (aka 'AnyObject'); this is an error in the Swift 6 language mode
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- warning: associated value 'keyNotFound(_:name:parent:)' of 'Sendable'-conforming enum 'XLIFFError' has non-sendable type 'XMLElement' (aka 'AnyObject'); this is an error in the Swift 6 language mode
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
3 | import Foundation
4 |
5 | public enum XLIFFError: Error, Equatable {
| `- error: type 'XLIFFError' does not conform to protocol 'Equatable'
6 | public enum KeyType {
7 | case attribute
:
10 |
11 | case rootElementNotFound
12 | case keyNotFound(KeyType, name: String, parent: XMLElement)
| `- note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
13 | case fileNotFound(UUID)
14 | case translationUnitNotFound(UUID)
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
1 | extension FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
3 | public static func < (lhs: Self, rhs: Self) -> Bool
4 | public static func <= (lhs: Self, rhs: Self) -> Bool
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
1 | extension BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
| `- note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
3 | public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
4 | public static func < <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
Swift._Pointer:2:24: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
1 | extension _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '_Pointer'
3 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
| `- note: candidate would match if 'XLIFFError' conformed to '_Pointer'
4 | @inlinable public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
5 | }
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
1 | extension Strideable {
2 | @inlinable public static func < (x: Self, y: Self) -> Bool
3 | @inlinable public static func == (x: Self, y: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'Strideable'
4 | }
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
1 | extension StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
| `- note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
3 | @inlinable public static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
4 | @inlinable public static func < <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
Swift.SIMD:4:24: note: candidate would match if 'XLIFFError' conformed to 'SIMD'
2 | public var indices: Range<Int> { get }
3 | public init(repeating value: Self.Scalar)
4 | public static func == (a: Self, b: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to 'SIMD'
5 | @inlinable public func hash(into hasher: inout Hasher)
6 | public func encode(to encoder: any Encoder) throws
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
3 | public var description: String { get }
4 | public func hash(into hasher: inout Hasher)
5 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
| `- note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
6 | }
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
1 | extension __BridgedNSError where Self : RawRepresentable, Self.RawValue : FixedWidthInteger {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
3 | }
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
1 | extension _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
3 | }
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
3 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:12:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
10 | public var body: XLIFFBody
11 |
12 | init(_ xmlElement: XMLElement, uuid: UUID) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
13 | self.uuid = uuid
14 | original = try xmlElement.attribute(forName: "original").stringValue ?? ""
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:13:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | public var state: XLIFFState?
12 |
13 | init(_ xmlElement: XMLElement, uuid: UUID) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
14 | self.uuid = uuid
15 |
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:40:28: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
38 | }
39 |
40 | func save(to xmlElement: XMLElement) {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
41 | guard xmlElement.attribute(forName: "id")?.stringValue == id else {
42 | fatalError()
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:61:56: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
59 | }
60 |
61 | private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
63 | return targetElement
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:61:71: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
59 | }
60 |
61 | private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
62 | if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
63 | return targetElement
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
3 | import Foundation
4 |
5 | extension XMLElement {
| `- error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
6 | func attribute(forName name: String) throws -> XMLNode {
7 | guard let attribute = self.attribute(forName: name) else {
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:10:23: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
8 | }
9 |
10 | func elements() -> [XMLElement] {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | self.compactMap { $0 as? XMLElement }
12 | }
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:5:37: error: 'XMLNode' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
3 | import Foundation
4 |
5 | extension Collection where Element: XMLNode {
| `- error: 'XMLNode' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
6 | func first(withName name: String) -> Self.Element? {
7 | first { $0.name == name }
Foundation.XMLNode:2:18: note: 'XMLNode' 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 XMLNode = AnyObject
| `- note: 'XMLNode' has been explicitly marked unavailable here
[9/11] Compiling XLIFFKit XLIFFBody.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:8:41: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
6 | public private(set) var translationUnits = [XLIFFTranslationUnit]()
7 | private var translationUnitByUUID = [UUID: XLIFFTranslationUnit]()
8 | private var xmlElementByUUID = [UUID: XMLElement]()
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
9 |
10 | /// The UUIDs of all the translation units that have been changed by calling ``setTranslationUnit(forUUID:to:)``.
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:13:22: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | private(set) var changes = Set<UUID>()
12 |
13 | init(_ xmlElement: XMLElement) throws {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
14 | for translationUnitXMLElement in xmlElement.elements(forName: "trans-unit") {
15 | let translationUnit = try XLIFFTranslationUnit(translationUnitXMLElement, uuid: UUID())
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:38:43: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
36 | }
37 |
38 | func xmlElement(withUUID uuid: UUID) -> XMLElement? {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
39 | xmlElementByUUID[uuid]
40 | }
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:14:49: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'elements'
12 |
13 | init(_ xmlElement: XMLElement) throws {
14 | for translationUnitXMLElement in xmlElement.elements(forName: "trans-unit") {
| `- error: value of type 'XMLElement' (aka 'AnyObject') has no member 'elements'
15 | let translationUnit = try XLIFFTranslationUnit(translationUnitXMLElement, uuid: UUID())
16 |
[10/11] Compiling XLIFFKit XLIFFDocument.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:6:28: error: 'XMLDocument' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
4 |
5 | public struct XLIFFDocument {
6 | private var xmlDocument: XMLDocument
| `- error: 'XMLDocument' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
7 |
8 | private var indexOfFileByUUID = [UUID: Int]()
Foundation.XMLDocument:2:18: note: 'XMLDocument' 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 XMLDocument = AnyObject
| `- note: 'XMLDocument' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:14:23: error: 'XMLDocument' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
12 |
13 | public init(data: Data) throws {
14 | xmlDocument = try XMLDocument(data: data)
| `- error: 'XMLDocument' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 |
16 | guard let rootElement = xmlDocument.rootElement() else {
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:16:41: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'rootElement'
14 | xmlDocument = try XMLDocument(data: data)
15 |
16 | guard let rootElement = xmlDocument.rootElement() else {
| `- error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'rootElement'
17 | throw XLIFFError.rootElementNotFound
18 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:24: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'xmlData'
68 |
69 | public func xmlData() -> Data {
70 | return xmlDocument.xmlData(options: .nodePrettyPrint)
| `- error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'xmlData'
71 | }
72 | }
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:42: error: cannot infer contextual base in reference to member 'nodePrettyPrint'
68 |
69 | public func xmlData() -> Data {
70 | return xmlDocument.xmlData(options: .nodePrettyPrint)
| `- error: cannot infer contextual base in reference to member 'nodePrettyPrint'
71 | }
72 | }
[11/11] Compiling XLIFFKit XMLNodeExtensions.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:10:23: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
8 | }
9 |
10 | func elements() -> [XMLElement] {
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
11 | self.compactMap { $0 as? XMLElement }
12 | }
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:5:37: error: 'XMLNode' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
3 | import Foundation
4 |
5 | extension Collection where Element: XMLNode {
| `- error: 'XMLNode' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
6 | func first(withName name: String) -> Self.Element? {
7 | first { $0.name == name }
Foundation.XMLNode:2:18: note: 'XMLNode' 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 XMLNode = AnyObject
| `- note: 'XMLNode' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:7:16: error: value of type 'Self.Element' has no member 'name'
5 | extension Collection where Element: XMLNode {
6 | func first(withName name: String) -> Self.Element? {
7 | first { $0.name == name }
| `- error: value of type 'Self.Element' has no member 'name'
8 | }
9 |
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:11:26: warning: conditional cast from 'Self.Element' to 'XMLElement' (aka 'AnyObject') always succeeds
9 |
10 | func elements() -> [XMLElement] {
11 | self.compactMap { $0 as? XMLElement }
| `- warning: conditional cast from 'Self.Element' to 'XMLElement' (aka 'AnyObject') always succeeds
12 | }
13 |
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:11:30: error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
9 |
10 | func elements() -> [XMLElement] {
11 | self.compactMap { $0 as? XMLElement }
| `- error: 'XMLElement' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
12 | }
13 |
Foundation.XMLElement:2:18: note: 'XMLElement' 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 XMLElement = AnyObject
| `- note: 'XMLElement' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:15:22: error: value of type 'Self.Element' has no member 'name'
13 |
14 | func filter(byName name: String) -> [Self.Element] {
15 | self.filter { $0.name == name }
| `- error: value of type 'Self.Element' has no member 'name'
16 | }
17 | }
BUILD FAILURE 6.0 linux