keychain

android.security.KeyChainException: java.lang.IllegalStateException: uid

无人久伴 提交于 2019-12-02 07:04:30
问题 Error: android.security.KeyChainException: java.lang.IllegalStateException: uid 10111 doesn't have permission to access the requested alias Code: new Thread(new Runnable() { public void run() { try { X509Certificate[] myCertificates=KeyChain.getCertificateChain(MainActivity.this, "ServerCertificate"); if(myCertificates!=null) { System.out.println("myCertificates size "+myCertificates.length); for(int i=0;i<myCertificates.length;i++) { System.out.println("myCertificates i= "+i+" "

Get “No keychain available” error when try to access keychain from app extension

坚强是说给别人听的谎言 提交于 2019-12-02 00:36:03
问题 I am making a IOS custom keyboard extension. By default the keyboard has limited functionality, but when the user purchases the full version from the main parent app then the keyboard unlocks the missing parts. To check if the user has purchased the app I try to store a Bool in the IOS keychain using this library. let IAPKeychain = Keychain(service: "com.roymunsonstudios.CopypastaKeyboard") var purchase: Bool = true let purchaseData = NSData(bytes: &purchase, length: sizeof(Bool)) try!

Mac OSX asking for keychain access when building MonoDevelop iOS App

て烟熏妆下的殇ゞ 提交于 2019-12-01 23:57:03
问题 When building projects in MonoDevelop on the Mac, I get the message "MAC OS X wants to make changes.Type an administrator's name and password to allow this. MAC OSX wants to use system keychain." I found the post Mac OS X wants to use system keychain when compiling the project but this doesn't quite answer my problem. The profiles I installed were done via XCode and are my current/valid profiles on the Provisioning Profile so I assume these are Ok - XCode reports they're valid. I've moved my

How to use “SecItemAdd” to store a symmetric key in OS X?

拈花ヽ惹草 提交于 2019-12-01 23:20:22
I want to store a symmetric key in the keychain of OS X. I read by the Apple DevDocs that I should use SecItemAdd in order to do this. I also read the CryptoExercise without any solutions for Me. But when I'm doing so, I always got OSStatus errSecNoSuchAttr (-25303) . Codesnippet as follows: //Labels and app tags NSString *label = @"My Testkey"; NSData * peerTag = [[NSData alloc] initWithBytes:(const void *)[label UTF8String] length:[label length]]; // Generating testkey NSMutableData *key = [NSMutableData dataWithLength:kCCKeySizeAES128]; SecRandomCopyBytes(kSecRandomDefault, kCCKeySizeAES128

Mac OSX asking for keychain access when building MonoDevelop iOS App

社会主义新天地 提交于 2019-12-01 21:40:49
When building projects in MonoDevelop on the Mac, I get the message "MAC OS X wants to make changes.Type an administrator's name and password to allow this. MAC OSX wants to use system keychain." I found the post Mac OS X wants to use system keychain when compiling the project but this doesn't quite answer my problem. The profiles I installed were done via XCode and are my current/valid profiles on the Provisioning Profile so I assume these are Ok - XCode reports they're valid. I've moved my dev environment from a Macbook (where compiling apps worked fine, without this error) to another Mac

SecCopyErrorMessageString gives “Use of unresolved identifier” in swift

本小妞迷上赌 提交于 2019-12-01 19:10:47
问题 Trying to use SecCopyErrorMessageString to interpret errorCode. in swift : var result: OSStatus result = SecItemAdd(query as CFDictionary, nil); if result != errSecSuccess { let errorDescription = SecCopyErrorMessageString(result,nil) // NSLog("Keychain Error: %@", errorDescription) The error of "Unresolved identifier" starts from "SecCopyError..." 回答1: The SecCopyErrorMessageString function only became available on iOS in version 11.3. Prior to that, it could only be used on OS X. 回答2: The

SecCopyErrorMessageString gives “Use of unresolved identifier” in swift

喜夏-厌秋 提交于 2019-12-01 18:28:34
Trying to use SecCopyErrorMessageString to interpret errorCode. in swift : var result: OSStatus result = SecItemAdd(query as CFDictionary, nil); if result != errSecSuccess { let errorDescription = SecCopyErrorMessageString(result,nil) // NSLog("Keychain Error: %@", errorDescription) The error of "Unresolved identifier" starts from "SecCopyError..." The SecCopyErrorMessageString function only became available on iOS in version 11.3. Prior to that, it could only be used on OS X. The above answer is a bit outdated, according to Apple , iOS 11.3, tvOS 11.3 and watchOS 4.3 started to support this

How do I correct the “Undefined symbols for architecture i386: ”_main\" linking issue?

随声附和 提交于 2019-12-01 17:28:22
I am trying to use the KeyChainitemwrapper provided by apple. My project is using ARC but I have turned of ARC on KeyChainitemwrapper.m. I linked the 'security.framework' framework to my project. I am getting this linking issue: Undefined symbols for architecture i386: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) I am new to ios development but my guess is that the problem has to do with the fact that the simulator is trying to compile my source targeting i386 rather

Sharing File Data Between Applications in Swift/iOS [duplicate]

左心房为你撑大大i 提交于 2019-12-01 04:00:36
This question already has an answer here: Sharing data in between apps in IOS 1 answer I've been doing research on how to share data between applications securely. I'd like to get some info on the correct way to handle this before I do a deep dive on implementation using the wrong method. Just cause you can do something does not necessarily mean you should. User Case : I am working on a suite of language learning apps that have a shared audio file base of several hundred audio files and json files containing important data corresponding to a language. I'd prefer to allow the user to not have

Sharing File Data Between Applications in Swift/iOS [duplicate]

只愿长相守 提交于 2019-12-01 01:49:06
问题 This question already has an answer here : Sharing data in between apps in IOS (1 answer) Closed 3 years ago . I've been doing research on how to share data between applications securely. I'd like to get some info on the correct way to handle this before I do a deep dive on implementation using the wrong method. Just cause you can do something does not necessarily mean you should. User Case : I am working on a suite of language learning apps that have a shared audio file base of several