iOS Question Restore original Keychain after shutting down B4i Local Buildserver

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone,
I compile my iOS app using my Mac... however the builder, in order to work, has to create a keychain that replaces mine... but after i shutdown the server its keychain remains and I do not have access to my passwords anymore, I have to restart my computer...

How can I prevent this annoying behavior?

Thanks in advance
 

Mike1970

Well-Known Member
Licensed User
Longtime User
The builder needs to create a new key chain and set it to be the default one. There is no way around it.

You can change the default keychain by going to this folder with Files: /System/Library/CoreServices/Applications
Open Keychain Access and then set the default keychain in the upper left corner.
Yeah, I know that the builder needs to do it.
But, I do not know how to reset the default keychain... Before I run the server there is a keychain called "login", after launching the server this keychain vanishes and I do not know how to bring it back




EDIT:
Ok, I managed to bring back the "login" keychain by doing the following in the left pane:

Right Click > Add keychain

It opens the default folder of keychains where there was the "login" one, so I selected it and it was back.

Now, the question is:
@Erel why the "login" keychain is removed? it cannot be left where it is? if not, is not possible to edit the Build Server code to put the keychain back when the program (server) is terminated?
 
Last edited:
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime User
No keychain is removed.
I do not know at this point 🤷🏽‍♂️
I just know that when the B4iLocalBuilder.java compiles the first project, the "login" keychain disappears from the keychain list (more precisely when the logs show "Adding <user> to keychain" I think).

Before (at this moment I do not even start the java program yet, everything is ok)
Screenshot 2024-12-02 alle 10.26.30.png


After
Screenshot 2024-12-02 alle 10.28.56.png


Then to bring it back, I manually re-add the "login" keychain from the default folder back into the Keychain Access app in the way you mentioned
Screenshot 2024-12-02 alle 10.30.50.png
 
Upvote 0
Top