Using an entitlement file is necessary if you want to get keychain acces...

This was necessary in my case as well: Without setting a proper entitlement file, the application refused to access the keychain.