The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KeychainStore with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/KeychainStore.git
Reference: 3.2.0
Cloned https://github.com/JuanjoArreola/KeychainStore.git into spi-builder-workspace
SUCCESS checkout https://github.com/JuanjoArreola/KeychainStore.git at 3.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/6] Compiling KeychainStore KeychainStringStore.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module KeychainStore
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:11:24: error: cannot find 'kSecClass' in scope
private let secClass = kSecClass as String
                       ^~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:12:30: error: cannot find 'kSecAttrGeneric' in scope
private let secAttrGeneric = kSecAttrGeneric as String
                             ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:13:30: error: cannot find 'kSecAttrService' in scope
private let secAttrService = kSecAttrService as String
                             ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:14:34: error: cannot find 'kSecAttrAccessGroup' in scope
private let secAttrAccessGroup = kSecAttrAccessGroup as String
                                 ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:15:29: error: cannot find 'kSecAttrAccount' in scope
private let secAttrAcount = kSecAttrAccount as String
                            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:16:29: error: cannot find 'kSecMatchLimit' in scope
private let secMatchLimit = kSecMatchLimit as String
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:17:29: error: cannot find 'kSecReturnData' in scope
private let secReturnData = kSecReturnData as String
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:18:28: error: cannot find 'kSecValueData' in scope
private let secValueData = kSecValueData as String
                           ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:19:33: error: cannot find 'kSecAttrAccessible' in scope
private let secAttrAccessible = kSecAttrAccessible as String
                                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:20:35: error: cannot find 'kSecReturnAttributes' in scope
private let secReturnAttributes = kSecReturnAttributes as String
                                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:172:24: error: cannot find type 'OSStatus' in scope
func error(from staus: OSStatus) -> KeychainStoreError {
                       ^~~~~~~~
[3/6] Compiling KeychainStore AbstractKeychainStore.swift
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:11:24: error: cannot find 'kSecClass' in scope
private let secClass = kSecClass as String
                       ^~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:12:30: error: cannot find 'kSecAttrGeneric' in scope
private let secAttrGeneric = kSecAttrGeneric as String
                             ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:13:30: error: cannot find 'kSecAttrService' in scope
private let secAttrService = kSecAttrService as String
                             ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:14:34: error: cannot find 'kSecAttrAccessGroup' in scope
private let secAttrAccessGroup = kSecAttrAccessGroup as String
                                 ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:15:29: error: cannot find 'kSecAttrAccount' in scope
private let secAttrAcount = kSecAttrAccount as String
                            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:16:29: error: cannot find 'kSecMatchLimit' in scope
private let secMatchLimit = kSecMatchLimit as String
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:17:29: error: cannot find 'kSecReturnData' in scope
private let secReturnData = kSecReturnData as String
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:18:28: error: cannot find 'kSecValueData' in scope
private let secValueData = kSecValueData as String
                           ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:19:33: error: cannot find 'kSecAttrAccessible' in scope
private let secAttrAccessible = kSecAttrAccessible as String
                                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:20:35: error: cannot find 'kSecReturnAttributes' in scope
private let secReturnAttributes = kSecReturnAttributes as String
                                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:172:24: error: cannot find type 'OSStatus' in scope
func error(from staus: OSStatus) -> KeychainStoreError {
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:39:23: error: cannot find 'kSecClassGenericPassword' in scope
            secClass: kSecClassGenericPassword,
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:56:32: error: cannot find 'kSecMatchLimitOne' in scope
        query[secMatchLimit] = kSecMatchLimitOne
                               ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:57:32: error: cannot find 'kCFBooleanTrue' in scope
        query[secReturnData] = kCFBooleanTrue
                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:61:13: error: cannot find 'SecItemCopyMatching' in scope
            SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:63:22: error: cannot find 'errSecSuccess' in scope
        if status == errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:65:29: error: cannot find 'errSecItemNotFound' in scope
        } else if status == errSecItemNotFound {
                            ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:73:32: error: cannot find 'kSecMatchLimitOne' in scope
        query[secMatchLimit] = kSecMatchLimitOne
                               ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:74:32: error: cannot find 'kCFBooleanFalse' in scope
        query[secReturnData] = kCFBooleanFalse
                               ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:78:13: error: cannot find 'SecItemCopyMatching' in scope
            SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:80:22: error: cannot find 'errSecSuccess' in scope
        if status == errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:82:29: error: cannot find 'errSecItemNotFound' in scope
        } else if status == errSecItemNotFound {
                            ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:22: error: cannot find 'SecItemAdd' in scope
        let status = SecItemAdd(query as CFDictionary, nil)
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:42: error: cannot find type 'CFDictionary' in scope
        let status = SecItemAdd(query as CFDictionary, nil)
                                         ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:56: error: 'nil' requires a contextual type
        let status = SecItemAdd(query as CFDictionary, nil)
                                                       ^
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:100:22: error: cannot find 'errSecDuplicateItem' in scope
        if status == errSecDuplicateItem {
                     ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:102:29: error: cannot find 'errSecSuccess' in scope
        } else if status != errSecSuccess {
                            ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:22: error: cannot find 'SecItemUpdate' in scope
        let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:45: error: cannot find type 'CFDictionary' in scope
        let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
                                            ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:74: error: cannot find type 'CFDictionary' in scope
        let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
                                                                         ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:117:22: error: cannot find 'errSecSuccess' in scope
        if status != errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:126:23: error: cannot find 'kSecClassGenericPassword' in scope
            secClass: kSecClassGenericPassword,
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:128:34: error: cannot find 'kCFBooleanTrue' in scope
            secReturnAttributes: kCFBooleanTrue as Any,
                                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:129:28: error: cannot find 'kSecMatchLimitAll' in scope
            secMatchLimit: kSecMatchLimitAll]
                           ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:136:13: error: cannot find 'SecItemCopyMatching' in scope
            SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:138:22: error: cannot find 'errSecSuccess' in scope
        if status == errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:144:27: error: cannot find 'errSecItemNotFound' in scope
        else if status == errSecItemNotFound {
                          ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:155:22: error: cannot find 'SecItemDelete' in scope
        let status = SecItemDelete(query as CFDictionary)
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:155:45: error: cannot find type 'CFDictionary' in scope
        let status = SecItemDelete(query as CFDictionary)
                                            ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:156:22: error: cannot find 'errSecSuccess' in scope
        if status != errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:174:10: error: cannot find 'errSecItemNotFound' in scope
    case errSecItemNotFound:
         ^~~~~~~~~~~~~~~~~~
[4/6] Compiling KeychainStore KeychainAccessibility.swift
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:21:20: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
            return kSecAttrAccessibleAfterFirstUnlock as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:23:20: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
            return kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:25:20: error: cannot find 'kSecAttrAccessibleAlways' in scope
            return kSecAttrAccessibleAlways as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:27:20: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
            return kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:29:20: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
            return kSecAttrAccessibleAlwaysThisDeviceOnly as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:31:20: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
            return kSecAttrAccessibleWhenUnlocked as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:33:20: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
            return kSecAttrAccessibleWhenUnlockedThisDeviceOnly as String
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/6] Compiling KeychainStore KeychainStore.swift
[6/6] Compiling KeychainStore KeychainStoreError.swift
BUILD FAILURE 5.8 linux

Build Machine: Linux 2