# Keychain issue only with bitrise builds

**URL:** <https://discuss.bitrise.io/t/keychain-issue-only-with-bitrise-builds/13463>\
**Category:** Builds\
**Created:** [June 25, 2020, 4:22pm UTC](https://discuss.bitrise.io/t/keychain-issue-only-with-bitrise-builds/13463 "2020-06-25T16:22:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanCrandall](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@RyanCrandall](https://discuss.bitrise.io/u/RyanCrandall)\
**Post date:** [June 25, 2020, 4:22pm UTC](https://discuss.bitrise.io/t/keychain-issue-only-with-bitrise-builds/13463/1 "2020-06-25T16:22:38Z")

</div>

[https://bitrise.zendesk.com/hc/en-us/requests/3964](https://bitrise.zendesk.com/hc/en-us/requests/3964) is my helpdesk ticket so staff will be able to see.

I have the issue where on my workflow:  
I uploaded my certificate and profile  
I created a certification step to verify my certificate and profile and keychain, which it finds the keychain in ~/Library/Keychain/Keychain.db and compiles successfully  
I created a step to setup appium and pytest  
I created a step to run pytest and pytest runs perfectly, but I am unable to log into my app because of a firebase authentication error, but only on bitrise builds.  
I created a build for simulator step, which I install on the simulator and opens.

“An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered”

I have been googling like crazy this error, but no matter how it seems to go, I cannot get the bitrise build to see the keychain correctly. Has anyone had experience getting the keychain to work on bitrise builds?

---

<div class="post-metadata">

**Author:** ![RyanCrandall](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@RyanCrandall](https://discuss.bitrise.io/u/RyanCrandall)\
**Post date:** [July 7, 2020, 8:47pm UTC](https://discuss.bitrise.io/t/keychain-issue-only-with-bitrise-builds/13463/2 "2020-07-07T20:47:40Z")

</div>

I finally fixed the issue here, but it turns out that in the BUILD FOR IOS SIMULATOR step has CODE\_SIGNING set to false by default and in the UI there is no way to change this, so I never noticed.

Please I’d recommend changing this to prevent further issues like this happening. Essentially my code has to add CODE\_SIGNING=TRUE as an extra option afterwards, but I should have the option to change it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [August 6, 2020, 8:47pm UTC](https://discuss.bitrise.io/t/keychain-issue-only-with-bitrise-builds/13463/3 "2020-08-06T20:47:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
