-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Could not generate keypair." when running on simulator #19
Comments
Hey. Thanks for the kind words. ❤️ Can you try latest code from master? Seems like you are using release. Which simulator are you using? |
I’m guessing you are using iOS 9 or something? I think your issue has been corrected in master. Sorry about the breaking api changes. |
@hfossli You were right, I was using release. I just updated to master and did the corresponding api-changes. Testing on device (secure enclave) is still successful. Testing on simulator (keychain) still responds with an error, but now it is another one:
OSStatus.com sais: I tried different iPhone simulators featuring iOS 11.2. |
Are you on main thread/queue? Try to be on another queue. Can you paste the code? |
Also, make sure you delete and recreate the keys. |
And try with these access flags
|
The code I am using is:
No difference for me on different queues :( How do I remove keys? |
|
Or just delete the app before you install |
Thank you. I am now deleting the keypair before creating a new one. On device everything works fine, on simulator still the |
I will try to recreate the bug on my end. I need xcode version, mac version, simulator version etc. |
That would be great! macOS High Sierra 10.13.3 do you need anything else? |
Xcode build version and swift version would also be useful. |
XCode Version 9.2 (9C40b) |
After studying your README again, I could resolve it: Thanks for your support! |
Ah! That makes sense! Maybe a better error message could be nice in that case. Keeping it open until I fix that. Thanks! |
why can I generate key pair from login screen? |
Hi! :)
thanks for developing and maintaining this library - this is great!
I just added some code to generate a keypair and sign a digest with it. While this works perfectly on my device (using secure enclave), I have some trouble getting it to run on simulator (using the keychain).
I get this error:
Here is my code:
and
Any ideas what I am doing wrong?
Thank you.
The text was updated successfully, but these errors were encountered: