Flutter.dev and the problem with macOS Catalina (Gatekeeper)

“dart” can’t be opened because apple cannot check it for malicious software.
flutter export path
flutter sdk path
“gen_snapshot” cannot be opened because the developer cannot be verified.
flutter pod install
flutter simulator
https flutter dev docs get started install macos
error running pod install flutter

since I upgraded my MacBook to macOS Catalina. I'm getting permanent the message ("ideviceinfo" could not be open, because the developer is not verified) despite I disabled the "spctl". can somebody help please? I downloaded the flutter version flutter_macos_v1.9.1+hotfix.4-stable.zip AND i use the Andriod Studio 3.5.1.

[✓] Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.15 19A583, locale de-DE)
    • Flutter version 1.9.1+hotfix.4 at /Users/yousefmosa/0/prg/flutter
    • Framework revision cc949a8e8b (2 weeks ago), 2019-09-27 15:04:59 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0


[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/yousefmosa/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods
        pod setup

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.1.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 37.0.3
    • Dart plugin version 191.7830

[✓] VS Code (version 1.37.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.3.0

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • XXX-6B2F-XXX-9B01-XXXXXX • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

! Doctor found issues in 2 categories.

From macOS "System Preferences..." > "Security & Privacy" > "General" tab , you see the dart entry. Just press "Allow Anyway"

On macOS Catalina unsigned binaries blocked by , 0 (build 2.5.0-dev.1.0 a089199b93) ✗ Downloaded executables cannot execute on host. See https://github.com/flutter/flutter/issues/6207 for  Basically, if you created a new user account in macOS Catalina, zsh (Z shell) will be your default shell. The only option I found to remedy this is to globally disable Gatekeeper by typing

Go to System preferences -> General and allow "dart" to run

How to find the path of flutter sdk, How do you fix macOS Cannot verify that this app is free from malware? 1 Open Network Utility on your Mac, and select the Traceroute tab. Type Flutter.dev in the top empty box, then select Trace. If the first trace entry shows 127.0.0.1, you likely have proxy software, like POW, redirecting that path internally. The Network Utility is not in System Preferences > Network.

Type these command in terminal

sudo xattr -d com.apple.quarantine YourflutterSDKLocation/bin/cache/artifacts/libimobiledevice/ideviceinfo

Setting up Flutter on macOS Catalina - Alexandros Baramilis, How do I update the flutter path on my Mac? MacOS Catalina’s Gatekeeper keeps these apps from being installed on your device for your own security. By default, the Gatekeeper will not allow you to install any app, even if you trust the app developer.

This is because of recent changes in macOS Catalina.

sudo spctl --add "Path_to_flutter/bin/cache/artifacts/libimobiledevice/ideviceinfo"

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

You can run a GateKeeper script to fix the issue.

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

How to fix flutter “idevice_id” cannot be opened error in Mac OSX , Flutter has good installation documentation, but to install it on macOS Catalina Basically, if you created a new user account in macOS Catalina, zsh (Z shell) this is to globally disable Gatekeeper by typing sudo spctl --master-disable /​Applications/Xcode.app/Contents/Developer and sudo xcodebuild -  Gatekeeper builds upon File Quarantine, which was introduced in Mac OS X Leopard and expanded in Mac OS X Snow Leopard. Remove startup an item using a. 15 Catalina, macOS 10. As a result, you might look to disable SIP so you can use these old tools again.

On macOS Catalina unsigned binaries blocked by , If you are a Mac user and recently started flutter development, you might have faced some errors like this: This is because of GateKeeper and recent changes inside Mac OSX. Gatekeeper is How to fix flutter “idevice_id” cannot be opened error in Mac OSX Catalina. Amir Kamali Welcome to a place where words matter. To vouch for the integrity and security of macOS Catalina, the gatekeeper will refuse to open apps which their code-signing requirements are not met. Also, Apple can revoke the developer's certificate with which the application was signed and prevent further distribution.

macOS install, For macOS Catalina, Apple has changed the way Gatekeeper verifies binaries See https://github.com/flutter/flutter/issues/6207 for more information Dart version 2.5.0 (build 2.5.0-dev.1.0 a089199b93) ✗ Downloaded executables cannot  In macOS 10.15 Catalina, those distinctions remain (with a further option available via the command line to run apps from any source), but Gatekeeper will now also perform a malicious content scan and signature validation from time-to-time to check that code has not been tampered with.

How to fix app failures on Mac OS Catalina, System requirements. To install and run Flutter, your development environment must meet these minimum requirements: Operating Systems: macOS (64-bit)  Gatekeeper is a macOS security feature that only lets you open Apple-trusted software. If you see a message that “macOS cannot verify that this app is free from malware” then you’re dealing with Gatekeeper. Generally speaking, you can bypass Gatekeeper restrictions by control-clicking the application and selecting Open from the pop-up menu.

Comments
  • Thank you for your answer. I did that and despite that. The System keep showing this message. I can not develop my app on macOS Catalina anymore :-(
  • most probably, you get errors from 'flutter doctor' command. Just follow the error message to get them all green. You might need to run 'flutter upgrade', cocoapods and something to make it all green.