The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlertNotifications, reference master (bde2f0), with Swift 6.2 for Linux on 17 Jun 2025 20:51:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IBM-Swift/alert-notification-sdk.git
Reference: master
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/IBM-Swift/alert-notification-sdk
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bde2f0b Merge pull request #27 from IBM-Swift/cloudenv9
Cloned https://github.com/IBM-Swift/alert-notification-sdk.git
Revision (git rev-parse @):
bde2f0bb7772a02c330694d8f034273331a2412e
SUCCESS checkout https://github.com/IBM-Swift/alert-notification-sdk.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/IBM-Swift/alert-notification-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/IBM-Swift/CloudEnvironment.git
[1/2059] Fetching cloudenvironment
Fetched https://github.com/IBM-Swift/CloudEnvironment.git from cache (0.80s)
Computing version for https://github.com/IBM-Swift/CloudEnvironment.git
Computed https://github.com/IBM-Swift/CloudEnvironment.git at 9.1.200 (3.26s)
Fetching https://github.com/Kitura/Swift-cfenv.git
[1/1604] Fetching swift-cfenv
Fetched https://github.com/Kitura/Swift-cfenv.git from cache (0.41s)
Computing version for https://github.com/Kitura/Swift-cfenv.git
Computed https://github.com/Kitura/Swift-cfenv.git at 6.0.200 (1.49s)
Fetching https://github.com/Kitura/Configuration.git
[1/1135] Fetching configuration
Fetched https://github.com/Kitura/Configuration.git from cache (0.41s)
Computing version for https://github.com/Kitura/Configuration.git
Computed https://github.com/Kitura/Configuration.git at 3.1.0 (1.07s)
Fetching https://github.com/Kitura/FileKit.git
[1/298] Fetching filekit
Fetched https://github.com/Kitura/FileKit.git from cache (0.30s)
Computing version for https://github.com/Kitura/FileKit.git
Computed https://github.com/Kitura/FileKit.git at 1.1.0 (1.39s)
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.56s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (1.43s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.78s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.25s)
Creating working copy for https://github.com/Kitura/FileKit.git
Working copy of https://github.com/Kitura/FileKit.git resolved at 1.1.0
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.6.3
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/Kitura/Configuration.git
Working copy of https://github.com/Kitura/Configuration.git resolved at 3.1.0
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/13] Compiling Logging MetadataProvider.swift
[10/13] Emitting module Logging
[11/13] Compiling Logging Locks.swift
[12/13] Compiling Logging LogHandler.swift
[13/13] Compiling Logging Logging.swift
[15/16] Compiling LoggerAPI Logger.swift
[16/16] Emitting module LoggerAPI
[18/19] Compiling FileKit FileKit.swift
[19/19] Emitting module FileKit
[21/26] Compiling Configuration PLISTDeserializer.swift
[22/26] Compiling Configuration JSONDeserializer.swift
[23/26] Compiling Configuration Deserializer.swift
[24/26] Emitting module Configuration
[25/26] Compiling Configuration ConfigurationNode.swift
[26/26] Compiling Configuration ConfigurationManager.swift
[28/34] Compiling CloudFoundryEnv Service.swift
[29/34] Compiling CloudFoundryEnv JSONUtils.swift
[30/34] Compiling CloudFoundryEnv CollectionUtils.swift
[31/34] Compiling CloudFoundryEnv DateUtils.swift
[32/34] Compiling CloudFoundryEnv App.swift
[33/34] Compiling CloudFoundryEnv AppEnv.swift
[34/34] Emitting module CloudFoundryEnv
[36/52] Emitting module CloudEnvironment
[37/54] Compiling CloudEnvironment Credentials.swift
[38/54] Compiling CloudEnvironment DB2Credentials.swift
[39/54] Compiling CloudEnvironment ObjectStorageCredentials.swift
[40/54] Compiling CloudEnvironment PostgreSQLCredentials.swift
[41/54] Compiling CloudEnvironment PushSDKCredentials.swift
[42/54] Compiling CloudEnvironment RedisCredentials.swift
[43/54] Compiling CloudEnvironment MySQLCredentials.swift
[44/54] Compiling CloudEnvironment NaturalLanguageUnderstandingCredentials.swift
[45/54] Compiling CloudEnvironment WatsonAssistantCredentials.swift
[46/54] Compiling CloudEnvironment WeatherDataCompanyCredentials.swift
[47/54] Compiling CloudEnvironment HDBaaSCredentials.swift
[48/54] Compiling CloudEnvironment MongoDBCredentials.swift
[49/54] Compiling CloudEnvironment AlertNotificationCredentials.swift
[50/54] Compiling CloudEnvironment AppIDCredentials.swift
[51/54] Compiling CloudEnvironment AutoScalingCredentials.swift
[52/54] Compiling CloudEnvironment CloudEnv.swift
[53/54] Compiling CloudEnvironment CloudFunctionsCredentials.swift
[54/54] Compiling CloudEnvironment CloudantCredentials.swift
[56/63] 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.
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
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/AlertNotifications/SharedSession.swift:20:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:103: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                                                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
   |                                 `- error: cannot find type 'URLRequest' in scope
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
25 |         reqTask.resume()
/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.
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
   |                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
25 |         reqTask.resume()
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/AlertNotifications/SharedSession.swift:24:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
   |                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
25 |         reqTask.resume()
26 |     }
[57/64] Compiling AlertNotifications Utils.swift
[58/64] Compiling AlertNotifications MessageService.swift
[59/64] Compiling AlertNotifications AlertService.swift
[60/64] Compiling AlertNotifications Message.swift
[61/64] Compiling AlertNotifications CloudRequest.swift
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:51:71: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |     // Create a URLRequest object with some basic initialization done.
 51 |     func createRequest(forURL url: URL, withMethod method: String) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 52 |         var request: URLRequest = URLRequest(url: url)
 53 |         request.httpMethod = method
/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.
 57 |
 58 |     // A callback wrapper that extracts a status code from a URLResponse, then calls the callback.
 59 |     func urlResponseCallbackWrapper(callback: @escaping (Data?, Int?, Swift.Error?) -> Void) -> (Data?, URLResponse?, Swift.Error?) -> Void {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         return {(data: Data?, response: URLResponse?, error: Swift.Error?) in
 61 |             guard let httpResponse = response as? HTTPURLResponse else {
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/AlertNotifications/CloudRequest.swift:52:22: error: cannot find type 'URLRequest' in scope
 50 |     // Create a URLRequest object with some basic initialization done.
 51 |     func createRequest(forURL url: URL, withMethod method: String) -> URLRequest {
 52 |         var request: URLRequest = URLRequest(url: url)
    |                      `- error: cannot find type 'URLRequest' in scope
 53 |         request.httpMethod = method
 54 |         request.setValue("Basic \(credentials.authString)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:61:47: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 59 |     func urlResponseCallbackWrapper(callback: @escaping (Data?, Int?, Swift.Error?) -> Void) -> (Data?, URLResponse?, Swift.Error?) -> Void {
 60 |         return {(data: Data?, response: URLResponse?, error: Swift.Error?) in
 61 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 62 |                 callback(data, nil, error)
 63 |                 return
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:65:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 63 |                 return
 64 |             }
 65 |             callback(data, httpResponse.statusCode, error)
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 66 |         }
 67 |     }
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:77:22: error: cannot find type 'URLRequest' in scope
 75 |             throw AlertNotificationError.credentialsError("Invalid URL provided.")
 76 |         }
 77 |         var request: URLRequest = createRequest(forURL: apiURL, withMethod: "POST")
    |                      `- error: cannot find type 'URLRequest' in scope
 78 |         request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
 79 |
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
   |                                 `- error: cannot find type 'URLRequest' in scope
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
25 |         reqTask.resume()
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:93:22: error: cannot find type 'URLRequest' in scope
 91 |             throw AlertNotificationError.alertError("Invalid alert ID provided to GET request.")
 92 |         }
 93 |         let request: URLRequest = createRequest(forURL: fullURL, withMethod: "GET")
    |                      `- error: cannot find type 'URLRequest' in scope
 94 |
 95 |         SharedSession.sendRequest(req: request, callback: urlResponseCallbackWrapper(callback: callback))
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:105:22: error: cannot find type 'URLRequest' in scope
103 |             throw AlertNotificationError.alertError("Invalid alert ID provided to DELETE request.")
104 |         }
105 |         let request: URLRequest = createRequest(forURL: fullURL, withMethod: "DELETE")
    |                      `- error: cannot find type 'URLRequest' in scope
106 |
107 |         SharedSession.sendRequest(req: request, callback: urlResponseCallbackWrapper(callback: callback))
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:118:22: error: cannot find type 'URLRequest' in scope
116 |             throw AlertNotificationError.credentialsError("Invalid URL provided.")
117 |         }
118 |         var request: URLRequest = createRequest(forURL: apiURL, withMethod: "POST")
    |                      `- error: cannot find type 'URLRequest' in scope
119 |         request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
120 |
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:134:22: error: cannot find type 'URLRequest' in scope
132 |             throw AlertNotificationError.messageError("Invalid message ID provided to GET request.")
133 |         }
134 |         let request: URLRequest = createRequest(forURL: fullURL, withMethod: "GET")
    |                      `- error: cannot find type 'URLRequest' in scope
135 |
136 |         SharedSession.sendRequest(req: request, callback: urlResponseCallbackWrapper(callback: callback))
error: emit-module command failed with exit code 1 (use -v to see invocation)
[62/64] Compiling AlertNotifications AlertNotificationCredentials.swift
[63/64] Compiling AlertNotifications Alert.swift
[64/64] Emitting module AlertNotifications
/host/spi-builder-workspace/Sources/AlertNotifications/CloudRequest.swift:51:71: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |     // Create a URLRequest object with some basic initialization done.
 51 |     func createRequest(forURL url: URL, withMethod method: String) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 52 |         var request: URLRequest = URLRequest(url: url)
 53 |         request.httpMethod = method
/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.
 57 |
 58 |     // A callback wrapper that extracts a status code from a URLResponse, then calls the callback.
 59 |     func urlResponseCallbackWrapper(callback: @escaping (Data?, Int?, Swift.Error?) -> Void) -> (Data?, URLResponse?, Swift.Error?) -> Void {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         return {(data: Data?, response: URLResponse?, error: Swift.Error?) in
 61 |             guard let httpResponse = response as? HTTPURLResponse else {
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/AlertNotifications/SharedSession.swift:20:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
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/AlertNotifications/SharedSession.swift:20:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:103: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 |
19 | class SharedSession {
20 |     private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
   |                                                                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:23:33: error: cannot find type 'URLRequest' in scope
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
   |                                 `- error: cannot find type 'URLRequest' in scope
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
25 |         reqTask.resume()
/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.
21 |
22 |     // Make a URLRequest using the static shared URLSession object.
23 |     class func sendRequest(req: URLRequest, callback: @escaping (Data?, URLResponse?, Swift.Error?) -> Void) {
   |                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let reqTask = SharedSession.sharedInstance.dataTask(with: req, completionHandler: callback)
25 |         reqTask.resume()
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
BUILD FAILURE 6.2 linux