Build Information
Failed to build XLIFFKit with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.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: 5.10
Building package at path: $workDir
https://github.com/mattcomi/XLIFFKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] 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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func save(to xmlElement: XMLElement) {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:16:25: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
id = try xmlElement.attribute(forName: "id").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:17:29: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
source = try xmlElement.firstElement(forName: "source").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:18:23: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:20:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
let targetXMLElement = xmlElement.firstElementIfExists(forName: "target")
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:41:22: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
guard xmlElement.attribute(forName: "id")?.stringValue == id else {
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:47:24: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'stringValue'
targetXMLElement.stringValue = target
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:26: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addAttribute'
targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:47: error: type 'XMLNode' (aka 'AnyObject') has no member 'attribute'
targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:53:33: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
if let index = xmlElement.firstElementIfExists(forName: "target")?.index {
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:54:20: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'removeChild'
xmlElement.removeChild(at: index)
~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:57:18: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
xmlElement.firstElementIfExists(forName: "target")?.removeAttribute(forName: "state")
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:62:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:66:33: error: type 'XMLNode' (aka 'AnyObject') has no member 'element'
let targetElement = XMLNode.element(withName: "target") as! XMLElement
~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:68:16: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addChild'
xmlElement.addChild(targetElement)
~~~~~~~~~~ ^~~~~~~~
[4/10] Compiling XLIFFKit XMLElementExtensions.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
extension XMLElement {
^ ~~~~~~~~~~
[5/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.
func elements() -> [XMLElement] {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
extension Collection where Element: XMLNode {
^~~~~~~
Foundation.XMLNode:2:18: note: 'XMLNode' has been explicitly marked unavailable here
public typealias XMLNode = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:7:11: error: trailing closure passed to parameter of type 'String' that does not accept a closure
first { $0.name == name }
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:6:8: note: 'first(withName:)' declared here
func first(withName name: String) -> Self.Element? {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:11:26: warning: conditional cast from 'Self.Element' to 'XMLElement' (aka 'AnyObject') always succeeds
self.compactMap { $0 as? XMLElement }
^
/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.
self.compactMap { $0 as? XMLElement }
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:15:17: error: trailing closure passed to parameter of type 'String' that does not accept a closure
self.filter { $0.name == name }
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:14:8: note: 'filter(byName:)' declared here
func filter(byName name: String) -> [Self.Element] {
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func xmlElement(withUUID uuid: UUID) -> XMLElement? {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private var xmlDocument: XMLDocument
^~~~~~~~~~~
Foundation.XMLDocument:2:18: note: 'XMLDocument' has been explicitly marked unavailable here
public typealias XMLDocument = AnyObject
^
/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.
case keyNotFound(KeyType, name: String, parent: XMLElement)
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
public enum XLIFFError: Error, Equatable {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
case keyNotFound(KeyType, name: String, parent: XMLElement)
^
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
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'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
@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'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func save(to xmlElement: XMLElement) {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
extension XMLElement {
^ ~~~~~~~~~~
/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.
func elements() -> [XMLElement] {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
extension Collection where Element: XMLNode {
^~~~~~~
Foundation.XMLNode:2:18: note: 'XMLNode' has been explicitly marked unavailable here
public typealias XMLNode = AnyObject
^
[7/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.
private var xmlDocument: XMLDocument
^~~~~~~~~~~
Foundation.XMLDocument:2:18: note: 'XMLDocument' has been explicitly marked unavailable here
public typealias XMLDocument = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:14:23: error: 'XMLDocument' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
xmlDocument = try XMLDocument(data: data)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:16:41: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'rootElement'
guard let rootElement = xmlDocument.rootElement() else {
~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:24: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'xmlData'
return xmlDocument.xmlData(options: .nodePrettyPrint)
~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:42: error: cannot infer contextual base in reference to member 'nodePrettyPrint'
return xmlDocument.xmlData(options: .nodePrettyPrint)
~^~~~~~~~~~~~~~~
[8/11] Compiling XLIFFKit XLIFFState.swift
[9/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.
case keyNotFound(KeyType, name: String, parent: XMLElement)
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
public enum XLIFFError: Error, Equatable {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
case keyNotFound(KeyType, name: String, parent: XMLElement)
^
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
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'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
@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'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
[10/11] 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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:14:31: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
original = try xmlElement.attribute(forName: "original").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:15:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
sourceLanguage = try xmlElement.attribute(forName: "source-language").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:16:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:18:46: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
self.body = try XLIFFBody(try xmlElement.firstElement(forName: "body"))
~~~~~~~~~~ ^~~~~~~~~~~~
[11/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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func xmlElement(withUUID uuid: UUID) -> XMLElement? {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:14:49: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'elements'
for translationUnitXMLElement in xmlElement.elements(forName: "trans-unit") {
~~~~~~~~~~ ^~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] 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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:14:31: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
original = try xmlElement.attribute(forName: "original").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:15:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
sourceLanguage = try xmlElement.attribute(forName: "source-language").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:16:37: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
targetLanguage = try xmlElement.attribute(forName: "target-language").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFFile.swift:18:46: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
self.body = try XLIFFBody(try xmlElement.firstElement(forName: "body"))
~~~~~~~~~~ ^~~~~~~~~~~~
[3/9] 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.
case keyNotFound(KeyType, name: String, parent: XMLElement)
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
public enum XLIFFError: Error, Equatable {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
case keyNotFound(KeyType, name: String, parent: XMLElement)
^
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
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'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
@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'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
[4/9] 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.
private var xmlDocument: XMLDocument
^~~~~~~~~~~
Foundation.XMLDocument:2:18: note: 'XMLDocument' has been explicitly marked unavailable here
public typealias XMLDocument = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:14:23: error: 'XMLDocument' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
xmlDocument = try XMLDocument(data: data)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:16:41: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'rootElement'
guard let rootElement = xmlDocument.rootElement() else {
~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:24: error: value of type 'XMLDocument' (aka 'AnyObject') has no member 'xmlData'
return xmlDocument.xmlData(options: .nodePrettyPrint)
~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFDocument.swift:70:42: error: cannot infer contextual base in reference to member 'nodePrettyPrint'
return xmlDocument.xmlData(options: .nodePrettyPrint)
~^~~~~~~~~~~~~~~
[5/9] 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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func xmlElement(withUUID uuid: UUID) -> XMLElement? {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFBody.swift:14:49: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'elements'
for translationUnitXMLElement in xmlElement.elements(forName: "trans-unit") {
~~~~~~~~~~ ^~~~~~~~
[6/9] 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.
func elements() -> [XMLElement] {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
extension Collection where Element: XMLNode {
^~~~~~~
Foundation.XMLNode:2:18: note: 'XMLNode' has been explicitly marked unavailable here
public typealias XMLNode = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:7:11: error: trailing closure passed to parameter of type 'String' that does not accept a closure
first { $0.name == name }
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:6:8: note: 'first(withName:)' declared here
func first(withName name: String) -> Self.Element? {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:11:26: warning: conditional cast from 'Self.Element' to 'XMLElement' (aka 'AnyObject') always succeeds
self.compactMap { $0 as? XMLElement }
^
/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.
self.compactMap { $0 as? XMLElement }
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:15:17: error: trailing closure passed to parameter of type 'String' that does not accept a closure
self.filter { $0.name == name }
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XMLNodeExtensions.swift:14:8: note: 'filter(byName:)' declared here
func filter(byName name: String) -> [Self.Element] {
^
[7/9] Compiling XLIFFKit XMLElementExtensions.swift
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
extension XMLElement {
^ ~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] 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.
private var xmlElementByUUID = [UUID: XMLElement]()
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func xmlElement(withUUID uuid: UUID) -> XMLElement? {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private var xmlDocument: XMLDocument
^~~~~~~~~~~
Foundation.XMLDocument:2:18: note: 'XMLDocument' has been explicitly marked unavailable here
public typealias XMLDocument = AnyObject
^
/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.
case keyNotFound(KeyType, name: String, parent: XMLElement)
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:5:13: error: type 'XLIFFError' does not conform to protocol 'Equatable'
public enum XLIFFError: Error, Equatable {
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFError.swift:12:51: note: associated value type 'XMLElement' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'XLIFFError' to 'Equatable'
case keyNotFound(KeyType, name: String, parent: XMLElement)
^
Swift.==:1:24: note: candidate would match if 'XLIFFError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'XLIFFError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'XLIFFError' conformed to 'BinaryInteger'
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'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'XLIFFError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'XLIFFError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'XLIFFError' conformed to 'StringProtocol'
@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'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'XLIFFError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'XLIFFError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(XLIFFError, XLIFFError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func save(to xmlElement: XMLElement) {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XMLElementExtensions.swift:5:1: error: non-nominal type 'XMLElement' (aka 'AnyObject') cannot be extended
extension XMLElement {
^ ~~~~~~~~~~
/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.
func elements() -> [XMLElement] {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
extension Collection where Element: XMLNode {
^~~~~~~
Foundation.XMLNode:2:18: note: 'XMLNode' has been explicitly marked unavailable here
public typealias XMLNode = AnyObject
^
[9/9] 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.
init(_ xmlElement: XMLElement, uuid: UUID) throws {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
func save(to xmlElement: XMLElement) {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/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.
private func addTargetElementIfNeeded(to xmlElement: XMLElement) -> XMLElement {
^~~~~~~~~~
Foundation.XMLElement:2:18: note: 'XMLElement' has been explicitly marked unavailable here
public typealias XMLElement = AnyObject
^
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:16:25: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
id = try xmlElement.attribute(forName: "id").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:17:29: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElement'
source = try xmlElement.firstElement(forName: "source").stringValue ?? ""
~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:18:23: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
note = xmlElement.firstElementIfExists(forName: "note")?.stringValue
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:20:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
let targetXMLElement = xmlElement.firstElementIfExists(forName: "target")
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:41:22: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'attribute'
guard xmlElement.attribute(forName: "id")?.stringValue == id else {
~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:47:24: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'stringValue'
targetXMLElement.stringValue = target
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:26: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addAttribute'
targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:50:47: error: type 'XMLNode' (aka 'AnyObject') has no member 'attribute'
targetXMLElement.addAttribute(XMLNode.attribute(withName: "state", stringValue: state.rawValue) as! XMLNode)
~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:53:33: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
if let index = xmlElement.firstElementIfExists(forName: "target")?.index {
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:54:20: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'removeChild'
xmlElement.removeChild(at: index)
~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:57:18: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
xmlElement.firstElementIfExists(forName: "target")?.removeAttribute(forName: "state")
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:62:39: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'firstElementIfExists'
if let targetElement = xmlElement.firstElementIfExists(forName: "target") {
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:66:33: error: type 'XMLNode' (aka 'AnyObject') has no member 'element'
let targetElement = XMLNode.element(withName: "target") as! XMLElement
~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/XLIFFKit/XLIFFTranslationUnit.swift:68:16: error: value of type 'XMLElement' (aka 'AnyObject') has no member 'addChild'
xmlElement.addChild(targetElement)
~~~~~~~~~~ ^~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux