Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop "keychain access" permission dialog on MacOS when debugging Flutter app on Visual Studio Code?

I had just moved from Android Studio to Visual Studio Code. I'm using Firebase in my app which I debug by running it on MacOS. Every time I do "Start Debugging" on VS code, I get this dialog which I learned to hate by this time. Even if I type my password and click "Always Allow", it still appears next time I start debugging. enter image description here

I tried changing Access Control settings in Keychain but that didn't help. The dialog is driving me insane. Any ideas? enter image description here

like image 989
Gintas_ Avatar asked Nov 14 '20 21:11

Gintas_


1 Answers

There are several cases when the permissions popup is presented and some of them cannot be fixed on Firebase side.

Could you please provide more details on your workflow:

  • Can you observe Keychain items created by your app with different signing settings? If you remove them, do you still observe the alert?
  • Do you observe the alert if you re-install your app without signing changes?
  • Once you allow access you should not see more alerts. It is the case for you?

Also, Please check the GitHub discussion on #5603 GitHub

You may add the following line to your Podfile for this and try:

pod 'FirebaseInstallations', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'master'
like image 58
Sreeram Nair Avatar answered Sep 24 '22 22:09

Sreeram Nair