ACAccountStore错误5 [英] ACAccountStore Error 5
问题描述
尝试将帐户保存到ACAccountStore时,我有时会收到此错误。稍后,如果我尝试访问此帐户,我发现它实际上已保存。到目前为止,我还没有找到有关此不明白错误的任何信息。有谁知道这意味着什么?
When attempting to save an account into an ACAccountStore, I sometimes receive this error. Later, if I attempt to access this account, I find that it's actually been saved. So far, I've yet to find any information about this nondescript error. Does anyone know what it means?
错误Domain = com.apple.accounts Code = 5操作无法完成。(com.apple.accounts error 5 。)
Error Domain=com.apple.accounts Code=5 "The operation couldn't be completed. (com.apple.accounts error 5.)"
推荐答案
这个问题有点陈旧,但我在同一个地区挣扎。这有一件事应该有所帮助:我找到了错误代码的文档:
This question is a little dated, but I'm struggling in the same area. Here's one thing that should help: I did find documentation on the error codes:
typedef enum ACErrorCode {
ACErrorUnknown = 1,
ACErrorAccountMissingRequiredProperty,
ACErrorAccountAuthenticationFailed,
ACErrorAccountTypeInvalid,
ACErrorAccountAlreadyExists,
ACErrorAccountNotFound,
ACErrorPermissionDenied,
ACErrorAccessInfoInvalid
} ACErrorCode;
我在Accounts.framework链接下的文档中找到了这个。
I found this in the documentation under the Accounts.framework link.
对此进行解释会导致错误= 5为帐户已存在而错误= 6为未找到帐户。我希望这会使错误变得不那么不起眼。
Interpreting this gives error=5 being "Account already exists" and error=6 being "Account not found." I'm hopeful this makes the errors a little less "nondescript."
这篇关于ACAccountStore错误5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!