Here is the output after running doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-arm, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version
32.1.0-rc1)
[!] Xcode - develop for iOS and macOS (Xcode 13.3)
! CocoaPods 1.5.2 out of date (1.10.0 is recommended).
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 upgrade see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
[✓] VS Code (version 1.65.2)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
I have tried to update CocoaPods, but I still keep getting the above error when I run doctor.
(base) mbp % sudo gem install cocoapods
Successfully installed cocoapods-1.11.3
Parsing documentation for cocoapods-1.11.3
Done installing documentation for cocoapods after 1 seconds
1 gem installed
When running flutter run:
(base) mbp % flutter run
Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Warning: CocoaPods minimum required version 1.9.0 or greater not installed.
Skipping pod install.
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 upgrade see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.
Related
I am trying to migrate my Flutter/Dart project to use null safety. I have updated all of my dependencies and changed the sdk to use ">=2.12.0 <3.0.0". However, when I try to use the migration tool I get the following error:
When I look at my flutter and dart versions everything seems fine. I may be looking at it wrong, but below is the output from flutter doctor and brew info dart:
% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.6, on macOS 11.4 20F71 darwin-x64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --
android-licenses
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.57.0)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
% brew info dart
dart-lang/dart/dart: stable 2.12.4, HEAD
The Dart SDK
https://dart.dev
Conflicts with:
dart-beta (because dart-beta ships the same binaries)
/usr/local/Cellar/dart/2.9.3 (509 files, 523.7MB) *
Built from source on 2020-09-14 at 16:52:16
From: https://github.com/dart-lang/homebrew-dart/blob/HEAD/dart.rb
==> Options
--HEAD
Install HEAD version
==> Caveats
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
I'm suspecting that maybe I don't have the latest dart sdk like I believe I do. If that's the case then how do I upgrade without breaking anything?
UPDATE:
It appears I am using the latest version of dart. Going into the settings in Android Studio I can see it is pointing at the dart sdk that ships with flutter:
Have you run "flutter upgrade" in your terminal?
I cannot seem to run my flutter project anymore. I created a new empty one and still the same: I get the same error
No supported devices connected.
The following devices were found, but are not supported by this project:
Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192
If you would like your app to run on web, consider running flutter create . to
generate projects for these platforms.
It worked perfectly before! I used fluter doctor to check if everything is ok
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-arm, locale
en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
✗ Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[!] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS
development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.53.2)
[✓] Connected device (1 available)
I run my projects in VSCode and worked perfectly fine before... Flutter is put to date.
When I do flutterdeviced the IOS Simulator does not appear anymore :(
Accept licenses and try again. May be they changed agreement
run: flutter doctor --android-licenses
export PATH="$PATH://Users/USERNAME/dev/flutter/bin"
USERNAME= which user
dev = where flutter is
flutter doctor --android-licenses
When I run app in profile mode in Android Studio 4.1.2:
show this error:
Exception: Profile mode is not supported for iPhone 11 Pro.
why would this happen and what should I do to fix it? This is my env:
~/source/dabai/microservice/soa-illidan-hub on feature/cardrobot ⌚ 22:29:08
$ ~/apps/flutter/bin/flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
[!] Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Community Edition (version 2020.3.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Ultimate Edition (version 2019.2.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.53.2)
[✓] Connected device (1 available)
! Error: xiaoqiang 的 iPhone is not connected. Xcode will continue when xiaoqiang 的 iPhone is connected. (code -13)
! Doctor found issues in 3 categories.
using command also failed:
~/Documents/GitHub/cruise-open on feature/channel ⌚ 22:42:08
$ ~/apps/flutter/bin/flutter run --profile
Profile mode is not supported by sdk gphone x86 arm.
If this issue occurs both on Simulator and physical device, it's possible that timeouts in the Observatory port as mentioned on this thread. Try upgrading the Flutter version that you're using and see if it solves the issue. If it persists, run flutter run --profile --verbose to see more details on what's causing the issue.
I have run:
export ENABLE_FLUTTER_DESKTOP=true
flutter channel master
flutter upgrade
Then on flutter doctor i get no devices available:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.10.15-pre.357, on Mac OS X 10.14.6 18G103, locale en-IL)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.4)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Community Edition (version 2019.1.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.39.2)
[!] Connected device
! No devices available
! Doctor found issues in 4 categories.
Did I miss anything? (I'm looking to develop a desktop app so not android emulator / ios emulator)
Whatever instructions you are following are out of date; ENABLE_FLUTTER_DESKTOP hasn't been the supported or documented way to enable experimental desktop support for several months (and the legacy code for it was recently removed). You need to enable it with flutter config as documented in the official instructions
Just Enable flutter desktop
flutter config --enable-macos-desktop
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?
THANK YOU !!!
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?
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