簡體   English   中英

無法在Xcode 8中的SSKeychain中輸入密碼

[英]Cannot password in SSKeychain in Xcode 8

當我嘗試通過[SSKeychain setPassword:strApiKey forService:[[NSBundle mainBundle] bundleIdentifier] account:@"payeverAuthKey" error:&error];將Api密鑰保存到SSKeychain時[SSKeychain setPassword:strApiKey forService:[[NSBundle mainBundle] bundleIdentifier] account:@"payeverAuthKey" error:&error];

我得到以下消息: Error Domain=com.samsoffes.sskeychain Code=-34018 "errSecDefault" UserInfo={NSLocalizedDescription=errSecDefault}

此問題與SSKeychain無關,它與Keychain有關。 在Xcode的“功能”選項卡中啟用“鑰匙串共享”可以解決此問題。

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM