Build Information
Failed to build AvWeather with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/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/bmonty/AvWeather.git
Reference: 0.0.7
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/bmonty/AvWeather
* tag 0.0.7 -> FETCH_HEAD
HEAD is now at bce1d6a Merge pull request #5 from bmonty/multiple_stations
Cloned https://github.com/bmonty/AvWeather.git
Revision (git rev-parse @):
bce1d6a321be8cd651501c3a71430a344553f33a
SUCCESS checkout https://github.com/bmonty/AvWeather.git at 0.0.7
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/bmonty/AvWeather.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/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/8] Compiling AvWeather ADDSRequest.swift
[4/8] Compiling AvWeather MetarRequest.swift
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:75:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, foundCharacters string: String) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:61:35: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let xmlParser = XMLParser.init(data: data)
~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:81:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:88:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:140:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:147:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:155:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:163:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:171:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:179:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:187:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:195:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:203:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:211:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:219:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:227:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:235:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:243:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:251:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:259:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:267:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:275:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:283:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:291:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:299:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:307:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:315:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:323:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:331:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module AvWeather
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'id' case to silence this warning
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: make the property mutable instead
public let id = UUID()
~~~ ^
var
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:75:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, foundCharacters string: String) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
^~~~~~~~~~~~~~~~~
[6/8] Compiling AvWeather AvWeatherError.swift
[7/8] Compiling AvWeather Metar.swift
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'id' case to silence this warning
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: make the property mutable instead
public let id = UUID()
~~~ ^
var
[8/8] Compiling AvWeather ADDSClient.swift
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:24:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: getUrl(for: request)) { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:30:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200...299).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module AvWeather
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'id' case to silence this warning
public let id = UUID()
^
/host/spi-builder-workspace/Sources/AvWeather/Models/Metar.swift:55:20: note: make the property mutable instead
public let id = UUID()
~~~ ^
var
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:75:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, foundCharacters string: String) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
^~~~~~~~~~~~~~~~~
[3/4] Compiling AvWeather MetarRequest.swift
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:75:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
public func parser(_ parser: XMLParser, foundCharacters string: String) {
^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:61:35: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let xmlParser = XMLParser.init(data: data)
~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:81:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:88:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:140:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:147:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:155:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:163:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:171:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:179:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:187:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:195:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:203:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:211:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:219:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:227:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:235:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:243:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:251:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:259:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:267:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:275:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:283:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:291:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:299:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:307:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:315:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:323:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:331:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
[4/4] Compiling AvWeather ADDSClient.swift
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:24:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: getUrl(for: request)) { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:30:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200...299).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2