cost 157 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 ...

从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钥匙串来检索登录信息。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM