The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ErsanQ/KeychainKit.git
https://github.com/ErsanQ/KeychainKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KeychainKit",
  "name" : "KeychainKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "KeychainKit",
      "targets" : [
        "KeychainKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "KeychainKitTests",
      "module_type" : "SwiftTarget",
      "name" : "KeychainKitTests",
      "path" : "Tests/KeychainKitTests",
      "sources" : [
        "KeychainKitTests.swift"
      ],
      "target_dependencies" : [
        "KeychainKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KeychainKit",
      "module_type" : "SwiftTarget",
      "name" : "KeychainKit",
      "path" : "Sources/KeychainKit",
      "product_memberships" : [
        "KeychainKit"
      ],
      "sources" : [
        "Keychain.swift",
        "KeychainAccessibility.swift",
        "KeychainError.swift",
        "KeychainItem.swift",
        "KeychainKey.swift",
        "KeychainStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/9] Emitting module KeychainKit
[4/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
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
47 |         case .whenUnlockedThisDeviceOnly:  return kSecAttrAccessibleWhenUnlockedThisDeviceOnly
48 |         case .afterFirstUnlockThisDeviceOnly: return kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
[5/9] Compiling KeychainKit KeychainError.swift
[6/9] Compiling KeychainKit KeychainKey.swift
[7/9] Compiling KeychainKit Keychain.swift
[8/9] Compiling KeychainKit KeychainStore.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 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling KeychainKit KeychainKey.swift
[3/8] Compiling KeychainKit KeychainError.swift
[4/8] Compiling KeychainKit Keychain.swift
[5/8] 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
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
47 |         case .whenUnlockedThisDeviceOnly:  return kSecAttrAccessibleWhenUnlockedThisDeviceOnly
48 |         case .afterFirstUnlockThisDeviceOnly: return kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
[6/8] Emitting module KeychainKit
[7/8] Compiling KeychainKit KeychainStore.swift
[8/8] 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.1 macosSpm