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 CertificateSigningRequest, reference main (778015), with Swift 6.2 for Android on 20 Jun 2025 04:49:03 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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cbaker6/CertificateSigningRequest.git
Reference: main
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/cbaker6/CertificateSigningRequest
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 778015f ci: Add merge group
Cloned https://github.com/cbaker6/CertificateSigningRequest.git
Revision (git rev-parse @):
778015fb19e3104845fd8650aca1df13575a927c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/cbaker6/CertificateSigningRequest.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/cbaker6/CertificateSigningRequest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/5] Compiling CertificateSigningRequest CertificateSigningRequestConstants.swift
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:57:32: error: cannot find type 'CFString' in scope
 55 |
 56 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 57 |     public var secKeyAttrType: CFString {
    |                                `- error: cannot find type 'CFString' in scope
 58 |         let result: CFString
 59 |         switch self {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:98:36: error: cannot find type 'SecKeyAlgorithm' in scope
 96 |
 97 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 98 |     public var signatureAlgorithm: SecKeyAlgorithm {
    |                                    `- error: cannot find type 'SecKeyAlgorithm' in scope
 99 |         let result: SecKeyAlgorithm
100 |         switch self {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:58:21: error: cannot find type 'CFString' in scope
 56 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 57 |     public var secKeyAttrType: CFString {
 58 |         let result: CFString
    |                     `- error: cannot find type 'CFString' in scope
 59 |         switch self {
 60 |
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:61:30: error: cannot find 'kSecAttrKeyTypeRSA' in scope
 59 |         switch self {
 60 |
 61 |         case .rsa:  result = kSecAttrKeyTypeRSA
    |                              `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
 62 |         case .ec:   result = kSecAttrKeyTypeECSECPrimeRandom
 63 |
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:62:30: error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
 60 |
 61 |         case .rsa:  result = kSecAttrKeyTypeRSA
 62 |         case .ec:   result = kSecAttrKeyTypeECSECPrimeRandom
    |                              `- error: cannot find 'kSecAttrKeyTypeECSECPrimeRandom' in scope
 63 |
 64 |         }
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:99:21: error: cannot find type 'SecKeyAlgorithm' in scope
 97 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 98 |     public var signatureAlgorithm: SecKeyAlgorithm {
 99 |         let result: SecKeyAlgorithm
    |                     `- error: cannot find type 'SecKeyAlgorithm' in scope
100 |         switch self {
101 |         case .rsa(signatureType: .sha1):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module CertificateSigningRequest
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:151:58: error: cannot find type 'SecKey' in scope
149 |     }
150 |
151 |     public func build(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> Data? {
    |                                                          `- error: cannot find type 'SecKey' in scope
152 |         let certificationRequestInfo = buildCertificationRequestInfo(publicKeyBits)
153 |         var signature = [UInt8](repeating: 0, count: 256)
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:151:77: error: cannot find type 'SecKey' in scope
149 |     }
150 |
151 |     public func build(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> Data? {
    |                                                                             `- error: cannot find type 'SecKey' in scope
152 |         let certificationRequestInfo = buildCertificationRequestInfo(publicKeyBits)
153 |         var signature = [UInt8](repeating: 0, count: 256)
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:192:56: error: cannot find type 'SecKey' in scope
190 |
191 |     public func buildAndEncodeDataAsString(_ publicKeyBits: Data,
192 |                                            privateKey: SecKey,
    |                                                        `- error: cannot find type 'SecKey' in scope
193 |                                            publicKey: SecKey?=nil) -> String? {
194 |         guard let buildData = self.build(publicKeyBits, privateKey: privateKey, publicKey: publicKey) else {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:193:55: error: cannot find type 'SecKey' in scope
191 |     public func buildAndEncodeDataAsString(_ publicKeyBits: Data,
192 |                                            privateKey: SecKey,
193 |                                            publicKey: SecKey?=nil) -> String? {
    |                                                       `- error: cannot find type 'SecKey' in scope
194 |         guard let buildData = self.build(publicKeyBits, privateKey: privateKey, publicKey: publicKey) else {
195 |             return nil
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:202:76: error: cannot find type 'SecKey' in scope
200 |     }
201 |
202 |     public func buildCSRAndReturnString(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> String? {
    |                                                                            `- error: cannot find type 'SecKey' in scope
203 |
204 |         guard let csrString = self.buildAndEncodeDataAsString(publicKeyBits,
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:202:95: error: cannot find type 'SecKey' in scope
200 |     }
201 |
202 |     public func buildCSRAndReturnString(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> String? {
    |                                                                                               `- error: cannot find type 'SecKey' in scope
203 |
204 |         guard let csrString = self.buildAndEncodeDataAsString(publicKeyBits,
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:57:32: error: cannot find type 'CFString' in scope
 55 |
 56 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 57 |     public var secKeyAttrType: CFString {
    |                                `- error: cannot find type 'CFString' in scope
 58 |         let result: CFString
 59 |         switch self {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:98:36: error: cannot find type 'SecKeyAlgorithm' in scope
 96 |
 97 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 98 |     public var signatureAlgorithm: SecKeyAlgorithm {
    |                                    `- error: cannot find type 'SecKeyAlgorithm' in scope
 99 |         let result: SecKeyAlgorithm
100 |         switch self {
[5/5] Compiling CertificateSigningRequest CertificateSigningRequest.swift
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:151:58: error: cannot find type 'SecKey' in scope
149 |     }
150 |
151 |     public func build(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> Data? {
    |                                                          `- error: cannot find type 'SecKey' in scope
152 |         let certificationRequestInfo = buildCertificationRequestInfo(publicKeyBits)
153 |         var signature = [UInt8](repeating: 0, count: 256)
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:151:77: error: cannot find type 'SecKey' in scope
149 |     }
150 |
151 |     public func build(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> Data? {
    |                                                                             `- error: cannot find type 'SecKey' in scope
152 |         let certificationRequestInfo = buildCertificationRequestInfo(publicKeyBits)
153 |         var signature = [UInt8](repeating: 0, count: 256)
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:192:56: error: cannot find type 'SecKey' in scope
190 |
191 |     public func buildAndEncodeDataAsString(_ publicKeyBits: Data,
192 |                                            privateKey: SecKey,
    |                                                        `- error: cannot find type 'SecKey' in scope
193 |                                            publicKey: SecKey?=nil) -> String? {
194 |         guard let buildData = self.build(publicKeyBits, privateKey: privateKey, publicKey: publicKey) else {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:193:55: error: cannot find type 'SecKey' in scope
191 |     public func buildAndEncodeDataAsString(_ publicKeyBits: Data,
192 |                                            privateKey: SecKey,
193 |                                            publicKey: SecKey?=nil) -> String? {
    |                                                       `- error: cannot find type 'SecKey' in scope
194 |         guard let buildData = self.build(publicKeyBits, privateKey: privateKey, publicKey: publicKey) else {
195 |             return nil
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:202:76: error: cannot find type 'SecKey' in scope
200 |     }
201 |
202 |     public func buildCSRAndReturnString(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> String? {
    |                                                                            `- error: cannot find type 'SecKey' in scope
203 |
204 |         guard let csrString = self.buildAndEncodeDataAsString(publicKeyBits,
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:202:95: error: cannot find type 'SecKey' in scope
200 |     }
201 |
202 |     public func buildCSRAndReturnString(_ publicKeyBits: Data, privateKey: SecKey, publicKey: SecKey?=nil) -> String? {
    |                                                                                               `- error: cannot find type 'SecKey' in scope
203 |
204 |         guard let csrString = self.buildAndEncodeDataAsString(publicKeyBits,
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:156:30: error: cannot find type 'CFError' in scope
154 |         var signatureLen: Int = signature.count
155 |
156 |         var error: Unmanaged<CFError>?
    |                              `- error: cannot find type 'CFError' in scope
157 |         guard let signatureData = SecKeyCreateSignature(privateKey,
158 |                                                         keyAlgorithm.signatureAlgorithm,
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:157:35: error: cannot find 'SecKeyCreateSignature' in scope
155 |
156 |         var error: Unmanaged<CFError>?
157 |         guard let signatureData = SecKeyCreateSignature(privateKey,
    |                                   `- error: cannot find 'SecKeyCreateSignature' in scope
158 |                                                         keyAlgorithm.signatureAlgorithm,
159 |                                                         certificationRequestInfo as CFData, &error) as Data? else {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequestConstants.swift:98:36: error: cannot find type 'SecKeyAlgorithm' in scope
 96 |
 97 |     @available(iOS 10, macCatalyst 13.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)
 98 |     public var signatureAlgorithm: SecKeyAlgorithm {
    |                                    `- error: cannot find type 'SecKeyAlgorithm' in scope
 99 |         let result: SecKeyAlgorithm
100 |         switch self {
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:159:85: error: cannot find type 'CFData' in scope
157 |         guard let signatureData = SecKeyCreateSignature(privateKey,
158 |                                                         keyAlgorithm.signatureAlgorithm,
159 |                                                         certificationRequestInfo as CFData, &error) as Data? else {
    |                                                                                     `- error: cannot find type 'CFData' in scope
160 |             if error != nil {
161 |                 print("Error in creating signature: \(error!.takeRetainedValue())")
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:168:17: error: cannot find 'SecKeyVerifySignature' in scope
166 |         signatureLen = signatureData.count
167 |         if publicKey != nil {
168 |             if !SecKeyVerifySignature(publicKey!, keyAlgorithm.signatureAlgorithm,
    |                 `- error: cannot find 'SecKeyVerifySignature' in scope
169 |                                       certificationRequestInfo as CFData, signatureData as CFData, &error) {
170 |                 print(error!.takeRetainedValue())
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:169:67: error: cannot find type 'CFData' in scope
167 |         if publicKey != nil {
168 |             if !SecKeyVerifySignature(publicKey!, keyAlgorithm.signatureAlgorithm,
169 |                                       certificationRequestInfo as CFData, signatureData as CFData, &error) {
    |                                                                   `- error: cannot find type 'CFData' in scope
170 |                 print(error!.takeRetainedValue())
171 |                 return nil
/host/spi-builder-workspace/Sources/CertificateSigningRequest/CertificateSigningRequest.swift:169:92: error: cannot find type 'CFData' in scope
167 |         if publicKey != nil {
168 |             if !SecKeyVerifySignature(publicKey!, keyAlgorithm.signatureAlgorithm,
169 |                                       certificationRequestInfo as CFData, signatureData as CFData, &error) {
    |                                                                                            `- error: cannot find type 'CFData' in scope
170 |                 print(error!.takeRetainedValue())
171 |                 return nil
BUILD FAILURE 6.2 android