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

4

18

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

Abdominal answered 14/11, 2020 at 21:42 Comment(5)
You need to codesign your applicationRoentgenogram
@Roentgenogram how?Abdominal
May be this will help you a bit, firebase.google.com/docs/auth/ios/single-sign-on firebase.google.com/docs/auth/ios/custom-authSyntax
Issue is still present.Nickelplate
Could you fix it? This is really annoying!Stepha
S
1

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'
Saddlery answered 18/11, 2020 at 10:16 Comment(1)
this is not about iOS, it's about MacOSAbdominal
J
0

Open the Keychain Access app, which is in the the Utilities folder of your Applications folder.

From the list of keychains on the left side of the window, select "login."

From the Edit menu in the menu bar, choose “Change Password for Keychain 'login.'”

Enter the old password of your user account in the Current Password field. This is the password you were using before the password was reset.

Enter the new password of your user account in the New Password field. This is the password you're now using to log in to your Mac. Enter the same password in the Verify field.

Click OK when done, then quit Keychain Access.

Jacklin answered 24/11, 2020 at 6:4 Comment(2)
“Change Password for Keychain 'login.'” is greyed out for me and I can't click it. Why do you think this password reset process would help in this case?Abdominal
Should reboot device on latest MacOS Version.Imperceptive
N
0

After stealing a solid 3 days from my life, fixed for me with the following:

  • Created a new project on Firebase for the macOs client.
  • Added the GoogleService-Info.plist as described in the FlutterFire docs. [https://firebase.flutter.dev/docs/manual-installation/macos/]

When I revert this one commit with this only change and rebuild, the permissions dialog comes back immediately.

For those who want to replicate my working configuration, I use the following packages Google Sign In and Firebase Auth:

Nickelplate answered 17/4, 2022 at 3:11 Comment(0)
L
0

Try removing the login item for firebase by.

  1. Opening the keychain app
  2. On the top right search field, type in firebase
  3. Simply remove the login item.
  4. Restart a Flatter debug session.
Lp answered 9/6 at 16:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.