Build Information
Failed to build AvWeather with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bmonty/AvWeather.git
Reference: master
Cloned https://github.com/bmonty/AvWeather.git into spi-builder-workspace
SUCCESS checkout https://github.com/bmonty/AvWeather.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/9] Compiling AvWeather MetarRequest.swift
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:69: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:114: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:349: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:55: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:75:30: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:82:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:126:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:146:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:153:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:161:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:169:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:177:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:185:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:193:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:201:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:209:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:217:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:225:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:233:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:241:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:249:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:257:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:265:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:273:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:281:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:289:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:297:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:305:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:313:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:321:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:329:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:337:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
[2/10] Compiling AvWeather SigmetRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Emitting module AvWeather
/host/spi-builder-workspace/Sources/AvWeather/AWCClient.swift:19: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/AWCClient.swift:21: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/AWCClient.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:69: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:114: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:349: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/TAFRequest.swift:71: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/TAFRequest.swift:139: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/TAFRequest.swift:387: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/TAFRequest.swift:11:36: error: cannot find type 'XMLParserDelegate' in scope
public class TAFRequest: NSObject, XMLParserDelegate, AWCRequest {
^~~~~~~~~~~~~~~~~
[4/10] Compiling AvWeather TAFRequest.swift
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:71: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/TAFRequest.swift:139: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/TAFRequest.swift:387: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/TAFRequest.swift:11:36: error: cannot find type 'XMLParserDelegate' in scope
public class TAFRequest: NSObject, XMLParserDelegate, AWCRequest {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:57: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/TAFRequest.swift:79:30: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:86:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:147:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:188:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:198:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:208:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:218:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:228:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:236:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:244:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:262:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:271:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:278:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:289:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:296:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:304:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:312:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:320:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:328:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:336:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:344:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:352:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:360:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AvWeather/Requests/TAFRequest.swift:368:32: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
parser.abortParsing()
~~~~~~ ^~~~~~~~~~~~
[5/10] Compiling AvWeather AWCRequest.swift
[6/10] Compiling AvWeather TAF.swift
[7/10] Compiling AvWeather Metar.swift
[8/10] Compiling AvWeather Sigmet.swift
[9/10] Compiling AvWeather AWCClient.swift
/host/spi-builder-workspace/Sources/AvWeather/AWCClient.swift:19: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/AWCClient.swift:21: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/AWCClient.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/AWCClient.swift:42: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/AWCClient.swift:48:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200...299).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
[10/10] Compiling AvWeather AvWeatherError.swift
/host/spi-builder-workspace/Sources/AvWeather/AWCClient.swift:19: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/AWCClient.swift:21: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/AWCClient.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/AvWeather/AWCClient.swift:42: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/AWCClient.swift:48:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200...299).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1