cost 321 ms
使用 KeyChainItemWrapper 添加鑰匙串項時使用的正確標識符是什么?

[英]What is the proper identifier to use when adding a keychain item using KeyChainItemWrapper?

我真的不明白標識符是什么或如何使用它。 是任意的嗎? 是我的應用名稱倒序嗎? 下面我使用“測試”,但它應該是:“com.mydomain.myApp.test”嗎? 還是我的應用程序包標識符:“com.Soundpaper.soundpaper.fakeID123”? 或者是什么? 謝謝你。 ...

在設備或 iOS 目標上運行時,鑰匙串單元測試失敗

[英]Keychain Unit Tests fail when run on device or iOS target

我有一個 iOS 項目。 我今天提取了一些身份驗證代碼並將其移至自己的項目中。 該項目支持 macOS 和 iOS。 我創建了一個工作區,其中包含 iOS 項目和 Auth 項目,並且我已通過Frameworks, Libraries, and Embedded Content面板將 auth .f ...

如何全局保存一個人的 UID 以在 Swift 的任何 ViewController 中檢索它

[英]How to save one person UID globally to retrieve it in any ViewController in Swift

成功注冊后,我在LoginViewController中獲得了 UID。 我將 UID 保存在LoginViewController中。 我在RegistrationViewController中檢索 UID。 但是在這里我對所有人都nil ,為什么? 請在代碼中幫助我。 在LoginViewCon ...

在 swift 注冊時如何檢查用戶是否已經注冊

[英]How to check if user already register or not while registration in swift

我正在嘗試在注冊時檢查用戶是否已在我的應用中注冊。 對於每次成功注冊,我都會在LoginViewcontroller url 中獲得一個 UID,並將該 UID 保存在鑰匙串包裝器中。 我正在檢索RegistrationViewController regesterservice 中的 UID 值, ...

無法添加鑰匙串項。 錯誤-使用KeychainItemWrapper更改標識符后出現25299?

[英]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:無法更新鑰匙串項目

[英]NSInternalInconsistencyException: Couldn't update the Keychain Item

添加行以將kSecAttrAccessible設置為kSecAttrAccessibleAlways以使即使在屏幕鎖定時也可訪問鑰匙串后,我開始看到此錯誤。 通常在未配置鑰匙串共享時出現,但我的鑰匙串共享已經設置了包含應用程序參考 ID 的組 ID: 堆棧跟蹤: 在我的代碼中存儲密碼的方法: 添加 ...

創建addPersistentStoreWithType方法使用的選項Dictionary時,應用程序崩潰

[英]Application is crashing when creating a options Dictionary used by addPersistentStoreWithType method

我使用encrypted-core-data來加密所有持久存儲的數據,以前是CoreData正在使用的簡單數據。 persistentStoreCoordinator創建代碼如下。 創建選項字典 我使用KeychainItemWrapper在密鑰鏈中保存密碼,我的代碼完全崩潰在 ...

iOS鑰匙串-在后續讀取中發現不同的值

[英]iOS keychain - Different values found on subsequent reads

我正在使用keychainItemWrapper將令牌存儲在ios鑰匙串中。 我可以寫成功並且可以第一次成功閱讀。 但是,一旦我讀取了以后的時間,或者再次運行程序,就會得到不同的值或不同格式的數據。 有任何想法嗎? 詳細信息:1)使用KeychainItemWrapper- http ...

iOS,鑰匙串 kSecAttrAccount 未保存

[英]iOS, Keychain kSecAttrAccount not saving

獲取數據時: 保存數據時: 我正在重新使用幾年前使用過的代碼。 但是,現在我遇到了部分無法正常工作的問題。 對於它的價值,我使用的是 KeyChainItemWrapper 版本:1.2(Objective-c) [[NSUserDefaults standardUserDefault ...

從keychainItemWrapper iOS檢索密碼和用戶名

[英]Retrieving password and username from keychainItemWrapper iOS

我正在嘗試使用KeychainItemWrapper.h和keychainWrapperItemWrapper.m來存儲用戶憑證,例如用戶名和密碼。 我目前存儲的是用戶首次登錄時的信息,如下所示: 這會將值存儲在鑰匙串中。 但是下次用戶打開應用程序時,我想再次檢索用戶名和密碼。 但 ...

ios keychain返回nil值

[英]ios keychain return nil value

我正在使用蘋果KEychainItemWrapper。鑰匙串第一次返回值(並且只要應用程序處於活動狀態或處於后台狀態),但是當應用程序退出並再次打開時,鑰匙串返回nil。 我在模擬器和設備上測試了這個。我使用的是iOS 10.2.1和xcode 8.2.1 在我的項目中啟用了鑰匙串共 ...

iOS KeyChain項目無法在一個應用程序的多個目標之間更新

[英]iOS KeyChain Items not being updated between multiple targets of an app

我正在構建一個應用程序,人們需要能夠從iOS照片應用程序共享照片。 為此,人們需要登錄到該應用程序。 因此,我為共享創建了一個新的iOS目標。 現在,我正在使用KeychainItemWrapper來存儲用戶憑據。 因此,主要目標(如共享表目標)都使用iOS鑰匙串來檢索登錄信息。 ...

KeychainItemWrapper'無法添加鑰匙串項。'

[英]KeychainItemWrapper 'Couldn't add the Keychain Item.'

我想將訪問令牌存儲到鑰匙串。 但是我得到了錯誤: Couldn't add the Keychain Item.' 我檢查了stackoverflow上的一些帖子,如: 在keychain中存儲電子郵件不可能(KeychainItemWrapper) mycode的: ...

KeychainItemWrapper在iOS10上崩潰

[英]KeychainItemWrapper crash on iOS10

當我嘗試將項目添加到Keychain時,我在iOS10上發現此崩潰***斷言失敗 - [KeychainItemWrapper writeToKeychain] 在iOS 9.3上我把密鑰寫在鑰匙串中沒有問題謝謝 ...


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