Closed garie closed 5 years ago
I had exactly the same issue on macOS with some of the old version of KeychainWrapper. Are there any updates?
I've made a fix for this in the develop branch based on new guidelines for working with UnsafeMutablePointer. Hopefully this will help with the issue you've seen. For now this is just in the develop branch until I can do some more testing.
I am also getting a crash here, but only on a very small percentage of my users (like 0.5% or so). Have you done any more testing on this issue?
To update this issue, I switched to the the fix in the develop
branch, and my small % of crashes went away, and I haven't seen any other side effects.
This has been updated officially in 3.2 now and pushed to CocoaPods.
My app is crashing on the line
SecItemCopyMatching(keychainQueryDictionary as CFDictionary, UnsafeMutablePointer($0))
in some cases. It breaks withEXC_BAD_ACCESS
but does not print a stack trace, even with zombies on. I believe it is theUnsafeMutablePointer
causing the issue because I can see in the thread at the side, the last call before this line iswithUnsafeMutablePointer
. Here is a screenshot of the thread:This is my code that is causing the problem:
I believe I will be able to avoid this issue by changing how I am doing things in my app so that this line is not called in this situation, but I figured I would file the issue anyway.