-
Notifications
You must be signed in to change notification settings - Fork 294
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
Drop-In UI crashes on iOS 9.x #219
Comments
Hi @fraggjkee, I'll take a look right now. |
Your implementation looks good. The crash is caused by PayPal One Touch interacting with the iOS Keychain and getting back an error. I'm a bit concerned that you may be running into a bug with iOS itself: SecItemAdd and SecItemCopyMatching returns error code -34018 It might be worthwhile to try out a few of the solutions posted there. Are there certain scenarios where this crash occurs, or does it occur 100% of the time? Simulator or device? |
@skunkworks thank you for the quick response. I've enabled "KeyChain Sharing" as some people suggest at SO but unfortunately it didn't help. Will try other solutions tomorrow. The crash always occurs on my physical device (iPhone 6 with the latest iOS version) but simulators work stable so far (both 8.x and 9.x). |
Hi @skunkworks wanted to chime in and report I'm hitting the same issue here. Instead it's occurring in the app delegate and occurs during app startup. It's not 100% of the time and occurs on a physical device. I'm looking into the solutions you posted above. |
@skunkworks Can you confirm that removing the paypal payment integration, but still having the drop in ui function with the normal payment options would avoid the crash all together? |
@ryanphillipthomas You are correct that removing the PayPal subspec will work around this crash. We are actively investigating this issue and will report back with findings. |
@ryanphillipthomas Are you able to duplicate this crash when the device is not connected to the Xcode debugger? |
Hey @skunkworks thanks for getting back to me. I haven't hit it yet without being attached to debugger, in all of my runs I do recall being attached. That said the crash is so random.. I haven't been able to identify steps to repro. It's hard to tell if the issue would present itself when its not connected. Some research into soffes/SAMKeychain#52 shows most people are hitting it when debugging, but some are also reporting it on production as well. |
Thanks for the quick response. Our tentative plan is to remove the assertion and find a way to recover gracefully if the keychain error occurs. |
Hi, version 4.2.3 should prevent Keychain errors from asserting and crashing. Thanks for your guys' help! |
Thanks @skunkworks! |
Hello everyone,
I've successfully integrated Braintree SDK in our Android project but currently struggling with Braintree SDK v4.2.1 for iOS. I'm using the Drop-In UI, here's my code (copy-pasted from the official documentation):
Controller:
AppDelegate:
LSApplicationQueriesSchemes:

URL types:

The Drop-In controller appears on the screen correctly, then I press the PayPal button and the app crashes almost immediately with the following error:
ApplicationDelegate
's methods aren't get called, the Drop-UI stays on the screen in a moment of crash. Any ideas what I am doing wrong guys? PayPall works quite well on iOS 8.4, by the way. Thanks in advance.The text was updated successfully, but these errors were encountered: