Keychain return different key when switching branches

Currently I found a wired issue on my application. The code basically unchanged for months. But suddenly when I switching to a different branch (a bit older), then back to the latest develop branch, the keychain returns a different encryption key. The keychain implementation remains the same for long time. Wondering if anyone can give some insights about it.

Keychain return different key when switching branches
 
 
Q