The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftRestRequests, reference 1.7.1 (8c1c54), with Swift 6.0 for Linux on 17 Nov 2025 19:52:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkausch/SwiftRestRequests.git
Reference: 1.7.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/tkausch/SwiftRestRequests
 * tag               1.7.1      -> FETCH_HEAD
HEAD is now at 8c1c54a Merge pull request #24 from tkausch/sendableConformity
Cloned https://github.com/tkausch/SwiftRestRequests.git
Revision (git rev-parse @):
8c1c54a571be7e7ac7b49951b1355b29c2c5f7bc
SUCCESS checkout https://github.com/tkausch/SwiftRestRequests.git at 1.7.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tkausch/SwiftRestRequests.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:046a2cda21bb64b2d09e6d52c84584e938ec1698de194871f3d7088597b2bb28
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log
[1/2158] Fetching swift-docc-plugin
[2159/6556] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log from cache (0.58s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.58s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.4 (0.61s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.49s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3578] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.79s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/10] Emitting module Logging
[7/10] Compiling Logging LogHandler.swift
[8/10] Compiling Logging Locks.swift
[9/10] Compiling Logging MetadataProvider.swift
[10/10] Compiling Logging Logging.swift
[12/26] Compiling SwiftRestRequests PublicKeyServerPinning.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace:5:16: note: 'serverTrust' has been explicitly marked unavailable here
3 |     public var distinguishedNames: [Data]? { get }
4 |     @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
5 |     public var serverTrust: Any? { get }
  |                `- note: 'serverTrust' has been explicitly marked unavailable here
6 | }
[13/26] Compiling SwiftRestRequests TrustValidation.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace:5:16: note: 'serverTrust' has been explicitly marked unavailable here
3 |     public var distinguishedNames: [Data]? { get }
4 |     @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
5 |     public var serverTrust: Any? { get }
  |                `- note: 'serverTrust' has been explicitly marked unavailable here
6 | }
[14/27] Compiling SwiftRestRequests AuthorizerInterceptor.swift
[15/27] Compiling SwiftRestRequests CertificateCAPinning.swift
[16/27] Compiling SwiftRestRequests Deserializer.swift
[17/27] Compiling SwiftRestRequests RestApiCaller.swift
[18/27] Compiling SwiftRestRequests Logger+Extension.swift
[19/27] Compiling SwiftRestRequests OSLogHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/27] Emitting module SwiftRestRequests
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
[21/27] Compiling SwiftRestRequests HTTPStatusCode.swift
[22/27] Compiling SwiftRestRequests HTTPUtil.swift
[23/27] Compiling SwiftRestRequests RestError.swift
[24/27] Compiling SwiftRestRequests RestOptions.swift
[25/27] Compiling SwiftRestRequests LogNetworkInterceptor.swift
[26/27] Compiling SwiftRestRequests URLSession+Linux.swift
[27/27] Compiling SwiftRestRequests URLRequestAuthorizer.swift
BUILD FAILURE 6.0 linux