Build Information
Failed to build AlertNotifications, reference master (bde2f0), with Swift 6.1 for Android on 27 May 2025 10:37:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/IBM-Swift/alert-notification-sdk.git
https://github.com/IBM-Swift/alert-notification-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "cloudenvironment",
"requirement" : {
"range" : [
{
"lower_bound" : "9.0.0",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/IBM-Swift/CloudEnvironment.git"
}
],
"manifest_display_name" : "AlertNotifications",
"name" : "AlertNotifications",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AlertNotifications",
"targets" : [
"AlertNotifications"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AlertNotificationsTests",
"module_type" : "SwiftTarget",
"name" : "AlertNotificationsTests",
"path" : "Tests/AlertNotificationsTests",
"sources" : [
"AlertNotificationsTests.swift"
],
"target_dependencies" : [
"AlertNotifications"
],
"type" : "test"
},
{
"c99name" : "AlertNotifications",
"module_type" : "SwiftTarget",
"name" : "AlertNotifications",
"path" : "Sources/AlertNotifications",
"product_dependencies" : [
"CloudEnvironment"
],
"product_memberships" : [
"AlertNotifications"
],
"sources" : [
"Alert.swift",
"AlertNotificationCredentials.swift",
"AlertService.swift",
"CloudRequest.swift",
"Message.swift",
"MessageService.swift",
"SharedSession.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/IBM-Swift/CloudEnvironment.git
[1/2059] Fetching cloudenvironment
Fetched https://github.com/IBM-Swift/CloudEnvironment.git from cache (0.33s)
Computing version for https://github.com/IBM-Swift/CloudEnvironment.git
Computed https://github.com/IBM-Swift/CloudEnvironment.git at 9.1.200 (2.28s)
Fetching https://github.com/Kitura/Swift-cfenv.git
[1/1604] Fetching swift-cfenv
Fetched https://github.com/Kitura/Swift-cfenv.git from cache (0.27s)
Computing version for https://github.com/Kitura/Swift-cfenv.git
Computed https://github.com/Kitura/Swift-cfenv.git at 6.0.200 (0.81s)
Fetching https://github.com/Kitura/Configuration.git
[1/1135] Fetching configuration
Fetched https://github.com/Kitura/Configuration.git from cache (0.43s)
Computing version for https://github.com/Kitura/Configuration.git
Computed https://github.com/Kitura/Configuration.git at 3.1.0 (4.71s)
Fetching https://github.com/Kitura/FileKit.git
[1/298] Fetching filekit
Fetched https://github.com/Kitura/FileKit.git from cache (0.48s)
Computing version for https://github.com/Kitura/FileKit.git
Computed https://github.com/Kitura/FileKit.git at 1.1.0 (1.08s)
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.23s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.99s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.38s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.87s)
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/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
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/Kitura/Configuration.git
Working copy of https://github.com/Kitura/Configuration.git resolved at 3.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/Swift-cfenv.git
Working copy of https://github.com/Kitura/Swift-cfenv.git resolved at 6.0.200
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/13] Compiling Logging MetadataProvider.swift
[10/13] Compiling Logging Locks.swift
[11/13] Compiling Logging LogHandler.swift
[12/13] Emitting module Logging
[13/13] Compiling Logging Logging.swift
[15/16] Emitting module LoggerAPI
[16/16] Compiling LoggerAPI Logger.swift
[18/19] Emitting module FileKit
[19/19] Compiling FileKit FileKit.swift
[21/26] Compiling Configuration PLISTDeserializer.swift
[22/26] Compiling Configuration JSONDeserializer.swift
[23/26] Compiling Configuration Deserializer.swift
[24/26] Compiling Configuration ConfigurationNode.swift
[25/26] Emitting module Configuration
[26/26] Compiling Configuration ConfigurationManager.swift
[28/34] Compiling CloudFoundryEnv CollectionUtils.swift
[29/34] Compiling CloudFoundryEnv JSONUtils.swift
[30/34] Compiling CloudFoundryEnv DateUtils.swift
[31/34] Compiling CloudFoundryEnv Service.swift
[32/34] Emitting module CloudFoundryEnv
[33/34] Compiling CloudFoundryEnv App.swift
[34/34] Compiling CloudFoundryEnv AppEnv.swift
[36/52] Emitting module CloudEnvironment
[37/54] Compiling CloudEnvironment PushSDKCredentials.swift
[38/54] Compiling CloudEnvironment RedisCredentials.swift
[39/54] Compiling CloudEnvironment HDBaaSCredentials.swift
[40/54] Compiling CloudEnvironment MongoDBCredentials.swift
[41/54] Compiling CloudEnvironment ObjectStorageCredentials.swift
[42/54] Compiling CloudEnvironment PostgreSQLCredentials.swift
[43/54] Compiling CloudEnvironment MySQLCredentials.swift
[44/54] Compiling CloudEnvironment NaturalLanguageUnderstandingCredentials.swift
[45/54] Compiling CloudEnvironment Credentials.swift
[46/54] Compiling CloudEnvironment DB2Credentials.swift
[47/54] Compiling CloudEnvironment AlertNotificationCredentials.swift
[48/54] Compiling CloudEnvironment AppIDCredentials.swift
[49/54] Compiling CloudEnvironment AutoScalingCredentials.swift
[50/54] Compiling CloudEnvironment WatsonAssistantCredentials.swift
[51/54] Compiling CloudEnvironment WeatherDataCompanyCredentials.swift
[52/54] Compiling CloudEnvironment CloudEnv.swift
[53/54] Compiling CloudEnvironment CloudFunctionsCredentials.swift
[54/54] Compiling CloudEnvironment CloudantCredentials.swift
[56/63] Compiling AlertNotifications AlertNotificationCredentials.swift
[57/64] Compiling AlertNotifications AlertService.swift
[58/64] Compiling AlertNotifications MessageService.swift
[59/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))
[60/64] Compiling AlertNotifications Message.swift
[61/64] Compiling AlertNotifications SharedSession.swift
/host/spi-builder-workspace/Sources/AlertNotifications/SharedSession.swift:20:24: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class SharedSession {
20 | private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Make a URLRequest using the static shared URLSession object.
/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 | }
[62/64] Compiling AlertNotifications Utils.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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:24: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class SharedSession {
20 | private static let sharedInstance: URLSession = URLSession(configuration: URLSessionConfiguration.`default`)
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Make a URLRequest using the static shared URLSession object.
/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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging LogHandler.swift
[4/6] Emitting module Logging
[5/6] Compiling Logging Locks.swift
[6/6] Compiling Logging Logging.swift
[8/9] Emitting module LoggerAPI
[9/9] Compiling LoggerAPI Logger.swift
[11/12] Emitting module FileKit
[12/12] Compiling FileKit FileKit.swift
[14/19] Compiling Configuration PLISTDeserializer.swift
[15/19] Compiling Configuration Deserializer.swift
[16/19] Compiling Configuration JSONDeserializer.swift
[17/19] Compiling Configuration ConfigurationNode.swift
[18/19] Emitting module Configuration
[19/19] Compiling Configuration ConfigurationManager.swift
[21/27] Compiling CloudFoundryEnv Service.swift
[22/27] Compiling CloudFoundryEnv DateUtils.swift
[23/27] Compiling CloudFoundryEnv JSONUtils.swift
[24/27] Compiling CloudFoundryEnv CollectionUtils.swift
[25/27] Compiling CloudFoundryEnv App.swift
[26/27] Emitting module CloudFoundryEnv
[27/27] Compiling CloudFoundryEnv AppEnv.swift
[29/45] Emitting module CloudEnvironment
[30/47] Compiling CloudEnvironment Credentials.swift
[31/47] Compiling CloudEnvironment DB2Credentials.swift
[32/47] Compiling CloudEnvironment AlertNotificationCredentials.swift
[33/47] Compiling CloudEnvironment AppIDCredentials.swift
[34/47] Compiling CloudEnvironment AutoScalingCredentials.swift
[35/47] Compiling CloudEnvironment CloudEnv.swift
[36/47] Compiling CloudEnvironment CloudFunctionsCredentials.swift
[37/47] Compiling CloudEnvironment CloudantCredentials.swift
[38/47] Compiling CloudEnvironment ObjectStorageCredentials.swift
[39/47] Compiling CloudEnvironment PostgreSQLCredentials.swift
[40/47] Compiling CloudEnvironment PushSDKCredentials.swift
[41/47] Compiling CloudEnvironment RedisCredentials.swift
[42/47] Compiling CloudEnvironment MySQLCredentials.swift
[43/47] Compiling CloudEnvironment NaturalLanguageUnderstandingCredentials.swift
[44/47] Compiling CloudEnvironment HDBaaSCredentials.swift
[45/47] Compiling CloudEnvironment MongoDBCredentials.swift
[46/47] Compiling CloudEnvironment WatsonAssistantCredentials.swift
[47/47] Compiling CloudEnvironment WeatherDataCompanyCredentials.swift
[49/56] 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 | }
[50/57] Compiling AlertNotifications AlertNotificationCredentials.swift
[51/57] Compiling AlertNotifications AlertService.swift
[52/57] Compiling AlertNotifications Message.swift
[53/57] 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))
[54/57] Compiling AlertNotifications MessageService.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/57] Compiling AlertNotifications Alert.swift
[56/57] 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
[57/57] Compiling AlertNotifications Utils.swift
BUILD FAILURE 6.1 android