Testing the Keychain – OSStatus error -34018

To answer your question: Yes, I experience the same problem. It seems to work fine when running my app. But when I run my XCTests on my device it seems that the keychain returns error -34018.
The strange thing is that it doesn’t happen when I run the tests on the simulator.

EDIT: I found a solution which I have explained in this answer

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)