Build Information
Failed to build IBMSwiftSDKCore, reference 1.2.1 (652ff3
), with Swift 6.1 for Android on 28 May 2025 04:35:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IBM/swift-sdk-core.git
Reference: 1.2.1
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-sdk-core
* tag 1.2.1 -> FETCH_HEAD
HEAD is now at 652ff3c build(version): ensure proper versionging is followed
Cloned https://github.com/IBM/swift-sdk-core.git
Revision (git rev-parse @):
652ff3cc98af7adb8130863fd7de7ab1e734e795
SUCCESS checkout https://github.com/IBM/swift-sdk-core.git at 1.2.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/IBM/swift-sdk-core.git
https://github.com/IBM/swift-sdk-core.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "IBMSwiftSDKCore",
"name" : "IBMSwiftSDKCore",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "IBMSwiftSDKCore",
"targets" : [
"IBMSwiftSDKCore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "IBMSwiftSDKCoreTests",
"module_type" : "SwiftTarget",
"name" : "IBMSwiftSDKCoreTests",
"path" : "Tests/IBMSwiftSDKCoreTests",
"sources" : [
"AuthenticationTests.swift",
"CodableExtensionsTests.swift",
"ConfigBasedAuthenticatorFactoryTests-Linux.swift",
"CredentialUtilsTests-Linux.swift",
"JSONTests.swift",
"MockURLProtocol.swift",
"MultiPartFormDataTests.swift",
"ResponseTests.swift",
"RestErrorTests.swift",
"SDKInitializerTests.swift"
],
"target_dependencies" : [
"IBMSwiftSDKCore"
],
"type" : "test"
},
{
"c99name" : "IBMSwiftSDKCore",
"module_type" : "SwiftTarget",
"name" : "IBMSwiftSDKCore",
"path" : "Sources/IBMSwiftSDKCore",
"product_memberships" : [
"IBMSwiftSDKCore"
],
"sources" : [
"Authentication/Authentication.swift",
"Authentication/CloudPakForDataAuthenticator.swift",
"Authentication/ConfigBasedAuthenticatorFactory.swift",
"Authentication/IAMAuthenticator.swift",
"Authentication/InsecureConnection.swift",
"Authentication/JWT.swift",
"CodableExtensions.swift",
"CredentialUtils.swift",
"JSON.swift",
"MultipartFormData.swift",
"RestError.swift",
"RestRequest.swift",
"RestResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling IBMSwiftSDKCore RestError.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestError.swift:55:10: warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
53 |
54 | /// Generic HTTP error with a status code and description.
55 | case http(statusCode: Int?, message: String?, metadata: [String: Any]?)
| `- warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
56 |
57 | /// Error that does not fall under any other `RestError` category
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestError.swift:58:10: warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
56 |
57 | /// Error that does not fall under any other `RestError` category
58 | case other(message: String?, metadata: [String: Any]?)
| `- warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
59 | }
60 |
[4/16] Compiling IBMSwiftSDKCore RestRequest.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | private let session: URLSession
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestRequest.swift:114:25: warning: capture of 'completionHandler' with non-sendable type '(Data?, HTTPURLResponse?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
112 | if let error = error as NSError? {
113 | if error.code == NSURLErrorServerCertificateUntrusted {
114 | completionHandler(nil, nil, RestError.sslCertificateUntrusted)
| |- warning: capture of 'completionHandler' with non-sendable type '(Data?, HTTPURLResponse?, RestError?) -> Void' 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'
115 | return
116 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestRequest.swift:136:44: warning: capture of 'self' with non-sendable type 'RestRequest' in a '@Sendable' closure; this is an error in the Swift 6 language mode
22 | // MARK: - RestRequest
23 |
24 | public struct RestRequest {
| `- note: consider making struct 'RestRequest' conform to the 'Sendable' protocol
25 |
26 | /// The "User-Agent" header that will be sent with every network request
:
134 | guard (200..<300).contains(response.statusCode) else {
135 | if let data = data {
136 | let serviceError = self.errorResponseDecoder(data, response)
| `- warning: capture of 'self' with non-sendable type 'RestRequest' in a '@Sendable' closure; this is an error in the Swift 6 language mode
137 | completionHandler(data, response, serviceError)
138 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestRequest.swift:322:21: warning: capture of 'completionHandler' with non-sendable type '(HTTPURLResponse?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
320 | // ensure there is a valid http response
321 | guard let response = response as? HTTPURLResponse else {
322 | completionHandler(nil, RestError.noResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '(HTTPURLResponse?, RestError?) -> Void' 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'
323 | return
324 | }
[5/16] Compiling IBMSwiftSDKCore CodableExtensions.swift
[6/16] Compiling IBMSwiftSDKCore CredentialUtils.swift
[7/16] Compiling IBMSwiftSDKCore JSON.swift
[8/16] Compiling IBMSwiftSDKCore MultipartFormData.swift
[9/16] Compiling IBMSwiftSDKCore InsecureConnection.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:43: error: cannot infer contextual base in reference to member 'default'
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:112: error: 'nil' requires a contextual type
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:26: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:57: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:36:38: error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
37 | }
38 | }
[10/16] Compiling IBMSwiftSDKCore JWT.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:43: error: cannot infer contextual base in reference to member 'default'
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:112: error: 'nil' requires a contextual type
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:26: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:57: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:36:38: error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
37 | }
38 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Emitting module IBMSwiftSDKCore
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestError.swift:55:10: warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
53 |
54 | /// Generic HTTP error with a status code and description.
55 | case http(statusCode: Int?, message: String?, metadata: [String: Any]?)
| `- warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
56 |
57 | /// Error that does not fall under any other `RestError` category
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestError.swift:58:10: warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
56 |
57 | /// Error that does not fall under any other `RestError` category
58 | case other(message: String?, metadata: [String: Any]?)
| `- warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
59 | }
60 |
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | private let session: URLSession
[12/16] Compiling IBMSwiftSDKCore ConfigBasedAuthenticatorFactory.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:71:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
69 | */
70 | func disableSSLVerification() {
71 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
72 | }
73 | #endif
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:85:37: warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 | }
35 |
36 | class IAMTokenSource: TokenSource {
| `- note: class 'IAMTokenSource' does not conform to the 'Sendable' protocol
37 |
38 | let url: String
:
83 | completionHandler(token, nil)
84 | if let refreshDate = refreshDate, refreshDate.timeIntervalSinceNow < 0 {
85 | refreshQueue.async{ self.refreshToken() }
| `- warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
86 | }
87 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:90:32: warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 | }
35 |
36 | class IAMTokenSource: TokenSource {
| `- note: class 'IAMTokenSource' does not conform to the 'Sendable' protocol
37 |
38 | let url: String
:
88 | fetchQueue.async {
89 | // Check if token was obtained by an earlier fetch
90 | if let token = self.token {
| `- warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | completionHandler(token, nil)
92 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:91:21: warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | // Check if token was obtained by an earlier fetch
90 | if let token = self.token {
91 | completionHandler(token, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' 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'
92 | } else {
93 | self.requestToken(completionHandler: completionHandler)
[13/16] Compiling IBMSwiftSDKCore IAMAuthenticator.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:71:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
69 | */
70 | func disableSSLVerification() {
71 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
72 | }
73 | #endif
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:85:37: warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 | }
35 |
36 | class IAMTokenSource: TokenSource {
| `- note: class 'IAMTokenSource' does not conform to the 'Sendable' protocol
37 |
38 | let url: String
:
83 | completionHandler(token, nil)
84 | if let refreshDate = refreshDate, refreshDate.timeIntervalSinceNow < 0 {
85 | refreshQueue.async{ self.refreshToken() }
| `- warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
86 | }
87 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:90:32: warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 | }
35 |
36 | class IAMTokenSource: TokenSource {
| `- note: class 'IAMTokenSource' does not conform to the 'Sendable' protocol
37 |
38 | let url: String
:
88 | fetchQueue.async {
89 | // Check if token was obtained by an earlier fetch
90 | if let token = self.token {
| `- warning: capture of 'self' with non-sendable type 'IAMTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | completionHandler(token, nil)
92 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:91:21: warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | // Check if token was obtained by an earlier fetch
90 | if let token = self.token {
91 | completionHandler(token, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' 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'
92 | } else {
93 | self.requestToken(completionHandler: completionHandler)
[14/16] Compiling IBMSwiftSDKCore Authentication.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:79:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
77 | */
78 | func disableSSLVerification() {
79 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
80 | }
81 | #endif
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:89:37: warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | class CloudPakForDataTokenSource: TokenSource {
| `- note: class 'CloudPakForDataTokenSource' does not conform to the 'Sendable' protocol
30 |
31 | let url: String
:
87 | completionHandler(token, nil)
88 | if let refreshDate = refreshDate, refreshDate.timeIntervalSinceNow < 0 {
89 | refreshQueue.async{ self.refreshToken() }
| `- warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
90 | }
91 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:94:32: warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | class CloudPakForDataTokenSource: TokenSource {
| `- note: class 'CloudPakForDataTokenSource' does not conform to the 'Sendable' protocol
30 |
31 | let url: String
:
92 | fetchQueue.async {
93 | // Check if token was obtained by an earlier fetch
94 | if let token = self.token {
| `- warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
95 | completionHandler(token, nil)
96 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:95:21: warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
93 | // Check if token was obtained by an earlier fetch
94 | if let token = self.token {
95 | completionHandler(token, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' 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'
96 | } else {
97 | self.requestToken(completionHandler: completionHandler)
[15/16] Compiling IBMSwiftSDKCore CloudPakForDataAuthenticator.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:79:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
77 | */
78 | func disableSSLVerification() {
79 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
80 | }
81 | #endif
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:89:37: warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | class CloudPakForDataTokenSource: TokenSource {
| `- note: class 'CloudPakForDataTokenSource' does not conform to the 'Sendable' protocol
30 |
31 | let url: String
:
87 | completionHandler(token, nil)
88 | if let refreshDate = refreshDate, refreshDate.timeIntervalSinceNow < 0 {
89 | refreshQueue.async{ self.refreshToken() }
| `- warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
90 | }
91 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:94:32: warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | class CloudPakForDataTokenSource: TokenSource {
| `- note: class 'CloudPakForDataTokenSource' does not conform to the 'Sendable' protocol
30 |
31 | let url: String
:
92 | fetchQueue.async {
93 | // Check if token was obtained by an earlier fetch
94 | if let token = self.token {
| `- warning: capture of 'self' with non-sendable type 'CloudPakForDataTokenSource' in a '@Sendable' closure; this is an error in the Swift 6 language mode
95 | completionHandler(token, nil)
96 | } else {
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:95:21: warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
93 | // Check if token was obtained by an earlier fetch
94 | if let token = self.token {
95 | completionHandler(token, nil)
| |- warning: capture of 'completionHandler' with non-sendable type '(String?, RestError?) -> Void' 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'
96 | } else {
97 | self.requestToken(completionHandler: completionHandler)
[16/16] Compiling IBMSwiftSDKCore RestResponse.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
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/14] Compiling IBMSwiftSDKCore RestError.swift
[3/15] Compiling IBMSwiftSDKCore ConfigBasedAuthenticatorFactory.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:71:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
69 | */
70 | func disableSSLVerification() {
71 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
72 | }
73 | #endif
[4/15] Compiling IBMSwiftSDKCore IAMAuthenticator.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/IAMAuthenticator.swift:71:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
69 | */
70 | func disableSSLVerification() {
71 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
72 | }
73 | #endif
[5/15] Compiling IBMSwiftSDKCore RestRequest.swift
[6/15] Compiling IBMSwiftSDKCore CodableExtensions.swift
[7/15] Compiling IBMSwiftSDKCore CredentialUtils.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling IBMSwiftSDKCore InsecureConnection.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:43: error: cannot infer contextual base in reference to member 'default'
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:112: error: 'nil' requires a contextual type
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:26: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:57: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:36:38: error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
37 | }
38 | }
[9/15] Compiling IBMSwiftSDKCore JWT.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:43: error: cannot infer contextual base in reference to member 'default'
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:24:112: error: 'nil' requires a contextual type
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
25 | }
26 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:26: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:35:57: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
37 | }
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:36:38: error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'AuthChallengeDisposition'
37 | }
38 | }
[10/15] Compiling IBMSwiftSDKCore JSON.swift
[11/15] Compiling IBMSwiftSDKCore MultipartFormData.swift
[12/15] Emitting module IBMSwiftSDKCore
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:23:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Allow network requests to a server without verification of the server certificate.
22 | /// **IMPORTANT**: This should ONLY be used if truly intended, as it is unsafe otherwise.
23 | static func session() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | return URLSession(configuration: .default, delegate: AllowInsecureConnectionDelegate(), delegateQueue: nil)
25 | }
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:33:50: error: cannot find type 'URLSessionDelegate' in scope
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
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/IBMSwiftSDKCore/Authentication/InsecureConnection.swift:34:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
36 | completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
[13/15] Compiling IBMSwiftSDKCore Authentication.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:79:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
77 | */
78 | func disableSSLVerification() {
79 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
80 | }
81 | #endif
[14/15] Compiling IBMSwiftSDKCore CloudPakForDataAuthenticator.swift
/host/spi-builder-workspace/Sources/IBMSwiftSDKCore/Authentication/CloudPakForDataAuthenticator.swift:79:38: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
77 | */
78 | func disableSSLVerification() {
79 | session = InsecureConnection.session()
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
80 | }
81 | #endif
[15/15] Compiling IBMSwiftSDKCore RestResponse.swift
BUILD FAILURE 6.1 android