The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AvWeather, reference 0.0.7 (bce1d6), with Swift 6.3 for Linux on 10 Apr 2026 09:37:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:             6.3
Building package at path:  $PWD
https://github.com/bmonty/AvWeather.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling AvWeather MetarRequest.swift
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
  9 |
 10 |
 11 | public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
    |                                      `- error: cannot find type 'XMLParserDelegate' in scope
 12 |
 13 |     public typealias Response = [Metar]
/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.
 73 |     }
 74 |
 75 |     public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         switch elementName {
 77 |         case "data":
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |     }
116 |
117 |     public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
118 |         // found end of the METAR section, so save the data
119 |         if elementName == "METAR" {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
341 |
342 |     // get data from an element
343 |     public func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
344 |         buffer += string
345 |     }
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:61:35: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 59 |     public func decode(with data: Data) throws -> [Metar] {
 60 |         // parse data from ADDS and create an array of Metar structs
 61 |         let xmlParser = XMLParser.init(data: data)
    |                                   `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |         xmlParser.delegate = self
 63 |         if !xmlParser.parse() {
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:81:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
 79 |                 let count = Int(strCount) else {
 80 |                     parsingErrorMessage = "Failed to parse METAR XML."
 81 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
 82 |                     return
 83 |             }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:88:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
 86 |             if count == 0 {
 87 |                 parsingErrorMessage = "Invalid station string."
 88 |                 parser.abortParsing()
    |                        `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
 89 |             }
 90 |
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:140:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
138 |                 } else {
139 |                     parsingErrorMessage = "Failed to parse date from METAR XML."
140 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
141 |                     return
142 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:147:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
145 |                 guard let value = Double(buffer) else {
146 |                     parsingErrorMessage = "Failed to parse latitude."
147 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
148 |                     return
149 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:155:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
153 |                 guard let value = Double(buffer) else {
154 |                     parsingErrorMessage = "Failed to parse longitude."
155 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
156 |                     return
157 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:163:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
161 |                 guard let value = Double(buffer) else {
162 |                     parsingErrorMessage = "Failed to parse temperature."
163 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
164 |                     return
165 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:171:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
169 |                 guard let value = Double(buffer) else {
170 |                     parsingErrorMessage = "Failed to parse dewpoint."
171 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
172 |                     return
173 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:179:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
177 |                 guard let value = Int(buffer) else {
178 |                     parsingErrorMessage = "Failed to parse wind direction."
179 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
180 |                     return
181 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:187:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
185 |                 guard let value = Int(buffer) else {
186 |                     parsingErrorMessage = "Failed to parse wind speed."
187 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
188 |                     return
189 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:195:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
193 |                 guard let value = Int(buffer) else {
194 |                     parsingErrorMessage = "Failed to parse wind gust."
195 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
196 |                     return
197 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:203:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
201 |                 guard let value = Double(buffer) else {
202 |                     parsingErrorMessage = "Failed to parse visbility."
203 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
204 |                     return
205 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:211:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
209 |                 guard let value = Double(buffer) else {
210 |                     parsingErrorMessage = "Failed to parse altimeter setting."
211 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
212 |                     return
213 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:219:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
217 |                 guard let value = Double(buffer) else {
218 |                     parsingErrorMessage = "Failed to parse sea level pressure."
219 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
220 |                     return
221 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:227:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
225 |                 guard let flightCategory = Metar.FlightCategory.init(rawValue: buffer) else {
226 |                     parsingErrorMessage = "Failed to parse flight category."
227 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
228 |                     return
229 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:235:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
233 |                 guard let value = Double(buffer) else {
234 |                     parsingErrorMessage = "Failed to parse three hour pressure tendency."
235 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
236 |                     return
237 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:243:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
241 |                 guard let value = Double(buffer) else {
242 |                     parsingErrorMessage = "Failed to parse maximum air temperature from the past 6 hours."
243 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
244 |                     return
245 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:251:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
249 |                 guard let value = Double(buffer) else {
250 |                     parsingErrorMessage = "Failed to parse minimum air temperature from the past 6 hours."
251 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
252 |                     return
253 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:259:24: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
257 |             guard let value = Double(buffer) else {
258 |                 parsingErrorMessage = "Failed to parse maximum air temperature from the past 24 hours."
259 |                 parser.abortParsing()
    |                        `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
260 |                 return
261 |             }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:267:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
265 |                 guard let value = Double(buffer) else {
266 |                     parsingErrorMessage = "Failed to parse minimum air temperature from the past 24 hours."
267 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
268 |                     return
269 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:275:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
273 |                 guard let value = Double(buffer) else {
274 |                     parsingErrorMessage = "Failed to parse precip since last METAR."
275 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
276 |                     return
277 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:283:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
281 |                 guard let value = Double(buffer) else {
282 |                     parsingErrorMessage = "Failed to parse precip from last 3 hours."
283 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
284 |                     return
285 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:291:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
289 |                 guard let value = Double(buffer) else {
290 |                     parsingErrorMessage = "Failed to parse precip from last 6 hours."
291 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
292 |                     return
293 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:299:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
297 |                 guard let value = Double(buffer) else {
298 |                     parsingErrorMessage = "Failed to parse precip from last 24 hours."
299 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
300 |                     return
301 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:307:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
305 |                 guard let value = Double(buffer) else {
306 |                     parsingErrorMessage = "Failed to parse snow depth."
307 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
308 |                     return
309 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:315:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
313 |                 guard let value = Int(buffer) else {
314 |                     parsingErrorMessage = "Failed to parse vertical visibility."
315 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
316 |                     return
317 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:323:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
321 |                 guard let metarType = Metar.MetarType.init(rawValue: buffer) else {
322 |                     parsingErrorMessage = "Failed to parse METAR type."
323 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
324 |                     return
325 |                 }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:331:28: error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
329 |                 guard let value = Double(buffer) else {
330 |                     parsingErrorMessage = "Failed to parse station elevation."
331 |                     parser.abortParsing()
    |                            `- error: value of type 'XMLParser' (aka 'AnyObject') has no member 'abortParsing'
332 |                     return
333 |                 }
[4/8] Compiling AvWeather ADDSRequest.swift
[5/8] Compiling AvWeather AvWeatherError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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
 53 |
 54 |         /// Unique ID for this object.
 55 |         public let id = UUID()
    |                    |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |                    |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'id' case to silence this warning
    |                    `- note: make the property mutable instead
 56 |         /// Reported sky cover (i.e. CLR, FEW, SCT, OVC, etc.).
 57 |         public let skyCover: SkyCoverConditions
[7/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.
14 |
15 |     private let addsUrlString = "https://aviationweather.gov/adds/dataserver_current/httpparam"
16 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 |     public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         self.session = session
20 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: value of type '_' expected to be instance of class or class-constrained type
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
19 |         self.session = session
20 |     }
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |         self.session = session
20 |     }
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:24:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
22 |     public func send<T: ADDSRequest>(_ request: T,
23 |                                      completion: @escaping ADDSClientCallback<T.Response>) {
24 |         let task = session.dataTask(with: getUrl(for: request)) { data, response, error in
   |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
25 |             guard let httpResponse = response as? HTTPURLResponse else {
26 |                 completion(.failure(AvWeatherError.generic(message: "Can't get HTTP response info.")))
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:30:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
28 |             }
29 |
30 |             if !(200...299).contains(httpResponse.statusCode) {
   |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 completion(.failure(AvWeatherError.server(message: "Got status code \(httpResponse.statusCode) from server.")))
32 |                 return
[8/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.
14 |
15 |     private let addsUrlString = "https://aviationweather.gov/adds/dataserver_current/httpparam"
16 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 |     public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         self.session = session
20 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |         self.session = session
20 |     }
/host/spi-builder-workspace/Sources/AvWeather/ADDSClient.swift:18:40: error: value of type '_' expected to be instance of class or class-constrained type
16 |     private let session: URLSession
17 |
18 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
19 |         self.session = session
20 |     }
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:11:38: error: cannot find type 'XMLParserDelegate' in scope
  9 |
 10 |
 11 | public class MetarRequest: NSObject, XMLParserDelegate, ADDSRequest {
    |                                      `- error: cannot find type 'XMLParserDelegate' in scope
 12 |
 13 |     public typealias Response = [Metar]
/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.
 73 |     }
 74 |
 75 |     public func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 76 |         switch elementName {
 77 |         case "data":
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:117:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
115 |     }
116 |
117 |     public func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
118 |         // found end of the METAR section, so save the data
119 |         if elementName == "METAR" {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AvWeather/Requests/MetarRequest.swift:343:34: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
341 |
342 |     // get data from an element
343 |     public func parser(_ parser: XMLParser, foundCharacters string: String) {
    |                                  `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
344 |         buffer += string
345 |     }
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
BUILD FAILURE 6.3 linux