This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build MapboxSpeech with Swift 6.0 (beta) for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mapbox/mapbox-speech-swift.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/mapbox/mapbox-speech-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a9ef284 Merge pull request #60 from mapbox/kried/2.1.1
Cloned https://github.com/mapbox/mapbox-speech-swift.git
Revision (git rev-parse @):
a9ef284deae227c6111c27a3535098c1e9a9d8e3
SUCCESS checkout https://github.com/mapbox/mapbox-speech-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mapbox/mapbox-speech-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling MapboxSpeech MBSpeechOptions.swift
[5/10] Emitting module MapboxSpeech
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:41:25: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
 39 |         system = "unknown"
 40 |     #endif
 41 |     let systemVersion = ProcessInfo().operatingSystemVersion
    |                         `- error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
 42 |     components.append("\(system)/\(systemVersion.majorVersion).\(systemVersion.minorVersion).\(systemVersion.patchVersion)")
 43 |
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
 1 | open class ProcessInfo : NSObject {
 2 |     public static let processInfo: ProcessInfo
 3 |     override internal init()
   |                       `- note: 'init()' declared here
 4 |     open var environment: [String : String] { get }
 5 |     open var arguments: [String] { get }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:88:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SpeechSynthesizer' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |  Use `AVAudioPlayer` to play the audio that a speech synthesizer object produces.
 77 |  */
 78 | open class SpeechSynthesizer {
    |            `- note: class 'SpeechSynthesizer' does not conform to the 'Sendable' protocol
 79 |     public typealias CompletionHandler = (_ data: Data?, _ error: SpeechError?) -> Void
 80 |
    :
 86 |      To use this object, specify a Mapbox [access token](https://www.mapbox.com/help/define-access-token/) in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 87 |      */
 88 |     public static let shared = SpeechSynthesizer(accessToken: nil)
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SpeechSynthesizer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 |     /// The API endpoint to request the audio from.
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:150:124: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |      - returns: The data task used to perform the HTTP request. If, while waiting for the completion handler to execute, you no longer want the resulting audio, cancel this task.
149 |      */
150 |     @discardableResult open func audioData(with options: SpeechOptions, completionHandler: @escaping CompletionHandler) -> URLSessionDataTask {
    |                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |         let url = self.url(forSynthesizing: options)
152 |         let task = dataTask(with: url, completionHandler: { (data) in
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:174:158: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |      - postcondition: The caller must resume the returned task.
173 |      */
174 |     fileprivate func dataTask(with url: URL, completionHandler: @escaping (_ data: Data) -> Void, errorHandler: @escaping (_ error: SpeechError) -> Void) -> URLSessionDataTask {
    |                                                                                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 |
176 |         var request = URLRequest(url: url)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:240:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |      Returns an error that supplements the given underlying error with additional information from the an HTTP response’s body or headers.
239 |      */
240 |     static func informativeError(code: String?, message: String?, response: URLResponse?, underlyingError error: Error?) -> SpeechError {
    |                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         if let response = response as? HTTPURLResponse {
242 |             switch (response.statusCode, code ?? "") {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:257:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |     case invalidResponse
256 |     case rateLimited(rateLimitInterval: TimeInterval?, rateLimit: UInt?, resetTime: Date?)
257 |     case unknown(response: URLResponse?, underlying: Error?, code: String?, message: String?)
    |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 |     public var failureReason: String? {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:257:10: warning: associated value 'unknown(response:underlying:code:message:)' of 'Sendable'-conforming enum 'SpeechError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
255 |     case invalidResponse
256 |     case rateLimited(rateLimitInterval: TimeInterval?, rateLimit: UInt?, resetTime: Date?)
257 |     case unknown(response: URLResponse?, underlying: Error?, code: String?, message: String?)
    |          `- warning: associated value 'unknown(response:underlying:code:message:)' of 'Sendable'-conforming enum 'SpeechError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
258 |
259 |     public var failureReason: String? {
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:299:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
297 | }
298 |
299 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
300 |     var rateLimit: UInt? {
301 |         guard let limit = allHeaderFields["X-Rate-Limit-Limit"] as? String else {
[6/10] Compiling MapboxSpeech MapboxSpeech.swift
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:41:25: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
 39 |         system = "unknown"
 40 |     #endif
 41 |     let systemVersion = ProcessInfo().operatingSystemVersion
    |                         `- error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
 42 |     components.append("\(system)/\(systemVersion.majorVersion).\(systemVersion.minorVersion).\(systemVersion.patchVersion)")
 43 |
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
 1 | open class ProcessInfo : NSObject {
 2 |     public static let processInfo: ProcessInfo
 3 |     override internal init()
   |                       `- note: 'init()' declared here
 4 |     open var environment: [String : String] { get }
 5 |     open var arguments: [String] { get }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:88:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SpeechSynthesizer' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |  Use `AVAudioPlayer` to play the audio that a speech synthesizer object produces.
 77 |  */
 78 | open class SpeechSynthesizer {
    |            `- note: class 'SpeechSynthesizer' does not conform to the 'Sendable' protocol
 79 |     public typealias CompletionHandler = (_ data: Data?, _ error: SpeechError?) -> Void
 80 |
    :
 86 |      To use this object, specify a Mapbox [access token](https://www.mapbox.com/help/define-access-token/) in the `MBXAccessToken` key in the main application bundle’s Info.plist.
 87 |      */
 88 |     public static let shared = SpeechSynthesizer(accessToken: nil)
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SpeechSynthesizer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 |     /// The API endpoint to request the audio from.
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:150:124: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |      - returns: The data task used to perform the HTTP request. If, while waiting for the completion handler to execute, you no longer want the resulting audio, cancel this task.
149 |      */
150 |     @discardableResult open func audioData(with options: SpeechOptions, completionHandler: @escaping CompletionHandler) -> URLSessionDataTask {
    |                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |         let url = self.url(forSynthesizing: options)
152 |         let task = dataTask(with: url, completionHandler: { (data) in
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:174:158: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |      - postcondition: The caller must resume the returned task.
173 |      */
174 |     fileprivate func dataTask(with url: URL, completionHandler: @escaping (_ data: Data) -> Void, errorHandler: @escaping (_ error: SpeechError) -> Void) -> URLSessionDataTask {
    |                                                                                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 |
176 |         var request = URLRequest(url: url)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:240:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |      Returns an error that supplements the given underlying error with additional information from the an HTTP response’s body or headers.
239 |      */
240 |     static func informativeError(code: String?, message: String?, response: URLResponse?, underlyingError error: Error?) -> SpeechError {
    |                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         if let response = response as? HTTPURLResponse {
242 |             switch (response.statusCode, code ?? "") {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:257:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |     case invalidResponse
256 |     case rateLimited(rateLimitInterval: TimeInterval?, rateLimit: UInt?, resetTime: Date?)
257 |     case unknown(response: URLResponse?, underlying: Error?, code: String?, message: String?)
    |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 |     public var failureReason: String? {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:257:10: warning: associated value 'unknown(response:underlying:code:message:)' of 'Sendable'-conforming enum 'SpeechError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
255 |     case invalidResponse
256 |     case rateLimited(rateLimitInterval: TimeInterval?, rateLimit: UInt?, resetTime: Date?)
257 |     case unknown(response: URLResponse?, underlying: Error?, code: String?, message: String?)
    |          `- warning: associated value 'unknown(response:underlying:code:message:)' of 'Sendable'-conforming enum 'SpeechError' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
258 |
259 |     public var failureReason: String? {
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:299:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
297 | }
298 |
299 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
300 |     var rateLimit: UInt? {
301 |         guard let limit = allHeaderFields["X-Rate-Limit-Limit"] as? String else {
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:98:32: error: cannot find 'Selector' in scope
 96 |     private var skuToken: String? {
 97 |         guard let mbx: AnyClass = NSClassFromString("MBXAccounts"),
 98 |               mbx.responds(to: Selector(("serviceSkuToken"))),
    |                                `- error: cannot find 'Selector' in scope
 99 |               let serviceSkuToken = mbx.value(forKeyPath: "serviceSkuToken") as? String
100 |         else { return nil }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:98:19: error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'responds'
 96 |     private var skuToken: String? {
 97 |         guard let mbx: AnyClass = NSClassFromString("MBXAccounts"),
 98 |               mbx.responds(to: Selector(("serviceSkuToken"))),
    |                   `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'responds'
 99 |               let serviceSkuToken = mbx.value(forKeyPath: "serviceSkuToken") as? String
100 |         else { return nil }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:99:41: error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'value'
 97 |         guard let mbx: AnyClass = NSClassFromString("MBXAccounts"),
 98 |               mbx.responds(to: Selector(("serviceSkuToken"))),
 99 |               let serviceSkuToken = mbx.value(forKeyPath: "serviceSkuToken") as? String
    |                                         `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'value'
100 |         else { return nil }
101 |         if mbx.responds(to: Selector(("serviceAccessToken"))) {
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:101:29: error: cannot find 'Selector' in scope
 99 |               let serviceSkuToken = mbx.value(forKeyPath: "serviceSkuToken") as? String
100 |         else { return nil }
101 |         if mbx.responds(to: Selector(("serviceAccessToken"))) {
    |                             `- error: cannot find 'Selector' in scope
102 |             guard let serviceAccessToken = mbx.value(forKeyPath: "serviceAccessToken") as? String,
103 |                   serviceAccessToken == accessToken
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:101:16: error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'responds'
 99 |               let serviceSkuToken = mbx.value(forKeyPath: "serviceSkuToken") as? String
100 |         else { return nil }
101 |         if mbx.responds(to: Selector(("serviceAccessToken"))) {
    |                `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'responds'
102 |             guard let serviceAccessToken = mbx.value(forKeyPath: "serviceAccessToken") as? String,
103 |                   serviceAccessToken == accessToken
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:102:48: error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'value'
100 |         else { return nil }
101 |         if mbx.responds(to: Selector(("serviceAccessToken"))) {
102 |             guard let serviceAccessToken = mbx.value(forKeyPath: "serviceAccessToken") as? String,
    |                                                `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') has no member 'value'
103 |                   serviceAccessToken == accessToken
104 |             else { return nil }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:161:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
159 |             }
160 |         }
161 |         task.resume()
    |              `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
162 |         return task
163 |     }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:154:17: warning: capture of 'completionHandler' with non-sendable type 'SpeechSynthesizer.CompletionHandler' (aka '(Optional<Data>, Optional<SpeechError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |         let task = dataTask(with: url, completionHandler: { (data) in
153 |             DispatchQueue.main.async {
154 |                 completionHandler(data, nil)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'SpeechSynthesizer.CompletionHandler' (aka '(Optional<Data>, Optional<SpeechError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 |             }
156 |         }) { (error) in
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:158:17: warning: capture of 'completionHandler' with non-sendable type 'SpeechSynthesizer.CompletionHandler' (aka '(Optional<Data>, Optional<SpeechError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |         }) { (error) in
157 |             DispatchQueue.main.async {
158 |                 completionHandler(nil, error)
    |                 |- warning: capture of 'completionHandler' with non-sendable type 'SpeechSynthesizer.CompletionHandler' (aka '(Optional<Data>, Optional<SpeechError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 |             }
160 |         }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:176:23: error: cannot find 'URLRequest' in scope
174 |     fileprivate func dataTask(with url: URL, completionHandler: @escaping (_ data: Data) -> Void, errorHandler: @escaping (_ error: SpeechError) -> Void) -> URLSessionDataTask {
175 |
176 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
177 |         request.setValue(userAgent, forHTTPHeaderField: "User-Agent")
178 |         let task = URLSession.shared.dataTask(with: request as URLRequest) { (possibleData, possibleResponse, possibleError) in
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:178:64: error: cannot find type 'URLRequest' in scope
176 |         var request = URLRequest(url: url)
177 |         request.setValue(userAgent, forHTTPHeaderField: "User-Agent")
178 |         let task = URLSession.shared.dataTask(with: request as URLRequest) { (possibleData, possibleResponse, possibleError) in
    |                                                                `- error: cannot find type 'URLRequest' in scope
179 |             if let error = possibleError {
180 |                 errorHandler(.unknown(response: possibleResponse, underlying: error, code: nil, message: nil))
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:178:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 |         var request = URLRequest(url: url)
177 |         request.setValue(userAgent, forHTTPHeaderField: "User-Agent")
178 |         let task = URLSession.shared.dataTask(with: request as URLRequest) { (possibleData, possibleResponse, possibleError) in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
179 |             if let error = possibleError {
180 |                 errorHandler(.unknown(response: possibleResponse, underlying: error, code: nil, message: nil))
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:180:49: error: argument type '_' expected to be an instance of a class or class-constrained type
178 |         let task = URLSession.shared.dataTask(with: request as URLRequest) { (possibleData, possibleResponse, possibleError) in
179 |             if let error = possibleError {
180 |                 errorHandler(.unknown(response: possibleResponse, underlying: error, code: nil, message: nil))
    |                                                 `- error: argument type '_' expected to be an instance of a class or class-constrained type
181 |                 return
182 |             }
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:241:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
239 |      */
240 |     static func informativeError(code: String?, message: String?, response: URLResponse?, underlyingError error: Error?) -> SpeechError {
241 |         if let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
242 |             switch (response.statusCode, code ?? "") {
243 |             case (429, _):
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:241:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |      */
240 |     static func informativeError(code: String?, message: String?, response: URLResponse?, underlyingError error: Error?) -> SpeechError {
241 |         if let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             switch (response.statusCode, code ?? "") {
243 |             case (429, _):
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:242:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
240 |     static func informativeError(code: String?, message: String?, response: URLResponse?, underlyingError error: Error?) -> SpeechError {
241 |         if let response = response as? HTTPURLResponse {
242 |             switch (response.statusCode, code ?? "") {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
243 |             case (429, _):
244 |                 return .rateLimited(rateLimitInterval: response.rateLimitInterval, rateLimit: response.rateLimit, resetTime: response.rateLimitResetTime)
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:244:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimitInterval'
242 |             switch (response.statusCode, code ?? "") {
243 |             case (429, _):
244 |                 return .rateLimited(rateLimitInterval: response.rateLimitInterval, rateLimit: response.rateLimit, resetTime: response.rateLimitResetTime)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimitInterval'
245 |             default:
246 |                 return .unknown(response: response, underlying: error, code: code, message: message)
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:244:104: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimit'
242 |             switch (response.statusCode, code ?? "") {
243 |             case (429, _):
244 |                 return .rateLimited(rateLimitInterval: response.rateLimitInterval, rateLimit: response.rateLimit, resetTime: response.rateLimitResetTime)
    |                                                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimit'
245 |             default:
246 |                 return .unknown(response: response, underlying: error, code: code, message: message)
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:244:135: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimitResetTime'
242 |             switch (response.statusCode, code ?? "") {
243 |             case (429, _):
244 |                 return .rateLimited(rateLimitInterval: response.rateLimitInterval, rateLimit: response.rateLimit, resetTime: response.rateLimitResetTime)
    |                                                                                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'rateLimitResetTime'
245 |             default:
246 |                 return .unknown(response: response, underlying: error, code: code, message: message)
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:266:37: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
264 |             return "The server returned a response that isn’t correctly formatted."
265 |         case let .rateLimited(rateLimitInterval: interval, rateLimit: limit, _):
266 |             let intervalFormatter = DateComponentsFormatter()
    |                                     `- error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
267 |             intervalFormatter.unitsStyle = .full
268 |             guard let interval = interval, let limit = limit else {
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
 2 | open class DateComponentsFormatter : Formatter {
   |            `- note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 3 |     public enum UnitsStyle : Int {
 4 |         case positional
/host/spi-builder-workspace/Sources/MapboxSpeech/MapboxSpeech.swift:277:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
275 |             return message
276 |                 ?? (error as NSError?)?.userInfo[NSLocalizedFailureReasonErrorKey] as? String
277 |                 ?? HTTPURLResponse.localizedString(forStatusCode: (error as NSError?)?.code ?? -1)
    |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
278 |         }
279 |     }
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.