Build Information
Failed to build PassportKit with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:206:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:22: error: cannot find 'SecItemUpdate' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:45: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:73: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:211:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:215:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:224:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:232:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:22: error: cannot find 'SecItemDelete' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:52: error: cannot find type 'CFDictionary' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:237:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:241:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:13: error: cannot find 'kSecClass' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:35: error: cannot find 'kSecClassGenericPassword' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:45:13: error: cannot find 'kSecAttrService' in scope
kSecAttrService as String : secService,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:50:23: error: cannot find 'kSecUseDataProtectionKeychain' in scope
baseQuery[kSecUseDataProtectionKeychain as String] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:63:23: error: cannot find 'kSecAttrAccessGroup' in scope
baseQuery[kSecAttrAccessGroup as String] = "\(SecItem.sharedAccessGroupPrefix).\(identifier.description)"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:69:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:72:23: error: cannot find 'kSecAttrSynchronizable' in scope
baseQuery[kSecAttrSynchronizable as String] = true
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:73:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:23: error: cannot find 'kSecAttrAccessControl' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:58: error: cannot find 'SecAccessControlCreateWithFlags' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:95: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:90: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:183: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
[5/18] Compiling Valet Service.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:73:21: error: cannot find type 'CFString' in scope
var query: [CFString : Any] = [
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:83:19: error: cannot find 'kSecUseDataProtectionKeychain' in scope
query[kSecUseDataProtectionKeychain] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:22: error: cannot find 'SecItemCopyMatching' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:51: error: cannot find type 'CFDictionary' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:97:22: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:42: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:70: error: cannot find type 'CFString' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:125: error: cannot find 'kSecAttrAccessGroup' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:126:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:129:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:135:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:142:31: error: cannot find 'errSecItemNotFound' in scope
return .error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:146:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:155:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:158:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:65: error: 'nil' requires a contextual type
status = SecItemCopyMatching(query as CFDictionary, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:163:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:167:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:176:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:179:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:47: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:185:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:189:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:198:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:203:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:206:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:22: error: cannot find 'SecItemUpdate' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:45: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:73: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:211:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:215:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:224:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:232:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:22: error: cannot find 'SecItemDelete' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:52: error: cannot find type 'CFDictionary' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:237:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:241:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:13: error: cannot find 'kSecClass' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:35: error: cannot find 'kSecClassGenericPassword' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:45:13: error: cannot find 'kSecAttrService' in scope
kSecAttrService as String : secService,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:50:23: error: cannot find 'kSecUseDataProtectionKeychain' in scope
baseQuery[kSecUseDataProtectionKeychain as String] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:63:23: error: cannot find 'kSecAttrAccessGroup' in scope
baseQuery[kSecAttrAccessGroup as String] = "\(SecItem.sharedAccessGroupPrefix).\(identifier.description)"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:69:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:72:23: error: cannot find 'kSecAttrSynchronizable' in scope
baseQuery[kSecAttrSynchronizable as String] = true
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:73:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:23: error: cannot find 'kSecAttrAccessControl' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:58: error: cannot find 'SecAccessControlCreateWithFlags' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:95: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:90: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:183: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
[6/20] Compiling Valet ErrorHandler.swift
[7/20] Compiling Valet Identifier.swift
[8/20] Compiling Valet Configuration.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:49:26: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = canaryKey
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:50:26: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = Data(canaryValue.utf8)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:49: error: cannot find 'errSecItemNotFound' in scope
return SecItem.DataResult.error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecItemNotFound)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecItemNotFound)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:45: error: cannot find 'errSecParam' in scope
return SecItem.DataResult.error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecParam)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecParam)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:79:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:50: error: cannot find 'kSecMatchLimitOne' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:81:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:92:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:101:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:106:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:110:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:120:52: error: cannot find 'kSecValueData' in scope
return SecItem.update(attributes: [kSecValueData as String: object], forItemsMatching: secItemQuery)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:122:30: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = object
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:133:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:137:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:177:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:181:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:197:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:202:101: error: cannot find 'kSecAttrAccount' in scope
if let singleMatch = collection as? [String : AnyHashable], let singleKey = singleMatch[kSecAttrAccount as String] as? String, singleKey != canaryKey {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:207:42: error: cannot find 'kSecAttrAccount' in scope
let key = attributes[kSecAttrAccount as String] as? String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:21: error: cannot find 'kSecMatchLimit' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:74: error: cannot find 'kSecMatchLimitOne' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:61: error: cannot find type 'CFString' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:233:21: error: cannot find 'kSecReturnData' in scope
guard query[kSecReturnData as String] as? Bool != true else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:238:21: error: cannot find 'kSecReturnAttributes' in scope
guard query[kSecReturnAttributes as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:243:21: error: cannot find 'kSecReturnRef' in scope
guard query[kSecReturnRef as String] as? Bool != true else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:248:21: error: cannot find 'kSecReturnPersistentRef' in scope
guard query[kSecReturnPersistentRef as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:21: error: cannot find 'kSecClass' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:69: error: cannot find 'kSecClassGenericPassword' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:56: error: cannot find type 'CFString' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:258:21: error: cannot find 'kSecAttrAccessControl' in scope
guard query[kSecAttrAccessControl as String] == nil else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:265:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:266:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = false
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:267:22: error: cannot find 'kSecReturnRef' in scope
secItemQuery[kSecReturnRef as String] = false
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:268:22: error: cannot find 'kSecReturnPersistentRef' in scope
secItemQuery[kSecReturnPersistentRef as String] = true
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:286:18: error: cannot find 'errSecItemNotFound' in scope
case errSecItemNotFound:
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:289:18: error: cannot find 'errSecParam' in scope
case errSecParam:
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:300:62: error: cannot find 'kSecValuePersistentRef' in scope
guard let retrievedPersistentRef = retrievedItem[kSecValuePersistentRef as String] else {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:305:17: error: cannot find 'kSecValuePersistentRef' in scope
kSecValuePersistentRef as String : retrievedPersistentRef,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:306:17: error: cannot find 'kSecReturnData' in scope
kSecReturnData as String : true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:317:48: error: cannot find 'kSecValueData' in scope
retrievedItemToMigrateWithData[kSecValueData as String] = data
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:321:30: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:334:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String, key != Keychain.canaryKey else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:347:44: error: cannot find 'kSecValueData' in scope
guard let data = keychainEntry[kSecValueData as String] as? Data, !data.isEmpty else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:351:125: error: cannot find 'errSecItemNotFound' in scope
guard case let .error(status) = Keychain.containsObject(forKey: key, options: destinationAttributes), status == errSecItemNotFound else {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:368:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:373:45: error: cannot find 'kSecValueData' in scope
guard let value = keychainEntry[kSecValueData as String] as? Data else {
^~~~~~~~~~~~~
[9/20] Compiling Valet Keychain.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:49:26: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = canaryKey
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:50:26: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = Data(canaryValue.utf8)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:49: error: cannot find 'errSecItemNotFound' in scope
return SecItem.DataResult.error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecItemNotFound)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecItemNotFound)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:45: error: cannot find 'errSecParam' in scope
return SecItem.DataResult.error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecParam)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecParam)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:79:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:50: error: cannot find 'kSecMatchLimitOne' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:81:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:92:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:101:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:106:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:110:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:120:52: error: cannot find 'kSecValueData' in scope
return SecItem.update(attributes: [kSecValueData as String: object], forItemsMatching: secItemQuery)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:122:30: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = object
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:133:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:137:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:177:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:181:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:197:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:202:101: error: cannot find 'kSecAttrAccount' in scope
if let singleMatch = collection as? [String : AnyHashable], let singleKey = singleMatch[kSecAttrAccount as String] as? String, singleKey != canaryKey {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:207:42: error: cannot find 'kSecAttrAccount' in scope
let key = attributes[kSecAttrAccount as String] as? String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:21: error: cannot find 'kSecMatchLimit' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:74: error: cannot find 'kSecMatchLimitOne' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:61: error: cannot find type 'CFString' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:233:21: error: cannot find 'kSecReturnData' in scope
guard query[kSecReturnData as String] as? Bool != true else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:238:21: error: cannot find 'kSecReturnAttributes' in scope
guard query[kSecReturnAttributes as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:243:21: error: cannot find 'kSecReturnRef' in scope
guard query[kSecReturnRef as String] as? Bool != true else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:248:21: error: cannot find 'kSecReturnPersistentRef' in scope
guard query[kSecReturnPersistentRef as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:21: error: cannot find 'kSecClass' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:69: error: cannot find 'kSecClassGenericPassword' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:56: error: cannot find type 'CFString' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:258:21: error: cannot find 'kSecAttrAccessControl' in scope
guard query[kSecAttrAccessControl as String] == nil else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:265:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:266:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = false
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:267:22: error: cannot find 'kSecReturnRef' in scope
secItemQuery[kSecReturnRef as String] = false
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:268:22: error: cannot find 'kSecReturnPersistentRef' in scope
secItemQuery[kSecReturnPersistentRef as String] = true
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:286:18: error: cannot find 'errSecItemNotFound' in scope
case errSecItemNotFound:
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:289:18: error: cannot find 'errSecParam' in scope
case errSecParam:
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:300:62: error: cannot find 'kSecValuePersistentRef' in scope
guard let retrievedPersistentRef = retrievedItem[kSecValuePersistentRef as String] else {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:305:17: error: cannot find 'kSecValuePersistentRef' in scope
kSecValuePersistentRef as String : retrievedPersistentRef,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:306:17: error: cannot find 'kSecReturnData' in scope
kSecReturnData as String : true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:317:48: error: cannot find 'kSecValueData' in scope
retrievedItemToMigrateWithData[kSecValueData as String] = data
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:321:30: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:334:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String, key != Keychain.canaryKey else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:347:44: error: cannot find 'kSecValueData' in scope
guard let data = keychainEntry[kSecValueData as String] as? Data, !data.isEmpty else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:351:125: error: cannot find 'errSecItemNotFound' in scope
guard case let .error(status) = Keychain.containsObject(forKey: key, options: destinationAttributes), status == errSecItemNotFound else {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:368:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:373:45: error: cannot find 'kSecValueData' in scope
guard let value = keychainEntry[kSecValueData as String] as? Data else {
^~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/20] Emitting module Valet
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:25:2: error: Objective-C interoperability is disabled
@objc(VALValet)
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:67:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, Valet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:131:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:139:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:149:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:159:6: error: Objective-C interoperability is disabled
@objc(objectForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:168:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:178:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:188:6: error: Objective-C interoperability is disabled
@objc(stringForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:196:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:205:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:215:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:228:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:240:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromValet:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:286:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:298:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:310:6: error: Objective-C interoperability is disabled
@objc(valetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:322:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[11/20] Compiling Valet Accessibility.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:66:37: error: cannot find type 'CFString' in scope
let accessibilityAttribute: CFString
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:70:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlock
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:72:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:74:38: error: cannot find 'kSecAttrAccessibleAlways' in scope
accessibilityAttribute = kSecAttrAccessibleAlways
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:76:38: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAlwaysThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:78:38: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:80:38: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlocked
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:82:38: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlockedThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[12/20] Compiling Valet CloudAccessibility.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:66:37: error: cannot find type 'CFString' in scope
let accessibilityAttribute: CFString
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:70:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlock
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:72:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:74:38: error: cannot find 'kSecAttrAccessibleAlways' in scope
accessibilityAttribute = kSecAttrAccessibleAlways
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:76:38: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAlwaysThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:78:38: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:80:38: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlocked
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:82:38: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlockedThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[13/20] Compiling Valet SwiftCompatibility.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:25:2: error: Objective-C interoperability is disabled
@objc(VALValet)
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:67:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, Valet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:131:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:139:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:149:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:159:6: error: Objective-C interoperability is disabled
@objc(objectForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:168:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:178:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:188:6: error: Objective-C interoperability is disabled
@objc(stringForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:196:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:205:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:215:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:228:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:240:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromValet:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:286:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:298:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:310:6: error: Objective-C interoperability is disabled
@objc(valetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:322:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[14/20] Compiling Valet Valet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:25:2: error: Objective-C interoperability is disabled
@objc(VALValet)
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:67:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, Valet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:131:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:139:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:149:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:159:6: error: Objective-C interoperability is disabled
@objc(objectForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:168:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:178:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:188:6: error: Objective-C interoperability is disabled
@objc(stringForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:196:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:205:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:215:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:228:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:240:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromValet:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:286:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:298:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:310:6: error: Objective-C interoperability is disabled
@objc(valetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:322:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[15/20] Compiling Valet SecureEnclave.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:48: error: cannot find 'errSecUserCanceled' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:80: error: cannot find 'errSecAuthFailed' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:110:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:22: error: cannot find 'kSecUseAuthenticationUI' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:59: error: cannot find 'kSecUseAuthenticationUIFail' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:51: error: cannot find 'errSecInteractionNotAllowed' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:92: error: cannot find 'errSecSuccess' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:152:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[16/20] Compiling Valet SecureEnclaveAccessControl.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:48: error: cannot find 'errSecUserCanceled' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:80: error: cannot find 'errSecAuthFailed' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:110:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:22: error: cannot find 'kSecUseAuthenticationUI' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:59: error: cannot find 'kSecUseAuthenticationUIFail' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:51: error: cannot find 'errSecInteractionNotAllowed' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:92: error: cannot find 'errSecSuccess' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:152:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/20] Compiling Valet KeychainQueryConvertible.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[18/20] Compiling Valet MigrationResult.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[19/20] Compiling Valet SecureEnclaveValet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[20/20] Compiling Valet SinglePromptSecureEnclaveValet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling Valet SwiftCompatibility.swift
[3/16] Compiling Valet KeychainQueryConvertible.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/16] Compiling Valet MigrationResult.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/16] Compiling Valet SecItem.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:73:21: error: cannot find type 'CFString' in scope
var query: [CFString : Any] = [
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:83:19: error: cannot find 'kSecUseDataProtectionKeychain' in scope
query[kSecUseDataProtectionKeychain] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:22: error: cannot find 'SecItemCopyMatching' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:51: error: cannot find type 'CFDictionary' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:97:22: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:42: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:70: error: cannot find type 'CFString' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:125: error: cannot find 'kSecAttrAccessGroup' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:126:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:129:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:135:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:142:31: error: cannot find 'errSecItemNotFound' in scope
return .error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:146:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:155:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:158:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:65: error: 'nil' requires a contextual type
status = SecItemCopyMatching(query as CFDictionary, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:163:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:167:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:176:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:179:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:47: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:185:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:189:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:198:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:203:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:206:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:22: error: cannot find 'SecItemUpdate' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:45: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:73: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:211:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:215:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:224:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:232:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:22: error: cannot find 'SecItemDelete' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:52: error: cannot find type 'CFDictionary' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:237:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:241:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:13: error: cannot find 'kSecClass' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:35: error: cannot find 'kSecClassGenericPassword' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:45:13: error: cannot find 'kSecAttrService' in scope
kSecAttrService as String : secService,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:50:23: error: cannot find 'kSecUseDataProtectionKeychain' in scope
baseQuery[kSecUseDataProtectionKeychain as String] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:63:23: error: cannot find 'kSecAttrAccessGroup' in scope
baseQuery[kSecAttrAccessGroup as String] = "\(SecItem.sharedAccessGroupPrefix).\(identifier.description)"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:69:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:72:23: error: cannot find 'kSecAttrSynchronizable' in scope
baseQuery[kSecAttrSynchronizable as String] = true
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:73:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:23: error: cannot find 'kSecAttrAccessControl' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:58: error: cannot find 'SecAccessControlCreateWithFlags' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:95: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:90: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:183: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
[6/16] Compiling Valet Service.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:73:21: error: cannot find type 'CFString' in scope
var query: [CFString : Any] = [
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:83:19: error: cannot find 'kSecUseDataProtectionKeychain' in scope
query[kSecUseDataProtectionKeychain] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:22: error: cannot find 'SecItemCopyMatching' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:95:51: error: cannot find type 'CFDictionary' in scope
var status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:97:22: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:98:42: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:25: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:70: error: cannot find type 'CFString' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:101:125: error: cannot find 'kSecAttrAccessGroup' in scope
guard status == errSecSuccess, let queryResult = result as? [CFString : AnyHashable], let accessGroup = queryResult[kSecAttrAccessGroup] as? String else {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:126:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:129:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:132:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:135:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:142:31: error: cannot find 'errSecItemNotFound' in scope
return .error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:146:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:155:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:158:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:22: error: cannot find 'SecItemCopyMatching' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:51: error: cannot find type 'CFDictionary' in scope
status = SecItemCopyMatching(query as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:160:65: error: 'nil' requires a contextual type
status = SecItemCopyMatching(query as CFDictionary, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:163:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:167:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:176:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:179:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:22: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:182:47: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(attributes as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:185:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:189:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:198:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:203:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:206:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:22: error: cannot find 'SecItemUpdate' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:45: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:208:73: error: cannot find type 'CFDictionary' in scope
status = SecItemUpdate(query as CFDictionary, attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:211:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:215:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:224:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:232:22: error: cannot find 'errSecNotAvailable' in scope
var status = errSecNotAvailable
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:22: error: cannot find 'SecItemDelete' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:234:52: error: cannot find type 'CFDictionary' in scope
status = SecItemDelete(secItemQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:237:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:241:43: error: cannot find 'errSecMissingEntitlement' in scope
ErrorHandler.assert(status != errSecMissingEntitlement, "A 'Missing Entitlements' error occurred. This is likely due to an Apple Keychain bug. As a workaround try running on a device that is not attached to a debugger.\n\nMore information: https://forums.developer.apple.com/thread/4743")
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:13: error: cannot find 'kSecClass' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:44:35: error: cannot find 'kSecClassGenericPassword' in scope
kSecClass as String : kSecClassGenericPassword as String,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:45:13: error: cannot find 'kSecAttrService' in scope
kSecAttrService as String : secService,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:50:23: error: cannot find 'kSecUseDataProtectionKeychain' in scope
baseQuery[kSecUseDataProtectionKeychain as String] = true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:63:23: error: cannot find 'kSecAttrAccessGroup' in scope
baseQuery[kSecAttrAccessGroup as String] = "\(SecItem.sharedAccessGroupPrefix).\(identifier.description)"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:69:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:72:23: error: cannot find 'kSecAttrSynchronizable' in scope
baseQuery[kSecAttrSynchronizable as String] = true
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:73:23: error: cannot find 'kSecAttrAccessible' in scope
baseQuery[kSecAttrAccessible as String] = configuration.accessibility.secAccessibilityAttribute
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:23: error: cannot find 'kSecAttrAccessControl' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:58: error: cannot find 'SecAccessControlCreateWithFlags' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:95: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:90: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Service.swift:78:183: error: 'nil' requires a contextual type
baseQuery[kSecAttrAccessControl as String] = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, desiredAccessControl.secAccessControl, nil)
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/16] Emitting module Valet
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/KeychainQueryConvertible.swift:24:2: error: Objective-C interoperability is disabled
@objc(VALKeychainQueryConvertible)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:25:2: error: Objective-C interoperability is disabled
@objc(VALValet)
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:67:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, Valet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:131:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:139:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:149:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:159:6: error: Objective-C interoperability is disabled
@objc(objectForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:168:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:178:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:188:6: error: Objective-C interoperability is disabled
@objc(stringForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:196:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:205:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:215:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:228:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:240:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromValet:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:286:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:298:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:310:6: error: Objective-C interoperability is disabled
@objc(valetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:322:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[8/16] Compiling Valet Accessibility.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:66:37: error: cannot find type 'CFString' in scope
let accessibilityAttribute: CFString
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:70:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlock
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:72:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:74:38: error: cannot find 'kSecAttrAccessibleAlways' in scope
accessibilityAttribute = kSecAttrAccessibleAlways
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:76:38: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAlwaysThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:78:38: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:80:38: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlocked
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:82:38: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlockedThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[9/16] Compiling Valet CloudAccessibility.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:66:37: error: cannot find type 'CFString' in scope
let accessibilityAttribute: CFString
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:70:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlock
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:72:38: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:74:38: error: cannot find 'kSecAttrAccessibleAlways' in scope
accessibilityAttribute = kSecAttrAccessibleAlways
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:76:38: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleAlwaysThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:78:38: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:80:38: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlocked
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Accessibility.swift:82:38: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
accessibilityAttribute = kSecAttrAccessibleWhenUnlockedThisDeviceOnly
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[10/16] Compiling Valet Configuration.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:49:26: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = canaryKey
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:50:26: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = Data(canaryValue.utf8)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:49: error: cannot find 'errSecItemNotFound' in scope
return SecItem.DataResult.error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecItemNotFound)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecItemNotFound)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:45: error: cannot find 'errSecParam' in scope
return SecItem.DataResult.error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecParam)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecParam)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:79:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:50: error: cannot find 'kSecMatchLimitOne' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:81:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:92:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:101:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:106:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:110:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:120:52: error: cannot find 'kSecValueData' in scope
return SecItem.update(attributes: [kSecValueData as String: object], forItemsMatching: secItemQuery)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:122:30: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = object
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:133:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:137:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:177:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:181:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:197:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:202:101: error: cannot find 'kSecAttrAccount' in scope
if let singleMatch = collection as? [String : AnyHashable], let singleKey = singleMatch[kSecAttrAccount as String] as? String, singleKey != canaryKey {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:207:42: error: cannot find 'kSecAttrAccount' in scope
let key = attributes[kSecAttrAccount as String] as? String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:21: error: cannot find 'kSecMatchLimit' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:74: error: cannot find 'kSecMatchLimitOne' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:61: error: cannot find type 'CFString' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:233:21: error: cannot find 'kSecReturnData' in scope
guard query[kSecReturnData as String] as? Bool != true else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:238:21: error: cannot find 'kSecReturnAttributes' in scope
guard query[kSecReturnAttributes as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:243:21: error: cannot find 'kSecReturnRef' in scope
guard query[kSecReturnRef as String] as? Bool != true else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:248:21: error: cannot find 'kSecReturnPersistentRef' in scope
guard query[kSecReturnPersistentRef as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:21: error: cannot find 'kSecClass' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:69: error: cannot find 'kSecClassGenericPassword' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:56: error: cannot find type 'CFString' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:258:21: error: cannot find 'kSecAttrAccessControl' in scope
guard query[kSecAttrAccessControl as String] == nil else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:265:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:266:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = false
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:267:22: error: cannot find 'kSecReturnRef' in scope
secItemQuery[kSecReturnRef as String] = false
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:268:22: error: cannot find 'kSecReturnPersistentRef' in scope
secItemQuery[kSecReturnPersistentRef as String] = true
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:286:18: error: cannot find 'errSecItemNotFound' in scope
case errSecItemNotFound:
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:289:18: error: cannot find 'errSecParam' in scope
case errSecParam:
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:300:62: error: cannot find 'kSecValuePersistentRef' in scope
guard let retrievedPersistentRef = retrievedItem[kSecValuePersistentRef as String] else {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:305:17: error: cannot find 'kSecValuePersistentRef' in scope
kSecValuePersistentRef as String : retrievedPersistentRef,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:306:17: error: cannot find 'kSecReturnData' in scope
kSecReturnData as String : true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:317:48: error: cannot find 'kSecValueData' in scope
retrievedItemToMigrateWithData[kSecValueData as String] = data
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:321:30: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:334:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String, key != Keychain.canaryKey else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:347:44: error: cannot find 'kSecValueData' in scope
guard let data = keychainEntry[kSecValueData as String] as? Data, !data.isEmpty else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:351:125: error: cannot find 'errSecItemNotFound' in scope
guard case let .error(status) = Keychain.containsObject(forKey: key, options: destinationAttributes), status == errSecItemNotFound else {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:368:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:373:45: error: cannot find 'kSecValueData' in scope
guard let value = keychainEntry[kSecValueData as String] as? Data else {
^~~~~~~~~~~~~
[11/16] Compiling Valet Keychain.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:49:26: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = canaryKey
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:50:26: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = Data(canaryValue.utf8)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:49: error: cannot find 'errSecItemNotFound' in scope
return SecItem.DataResult.error(errSecItemNotFound)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecItemNotFound)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:65:32: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecItemNotFound)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:68:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:45: error: cannot find 'errSecParam' in scope
return SecItem.DataResult.error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(errSecParam)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:75:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(errSecParam)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:79:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:80:50: error: cannot find 'kSecMatchLimitOne' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:81:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:92:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:101:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:106:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:110:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:120:52: error: cannot find 'kSecValueData' in scope
return SecItem.update(attributes: [kSecValueData as String: object], forItemsMatching: secItemQuery)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:122:30: error: cannot find 'kSecValueData' in scope
secItemQuery[kSecValueData as String] = object
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:133:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:137:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:145:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:18: error: cannot find 'errSecInteractionNotAllowed' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:162:47: error: cannot find 'errSecMissingEntitlement' in scope
case errSecInteractionNotAllowed, errSecMissingEntitlement:
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:177:27: error: cannot find 'errSecParam' in scope
return .error(errSecParam)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:181:22: error: cannot find 'kSecAttrAccount' in scope
secItemQuery[kSecAttrAccount as String] = key
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:196:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:197:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:202:101: error: cannot find 'kSecAttrAccount' in scope
if let singleMatch = collection as? [String : AnyHashable], let singleKey = singleMatch[kSecAttrAccount as String] as? String, singleKey != canaryKey {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:207:42: error: cannot find 'kSecAttrAccount' in scope
let key = attributes[kSecAttrAccount as String] as? String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: error: generic parameter 'SuccessType' could not be inferred
return SecItem.DataResult.error(status)
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:37:30: note: 'SuccessType' declared as parameter to type 'SecItem.DataResult'
internal enum DataResult<SuccessType> {
^
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:216:28: note: explicitly specify the generic arguments to fix this issue
return SecItem.DataResult.error(status)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:21: error: cannot find 'kSecMatchLimit' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:74: error: cannot find 'kSecMatchLimitOne' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:228:61: error: cannot find type 'CFString' in scope
guard query[kSecMatchLimit as String] as? String as CFString? != kSecMatchLimitOne else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:233:21: error: cannot find 'kSecReturnData' in scope
guard query[kSecReturnData as String] as? Bool != true else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:238:21: error: cannot find 'kSecReturnAttributes' in scope
guard query[kSecReturnAttributes as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:243:21: error: cannot find 'kSecReturnRef' in scope
guard query[kSecReturnRef as String] as? Bool != true else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:248:21: error: cannot find 'kSecReturnPersistentRef' in scope
guard query[kSecReturnPersistentRef as String] as? Bool != false else {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:21: error: cannot find 'kSecClass' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:69: error: cannot find 'kSecClassGenericPassword' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:253:56: error: cannot find type 'CFString' in scope
guard query[kSecClass as String] as? String as CFString? == kSecClassGenericPassword else {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:258:21: error: cannot find 'kSecAttrAccessControl' in scope
guard query[kSecAttrAccessControl as String] == nil else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:22: error: cannot find 'kSecMatchLimit' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:264:50: error: cannot find 'kSecMatchLimitAll' in scope
secItemQuery[kSecMatchLimit as String] = kSecMatchLimitAll
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:265:22: error: cannot find 'kSecReturnAttributes' in scope
secItemQuery[kSecReturnAttributes as String] = true
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:266:22: error: cannot find 'kSecReturnData' in scope
secItemQuery[kSecReturnData as String] = false
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:267:22: error: cannot find 'kSecReturnRef' in scope
secItemQuery[kSecReturnRef as String] = false
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:268:22: error: cannot find 'kSecReturnPersistentRef' in scope
secItemQuery[kSecReturnPersistentRef as String] = true
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:286:18: error: cannot find 'errSecItemNotFound' in scope
case errSecItemNotFound:
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:289:18: error: cannot find 'errSecParam' in scope
case errSecParam:
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:300:62: error: cannot find 'kSecValuePersistentRef' in scope
guard let retrievedPersistentRef = retrievedItem[kSecValuePersistentRef as String] else {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:305:17: error: cannot find 'kSecValuePersistentRef' in scope
kSecValuePersistentRef as String : retrievedPersistentRef,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:306:17: error: cannot find 'kSecReturnData' in scope
kSecReturnData as String : true
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:317:48: error: cannot find 'kSecValueData' in scope
retrievedItemToMigrateWithData[kSecValueData as String] = data
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:321:30: error: cannot find 'errSecItemNotFound' in scope
if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:334:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String, key != Keychain.canaryKey else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:347:44: error: cannot find 'kSecValueData' in scope
guard let data = keychainEntry[kSecValueData as String] as? Data, !data.isEmpty else {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:351:125: error: cannot find 'errSecItemNotFound' in scope
guard case let .error(status) = Keychain.containsObject(forKey: key, options: destinationAttributes), status == errSecItemNotFound else {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:368:43: error: cannot find 'kSecAttrAccount' in scope
guard let key = keychainEntry[kSecAttrAccount as String] as? String else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/Keychain.swift:373:45: error: cannot find 'kSecValueData' in scope
guard let value = keychainEntry[kSecValueData as String] as? Data else {
^~~~~~~~~~~~~
[12/16] Compiling Valet Valet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:25:2: error: Objective-C interoperability is disabled
@objc(VALValet)
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:67:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, Valet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:131:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:139:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:149:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:159:6: error: Objective-C interoperability is disabled
@objc(objectForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:168:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:178:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:188:6: error: Objective-C interoperability is disabled
@objc(stringForKey:)
~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:196:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:205:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:215:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:228:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:240:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromValet:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:286:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:298:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:310:6: error: Objective-C interoperability is disabled
@objc(valetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Valet.swift:322:6: error: Objective-C interoperability is disabled
@objc(iCloudValetWithSharedAccessGroupIdentifier:accessibility:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[13/16] Compiling Valet SecureEnclave.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:48: error: cannot find 'errSecUserCanceled' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:80: error: cannot find 'errSecAuthFailed' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:110:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:22: error: cannot find 'kSecUseAuthenticationUI' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:59: error: cannot find 'kSecUseAuthenticationUIFail' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:51: error: cannot find 'errSecInteractionNotAllowed' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:92: error: cannot find 'errSecSuccess' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:152:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[14/16] Compiling Valet SecureEnclaveAccessControl.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:39:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:48: error: cannot find 'errSecUserCanceled' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:45:80: error: cannot find 'errSecAuthFailed' in scope
let userCancelled = (status == errSecUserCanceled || status == errSecAuthFailed)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:110:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:22: error: cannot find 'kSecUseAuthenticationUI' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:121:59: error: cannot find 'kSecUseAuthenticationUIFail' in scope
secItemQuery[kSecUseAuthenticationUI as String] = kSecUseAuthenticationUIFail
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/Internal/SecItem.swift:55:20: error: cannot find type 'OSStatus' in scope
case error(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:51: error: cannot find 'errSecInteractionNotAllowed' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:128:92: error: cannot find 'errSecSuccess' in scope
let keyAlreadyInKeychain = (status == errSecInteractionNotAllowed || status == errSecSuccess)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclave.swift:152:26: error: cannot find 'kSecUseOperationPrompt' in scope
secItemQuery[kSecUseOperationPrompt as String] = userPrompt
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveAccessControl.swift:73:36: error: cannot find type 'SecAccessControlCreateFlags' in scope
internal var secAccessControl: SecAccessControlCreateFlags {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[15/16] Compiling Valet SecureEnclaveValet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[16/16] Compiling Valet SinglePromptSecureEnclaveValet.swift
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:26:2: error: Objective-C interoperability is disabled
@objc(VALSecureEnclaveValet)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:68:47: error: cannot find 'NSMapTable' in scope
private static let identifierToValetMap = NSMapTable<NSString, SecureEnclaveValet>.strongToWeakObjects()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:100:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:107:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:115:6: error: Objective-C interoperability is disabled
@objc(setObject:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:135:6: error: Objective-C interoperability is disabled
@objc(containsObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:145:6: error: Objective-C interoperability is disabled
@objc(setString:forKey:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:164:6: error: Objective-C interoperability is disabled
@objc(removeObjectForKey:)
~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:174:6: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:187:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsMatchingQuery:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:199:6: error: Objective-C interoperability is disabled
@objc(migrateObjectsFromKeychain:removeOnCompletion:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:225:6: error: Objective-C interoperability is disabled
@objc(valetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:235:6: error: Objective-C interoperability is disabled
@objc(sharedAccessGroupValetWithIdentifier:accessControl:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:249:6: error: Objective-C interoperability is disabled
@objc(objectForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Valet/Sources/Valet/SecureEnclaveValet.swift:266:6: error: Objective-C interoperability is disabled
@objc(stringForKey:userPrompt:userCancelled:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux