The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KeychainKit, reference 1.1.0 (0dcb6d), with Swift 6.2 for macOS (SPM) on 28 Mar 2026 02:07:39 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ErsanQ/KeychainKit.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ErsanQ/KeychainKit
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 0dcb6d4 feat: add KeychainKey type-safe keys + withLock thread-safe mutation
Cloned https://github.com/ErsanQ/KeychainKit.git
Revision (git rev-parse @):
0dcb6d4781bf4a0b322e346f58c5db24d0c2330f
SUCCESS checkout https://github.com/ErsanQ/KeychainKit.git at 1.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "keychainkit",
      "name": "KeychainKit",
      "url": "https://github.com/ErsanQ/KeychainKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KeychainKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ErsanQ/KeychainKit.git
[1/34] Fetching keychainkit
Fetched https://github.com/ErsanQ/KeychainKit.git from cache (0.73s)
Creating working copy for https://github.com/ErsanQ/KeychainKit.git
Working copy of https://github.com/ErsanQ/KeychainKit.git resolved at 1.1.0 (0dcb6d4)
warning: '.resolve-product-dependencies': dependency 'keychainkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ErsanQ/KeychainKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
[3/9] Emitting module KeychainKit
[4/9] Compiling KeychainKit KeychainStore.swift
[5/9] Compiling KeychainKit KeychainKey.swift
[6/9] Compiling KeychainKit KeychainError.swift
[7/9] Compiling KeychainKit KeychainAccessibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeychainKit/KeychainAccessibility.swift:46:51: warning: 'kSecAttrAccessibleAlways' was deprecated in macOS 10.14: Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock [#DeprecatedDeclaration]
44 |         case .whenUnlocked:                return kSecAttrAccessibleWhenUnlocked
45 |         case .afterFirstUnlock:            return kSecAttrAccessibleAfterFirstUnlock
46 |         case .always:                      return kSecAttrAccessibleAlways
   |                                                   `- warning: 'kSecAttrAccessibleAlways' was deprecated in macOS 10.14: Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock [#DeprecatedDeclaration]
47 |         case .whenUnlockedThisDeviceOnly:  return kSecAttrAccessibleWhenUnlockedThisDeviceOnly
48 |         case .afterFirstUnlockThisDeviceOnly: return kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[8/9] Compiling KeychainKit Keychain.swift
[9/9] Compiling KeychainKit KeychainItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeychainKit/KeychainItem.swift:53:18: error: cannot convert value of type '[String]' to specified type 'String'
 51 |             lock.lock(); defer { lock.unlock() }
 52 |             return try? store.read(forKey: key.rawValue)
 53 |                 .flatMap { String(data: $0, encoding: .utf8) }
    |                  `- error: cannot convert value of type '[String]' to specified type 'String'
 54 |         }
 55 |         nonmutating set {
/Users/admin/builder/spi-builder-workspace/Sources/KeychainKit/KeychainItem.swift:53:41: error: cannot convert value of type 'Data.Element' (aka 'UInt8') to expected argument type 'Data'
 51 |             lock.lock(); defer { lock.unlock() }
 52 |             return try? store.read(forKey: key.rawValue)
 53 |                 .flatMap { String(data: $0, encoding: .utf8) }
    |                                         `- error: cannot convert value of type 'Data.Element' (aka 'UInt8') to expected argument type 'Data'
 54 |         }
 55 |         nonmutating set {
/Users/admin/builder/spi-builder-workspace/Sources/KeychainKit/KeychainItem.swift:76:14: error: cannot convert value of type '[String]' to specified type 'String'
 74 |     fileprivate func _read() -> String? {
 75 |         try? store.read(forKey: key.rawValue)
 76 |             .flatMap { String(data: $0, encoding: .utf8) }
    |              `- error: cannot convert value of type '[String]' to specified type 'String'
 77 |     }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/KeychainKit/KeychainItem.swift:76:37: error: cannot convert value of type 'Data.Element' (aka 'UInt8') to expected argument type 'Data'
 74 |     fileprivate func _read() -> String? {
 75 |         try? store.read(forKey: key.rawValue)
 76 |             .flatMap { String(data: $0, encoding: .utf8) }
    |                                     `- error: cannot convert value of type 'Data.Element' (aka 'UInt8') to expected argument type 'Data'
 77 |     }
 78 |
BUILD FAILURE 6.2 macosSpm