The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlertNotifications with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-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/IBM-Swift/alert-notification-sdk.git
Reference: 4.0.0
Cloned https://github.com/IBM-Swift/alert-notification-sdk.git into spi-builder-workspace
SUCCESS checkout https://github.com/IBM-Swift/alert-notification-sdk.git at 4.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/IBM-Swift/CloudEnvironment.git
[1/2059] Fetching cloudenvironment
Fetched https://github.com/IBM-Swift/CloudEnvironment.git (0.43s)
Computing version for https://github.com/IBM-Swift/CloudEnvironment.git
Computed https://github.com/IBM-Swift/CloudEnvironment.git at 9.1.200 (1.20s)
Fetching https://github.com/Kitura/Swift-cfenv.git
[1/1604] Fetching swift-cfenv
Fetched https://github.com/Kitura/Swift-cfenv.git (0.25s)
Computing version for https://github.com/Kitura/Swift-cfenv.git
Computed https://github.com/Kitura/Swift-cfenv.git at 6.0.200 (0.77s)
Fetching https://github.com/Kitura/Configuration.git
[1/1135] Fetching configuration
Fetched https://github.com/Kitura/Configuration.git (0.35s)
Computing version for https://github.com/Kitura/Configuration.git
Computed https://github.com/Kitura/Configuration.git at 3.1.0 (0.31s)
Fetching https://github.com/Kitura/FileKit.git
[1/298] Fetching filekit
Fetched https://github.com/Kitura/FileKit.git (0.26s)
Computing version for https://github.com/Kitura/FileKit.git
Computed https://github.com/Kitura/FileKit.git at 1.1.0 (0.31s)
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git (0.27s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.30s)
Fetching https://github.com/apple/swift-log.git
[1/3079] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.40s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.32s)
Creating working copy for https://github.com/Kitura/Configuration.git
Working copy of https://github.com/Kitura/Configuration.git resolved at 3.1.0
Creating working copy for https://github.com/Kitura/Swift-cfenv.git
Working copy of https://github.com/Kitura/Swift-cfenv.git resolved at 6.0.200
Creating working copy for https://github.com/IBM-Swift/CloudEnvironment.git
Working copy of https://github.com/IBM-Swift/CloudEnvironment.git resolved at 9.1.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2
Creating working copy for https://github.com/Kitura/FileKit.git
Working copy of https://github.com/Kitura/FileKit.git resolved at 1.1.0
Building for debugging...
[1/5] Compiling Logging MetadataProvider.swift
[2/5] Compiling Logging LogHandler.swift
[3/5] Compiling Logging Locks.swift
[4/5] Emitting module Logging
[5/5] Compiling Logging Logging.swift
[8/9] Emitting module LoggerAPI
[9/9] Compiling LoggerAPI Logger.swift
[12/13] Emitting module FileKit
[13/13] Compiling FileKit FileKit.swift
[16/21] Compiling Configuration JSONDeserializer.swift
[17/21] Compiling Configuration Deserializer.swift
[18/21] Compiling Configuration PLISTDeserializer.swift
[19/21] Compiling Configuration ConfigurationNode.swift
[20/21] Emitting module Configuration
[21/21] Compiling Configuration ConfigurationManager.swift
[24/30] Compiling CloudFoundryEnv DateUtils.swift
[25/30] Compiling CloudFoundryEnv CollectionUtils.swift
[26/30] Compiling CloudFoundryEnv Service.swift
[27/30] Compiling CloudFoundryEnv JSONUtils.swift
[28/30] Compiling CloudFoundryEnv App.swift
[29/30] Compiling CloudFoundryEnv AppEnv.swift
[30/30] Emitting module CloudFoundryEnv
[33/49] Emitting module CloudEnvironment
[34/51] Compiling CloudEnvironment PushSDKCredentials.swift
[35/51] Compiling CloudEnvironment RedisCredentials.swift
[36/51] Compiling CloudEnvironment AlertNotificationCredentials.swift
[37/51] Compiling CloudEnvironment AppIDCredentials.swift
[38/51] Compiling CloudEnvironment AutoScalingCredentials.swift
[39/51] Compiling CloudEnvironment WatsonAssistantCredentials.swift
[40/51] Compiling CloudEnvironment WeatherDataCompanyCredentials.swift
[41/51] Compiling CloudEnvironment ObjectStorageCredentials.swift
[42/51] Compiling CloudEnvironment PostgreSQLCredentials.swift
[43/51] Compiling CloudEnvironment MySQLCredentials.swift
[44/51] Compiling CloudEnvironment NaturalLanguageUnderstandingCredentials.swift
[45/51] Compiling CloudEnvironment Credentials.swift
[46/51] Compiling CloudEnvironment DB2Credentials.swift
[47/51] Compiling CloudEnvironment HDBaaSCredentials.swift
[48/51] Compiling CloudEnvironment MongoDBCredentials.swift
[49/51] Compiling CloudEnvironment CloudEnv.swift
[50/51] Compiling CloudEnvironment CloudFunctionsCredentials.swift
[51/51] Compiling CloudEnvironment CloudantCredentials.swift
[54/61] Compiling AlertNotifications MessageService.swift
[55/61] Compiling AlertNotifications SharedSession.swift
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:103: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                                                              ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
    class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
                                                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:24:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
[56/62] Compiling AlertNotifications Utils.swift
[57/62] Compiling AlertNotifications Message.swift
[58/62] Compiling AlertNotifications AlertNotificationCredentials.swift
[59/62] Compiling AlertNotifications AlertService.swift
[60/62] Compiling AlertNotifications CloudRequest.swift
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:51:71: error: cannot find type 'URLRequest' in scope
    func createRequest(forURL url: URL, withMethod method: String) -> URLRequest {
                                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:59:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlResponseCallbackWrapper(callback: @escaping (Data?, Int?, Swift.Error?) -> Void) -> (Data?, URLResponse?, Swift.Error?) -> Void {
                                                                                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:52:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest = URLRequest(url: url)
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:61:47: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
            guard let httpResponse = response as? HTTPURLResponse else {
                                     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
                                             
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:65:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            callback(data, httpResponse.statusCode, error)
                           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:77:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest = createRequest(forURL: apiURL, withMethod: "POST")
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
    class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:93:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest = createRequest(forURL: fullURL, withMethod: "GET")
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:105:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest = createRequest(forURL: fullURL, withMethod: "DELETE")
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:118:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest = createRequest(forURL: apiURL, withMethod: "POST")
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:134:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest = createRequest(forURL: fullURL, withMethod: "GET")
                     ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[61/62] Compiling AlertNotifications Alert.swift
[62/62] Emitting module AlertNotifications
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:51:71: error: cannot find type 'URLRequest' in scope
    func createRequest(forURL url: URL, withMethod method: String) -> URLRequest {
                                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:59:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlResponseCallbackWrapper(callback: @escaping (Data?, Int?, Swift.Error?) -> Void) -> (Data?, URLResponse?, Swift.Error?) -> Void {
                                                                                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:103: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
    private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
                                                                              ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
    class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
                                                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2