58

I was using the latest version of Android Studio IDE for creating flutter apps. But when I upgraded from Mojave to Catalina and tried to open my flutter code on IDE it gave me an error saying:

Dart can not be opened because the Developer can not be verified

What is the reason behind the error and how can I solve the issue?

Do I have to install flutter and relative development tools from scratch again or is there any other way to resolve the issue?

enter image description here

Hamed
  • 5,867
  • 4
  • 32
  • 56
MD Sazid Hasan Dip
  • 1,425
  • 2
  • 14
  • 29

8 Answers8

123

Do this steps and repeat until allow all you need and stop notifications. Solve for me.

  1. On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click General.
  2. Click the lock icon to unlock it, then enter an administrator name and password.
  3. Select the sources from which you’ll allow software to be installed: There should be a button that says "Allow anyway". If not make sure you've cancelled the error dialog.
j2abro
  • 733
  • 8
  • 17
Álvaro Menezes
  • 1,658
  • 1
  • 13
  • 14
  • 12
    "3-Select the sources from which you’ll allow software to be installed" -- there should be a button that says "Allow anyway". If not make sure you've cancelled the error dialog. – T. Cervenka Oct 30 '19 at 14:47
26

usually you will not be allowed to install the applications dowloaded form other sources .... you need to first give permissions in the system Preferences

  1. apple-icon on left top corner > System Preferences > click Security & Privacy > then click General... now Click the lock icon to unlock it ... 2.now, you will be shown with below attached image ... click allow anyway .. enter image description here
  2. now retry installing ... you are good to go...
Dharman
  • 30,962
  • 25
  • 85
  • 135
Aravind Siruvuru
  • 1,019
  • 12
  • 7
7

You can run this command to allow your mac/apps downloaded from anywhere

sudo spctl --master-disable 
Harry Sarshogh
  • 2,137
  • 3
  • 25
  • 48
7

Disabling entire Gate Keeper is definitely not a good idea as it will result running any type of program on your system.

You can add Dart to the white list by running this in terminal:

sudo spctl --add "Path_to_flutter/bin/cache/dart-sdk/bin/dart"

You might require to reboot the system in order to apply the changes.

There are several other binaries other than Dart that may get blocked as well.

You can run GateKeeper script to fix the issue:

https://github.com/AmirKamali/Flutter_GateKeeper_Fix

I have published an article with more information how to fix this:

https://medium.com/@amir.n3t/how-to-fix-flutter-idevice-id-running-errors-in-mac-osx-catalina-7aa1f89f61aa

Amir.n3t
  • 2,859
  • 3
  • 21
  • 28
4

So who the hell is an "identified developer" if Google chooses not to be one? Something is wrong with this

Robert Monfera
  • 1,980
  • 1
  • 22
  • 16
4

i updated mac to Big sur and then got this problem.

Allowing dart in the security and privacy settings and then Deleting ...flutter/bin/cache folder solved it for me.

run flutter doctor in terminal afterwards to reinstall dart SDK

Efhem
  • 101
  • 1
  • 3
4

2022 update

The button is now at

 → System Settings → Privacy & Security → Scroll down to SecurityAllow anyway

Allow button

ViktorMS
  • 1,112
  • 10
  • 25
2

This issue can be resolved by deleting the artefacts directory and running flutter doctor once again - More Info Here

Shadab Mehdi
  • 604
  • 10
  • 23