After updating to MacOS 10.15 Catalina, there are problems with Flutter.
Specifically, Flutter doctor complaints about the following:
Downloaded executables cannot execute on host.
CocoaPods not installed.
It is important to explain that before updating, when my computer was running Mojave 10.14, these issues with Flutter did not exist, thus flutter doctor -v reported no issues whatsoever.
Regarding the first issue: Downloaded executables cannot execute on host.
Flutter doctor offers this link: https://github.com/flutter/flutter/issues/6207
Nevertheless, the linked article refers to Linux, not MacOS...
Regarding the second issue: CocoaPods not installed.
Flutter doctor suggests the following solution:
brew install cocoapods
pod setup
Nevertheless, although "install cocoapods" works fine, "pod setup" fails, indicating the following error:
/usr/local/bin/pod: /usr/local/Cellar/cocoapods/1.7.4/libexec/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/pod: line 2: /usr/local/Cellar/cocoapods/1.7.4/libexec/bin/pod: Undefined error: 0
Running flutter doctor -v offers the following result:
[!] Flutter (Channel dev, v1.8.1, on Mac OS X 10.15 19A501i, locale es-PA)
• Flutter version 1.8.1 at /Users/podriasereltuyo/flutter
• Framework revision d3eee57c0b (7 days ago), 2019-07-08 11:04:24 -0700
• Engine revision 3c51a7bfff
• Dart version 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)
✗ Downloaded executables cannot execute on host.
See https://github.com/flutter/flutter/issues/6207 for more information
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
MacBook-Air-de-Podria:ptyce podriasereltuyo$ flutter doctor -v
[!] Flutter (Channel dev, v1.8.1, on Mac OS X 10.15 19A501i, locale es-PA)
• Flutter version 1.8.1 at /Users/podriasereltuyo/flutter
• Framework revision d3eee57c0b (7 days ago), 2019-07-08 11:04:24 -0700
• Engine revision 3c51a7bfff
• Dart version 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)
✗ Downloaded executables cannot execute on host.
See https://github.com/flutter/flutter/issues/6207 for more information
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/podriasereltuyo/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[!] Xcode - develop for iOS and macOS (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
✗ 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:
brew install cocoapods
pod setup
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 37.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
! Doctor found issues in 2 categories.
I humbly wish to ask for your help, please, to clarify what does it mean when it says Downloaded executables cannot execute on host?
and, what may be done to resolve it? Please?
also, if cocoapods was running beautifully when using Mojave 10.14, what may be the issue now, being seemingly unable to successfully run pod setup?
is anyone else here having any issues with Flutter after upgrading to MacOs 10.15 Catalina Beta, which you were not having before with Mojave?
Update... Researching about this issue, I've encountered a very sad comment, which suggests that basically there is no support for Flutter in Catalina...
Please find it here: https://github.com/flutter/flutter/issues/34000
The comment says: Flutter is not yet supported on macOS 10.15, although we're obviously looking at it. This is a duplicate of #22598, which relates to the removal of 32-bit support from Catalina.
So, I am beginning to think that it might be a good idea to go back to Mojave's safety, at least Flutter was working fine...
Please share your thoughts, suggestions, advise?
macOS supports developing Flutter apps for iOS, Android, macOS itself and the web. Complete at least one of the platform setup steps now, to be able to build and run your first Flutter app.
Flutter is a multi-platform application development framework that enables you, among other platforms, to develop iOS and Android apps from the same source code. However, you need to use Xcode to build an iOS app and Xcode will only work on macOS. You cannot get away with Linux or Windows.
Simply press “command” + “shift” + “>” to show all the hidden files. After that, open the . zshrc file with your favorite text editor. Change [PATH_TO_YOUR_FLUTTER_DIRECTORY] with your own path (the place flutter was downloaded on your computer).
The comment says: Flutter is not yet supported on macOS 10.15, although we're obviously looking at it. This is a duplicate of #22598, which relates to the removal of 32-bit support from Catalina. So, I am beginning to think that it might be a good idea to go back to Mojave's safety, at least Flutter was working fine...
This is a guide on how to set up and install Flutter on MacOs Catalina. Disk Space: 2.8 GB (does not include disk space for IDE/tools).
However, defaults command in MacOS 10.15 seems working unexpectedly. Those two plist has the same md5, however, defaults works differently. It seems plutil works fine now while the defaults command fails. As it is not a blocker now and macos 10.15 is still in beta, I don't think it's a good practice to change the plist parsing logic in flutter.
From macOS "System Preferences..." > "Security & Privacy" > "General" tab , you see the dart entry. Just press "Allow Anyway" Show activity on this post. Show activity on this post. Show activity on this post. This is because of recent changes in macOS Catalina. You might need to reboot the system in order to apply the changes.
Its possible to install cocoapods, run flutter build ios and run on the iOS simulator.
brew uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods
pod install
Detailed instructions are here: This terminal won't let me run or install cocoa pods because I am on MacOS Catalina Beta?
For this issue:
[!] Flutter (Channel dev, v1.7.11, on Mac OS X 10.15 19A487m, locale en-SE) ✗ Downloaded executables cannot execute on host. See https://github.com/flutter/flutter/issues/6207 for more information
Easy fix: Open a terminal on MAC and run the following commands:
> flutter channel master
> flutter doctor
Enjoy
Uninstall and install it again (fe if you are using homebrew
).
Just run:
brew uninstall cocoapods && brew install cocoapods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With