![](/img/trans.png)
[英]Can we store model object array into the keychain?
我需要將這些數據保存並檢索到鑰匙串中。如何以正確的方式保存和檢索以及在檢索數據時我需要使用類別名稱過濾此數據 ...
[英]Can we store model object array into the keychain?
我需要將這些數據保存並檢索到鑰匙串中。如何以正確的方式保存和檢索以及在檢索數據時我需要使用類別名稱過濾此數據 ...
[英]What is the proper identifier to use when adding a keychain item using KeyChainItemWrapper?
我真的不明白標識符是什么或如何使用它。 是任意的嗎? 是我的應用名稱倒序嗎? 下面我使用“測試”,但它應該是:“com.mydomain.myApp.test”嗎? 還是我的應用程序包標識符:“com.Soundpaper.soundpaper.fakeID123”? 或者是什么? 謝謝你。 ...
[英]NSInternalInconsistencyException when keychain item update
我在我的應用程序中使用 keychain 和 keychainitemwrapper。 所以,我確實使用 setObject:(id) 方法更新了“kSecAttrAccessible”。 但是會出現錯誤。 像這樣, 由於未捕獲的異常“NSInternalInconsistencyExcept ...
[英]Keychain Unit Tests fail when run on device or iOS target
我有一個 iOS 項目。 我今天提取了一些身份驗證代碼並將其移至自己的項目中。 該項目支持 macOS 和 iOS。 我創建了一個工作區,其中包含 iOS 項目和 Auth 項目,並且我已通過Frameworks, Libraries, and Embedded Content面板將 auth .f ...
[英]How to save one person UID globally to retrieve it in any ViewController in Swift
成功注冊后,我在LoginViewController中獲得了 UID。 我將 UID 保存在LoginViewController中。 我在RegistrationViewController中檢索 UID。 但是在這里我對所有人都nil ,為什么? 請在代碼中幫助我。 在LoginViewCon ...
[英]How to check if user already register or not while registration in swift
我正在嘗試在注冊時檢查用戶是否已在我的應用中注冊。 對於每次成功注冊,我都會在LoginViewcontroller url 中獲得一個 UID,並將該 UID 保存在鑰匙串包裝器中。 我正在檢索RegistrationViewController regesterservice 中的 UID 值, ...
[英]How to save and retrieve values from KeychainWrapper in swift
我已經在 otpButn 中保存了 uid .. 我正在 registerButn 中檢索 uid .. 但我得到了 nil 因為我在 otpButn 之前錄制了 registerBtn .. 所以我怎樣才能全局保存 uid 我的意思是如何將所有注冊人員的 uid 存儲在 keychainWrapp ...
[英]How can we get secondVC json value in firstVC without going to secondVC in swift
my firstVC json contains all other view controller json ids... here i want before pushing to other view controller i need to compare it with home ho ...
[英]Couldn't add the Keychain Item. Error - 25299 after change the identifier with KeychainItemWrapper?
我想使用KeychainItemWrapper將UUID保存在鑰匙串中,所以我在MyKeychainManager.m中添加以下方法: 但是在將keychain_idenentify更改為com.otherApp.bundle之后 ,它在崩潰 結果= SecItemAdd((C ...
[英]NSInternalInconsistencyException: Couldn't update the Keychain Item
添加行以將kSecAttrAccessible設置為kSecAttrAccessibleAlways以使即使在屏幕鎖定時也可訪問鑰匙串后,我開始看到此錯誤。 通常在未配置鑰匙串共享時出現,但我的鑰匙串共享已經設置了包含應用程序參考 ID 的組 ID: 堆棧跟蹤: 在我的代碼中存儲密碼的方法: 添加 ...
[英]element as AnyObject vs element vs AnyObject?
閱讀Apple的代碼后,我看到了以下內容(談論鑰匙串服務): AnyObject?的目的是AnyObject? ? 我認為可以簡化為 有什么線索嗎? 這是Apple示例的完整代碼段: ...
[英]Application is crashing when creating a options Dictionary used by addPersistentStoreWithType method
我使用encrypted-core-data來加密所有持久存儲的數據,以前是CoreData正在使用的簡單數據。 persistentStoreCoordinator創建代碼如下。 創建選項字典 我使用KeychainItemWrapper在密鑰鏈中保存密碼,我的代碼完全崩潰在 ...
[英]iOS keychain - Different values found on subsequent reads
我正在使用keychainItemWrapper將令牌存儲在ios鑰匙串中。 我可以寫成功並且可以第一次成功閱讀。 但是,一旦我讀取了以后的時間,或者再次運行程序,就會得到不同的值或不同格式的數據。 有任何想法嗎? 詳細信息:1)使用KeychainItemWrapper- http ...
[英]iOS, Keychain kSecAttrAccount not saving
獲取數據時: 保存數據時: 我正在重新使用幾年前使用過的代碼。 但是,現在我遇到了部分無法正常工作的問題。 對於它的價值,我使用的是 KeyChainItemWrapper 版本:1.2(Objective-c) [[NSUserDefaults standardUserDefault ...
[英]Retrieving password and username from keychainItemWrapper iOS
我正在嘗試使用KeychainItemWrapper.h和keychainWrapperItemWrapper.m來存儲用戶憑證,例如用戶名和密碼。 我目前存儲的是用戶首次登錄時的信息,如下所示: 這會將值存儲在鑰匙串中。 但是下次用戶打開應用程序時,我想再次檢索用戶名和密碼。 但 ...
[英]ios keychain return nil value
我正在使用蘋果KEychainItemWrapper。鑰匙串第一次返回值(並且只要應用程序處於活動狀態或處於后台狀態),但是當應用程序退出並再次打開時,鑰匙串返回nil。 我在模擬器和設備上測試了這個。我使用的是iOS 10.2.1和xcode 8.2.1 在我的項目中啟用了鑰匙串共 ...
[英]iOS KeyChain Items not being updated between multiple targets of an app
我正在構建一個應用程序,人們需要能夠從iOS照片應用程序共享照片。 為此,人們需要登錄到該應用程序。 因此,我為共享創建了一個新的iOS目標。 現在,我正在使用KeychainItemWrapper來存儲用戶憑據。 因此,主要目標(如共享表目標)都使用iOS鑰匙串來檢索登錄信息。 ...
[英]How to store multiple passwords in Keychain class with unique Key?
我需要在鑰匙串中存儲多個具有唯一密鑰的密碼/密碼。 我從鑰匙串中獲取存儲的數據時得到零值。 誰能幫我這個忙。 這是我的代碼... ...
[英]KeychainItemWrapper 'Couldn't add the Keychain Item.'
我想將訪問令牌存儲到鑰匙串。 但是我得到了錯誤: Couldn't add the Keychain Item.' 我檢查了stackoverflow上的一些帖子,如: 在keychain中存儲電子郵件不可能(KeychainItemWrapper) mycode的: ...
[英]KeychainItemWrapper crash on iOS10
當我嘗試將項目添加到Keychain時,我在iOS10上發現此崩潰***斷言失敗 - [KeychainItemWrapper writeToKeychain] 在iOS 9.3上我把密鑰寫在鑰匙串中沒有問題謝謝 ...