Can't Install dart on macOS Catalina 10.15.4 - flutter

I want to install dart language with brew in my MacBook Pro. My MacBook OS details is - macOS Catalina 10.15.4. But It's throw an error. Could you please some one help me out ?
I followed the below steps from here - https://dart.dev/get-dart
brew tap dart-lang/dart
brew install dart
Then I got this error message from terminal
Updating Homebrew...
==> Installing dart from dart-lang/dart
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.2/sdk/dartsdk-macos-x64-release.zip
-=O=- ###
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443
Error: Failed to download resource "dart"
Download failed: https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.2/sdk/dartsdk-macos-x64-release.zip

Have you tried installing using a VPN? As storage.googleapis site is down in Bangladesh for over a month.

Related

Homebrew - Flutter Attempts to Downgrade Itself when Upgrading Casks

I have downloaded through Homebrew and use the flutter cask which has a latest version of 3.0.0 as of the time of writing. When I run brew outdated I get a response of flutter (3.0.0) != 1.17.5 and when I run brew upgrade it attempts to downgrade to this version with an error during the process. Look at the output below:
f1ae97f5d1e520e216f7d19327f7fc6acf071774f893f150f314cdb869dbf4b4--flutter_macos_1.17.5-stable.zip
==> Unlinking Binary '/opt/homebrew/bin/dart'
==> Unlinking Binary '/opt/homebrew/bin/flutter'
==> Linking Binary 'flutter' to '/opt/homebrew/bin/flutter'
==> Unlinking Binary '/opt/homebrew/bin/flutter'
==> Purging files for version 1.17.5 of Cask flutter
==> Purging files for version 1.17.5 of Cask flutter
Warning: Reverting upgrade for Cask flutter
==> Linking Binary 'dart' to '/opt/homebrew/bin/dart'
==> Linking Binary 'flutter' to '/opt/homebrew/bin/flutter'
Error: sidneys/homebrew/flutter: Failure while executing; `/usr/local/bin/flutter upgrade --force` exited with 127. Here's the output:
No such file or directory - /usr/local/bin/flutter
Question is: Has anyone else had this occur? Why is this happening?
It seems, as of today, Flutter's comparison with older versions is no longer happening when running brew outdated or brew upgrade.

Can't seem to find openssl#1.1 on osx 12.3.1

Having a mint issue trying to instal realm/SwiftLint. New system and have installed mint and openssl#1.1 using home-brew. Using OSX 12.3.1 on apple silicon. Keep getting:
rbonner#ATH64694 ~ % mint install realm/SwiftLint
dyld[14284]: Library not loaded: /usr/local/opt/openssl#1.1/lib/libssl.1.1.dylib
Referenced from: /opt/homebrew/Cellar/mint-lang/0.14.0/bin/mint
Reason: tried: '/usr/local/opt/openssl#1.1/lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file)
zsh: abort mint install realm/SwiftLint
Here is my openssl install info:
rbonner#ATH64694 ~ % brew install openssl#1.1
Running brew update --preinstall...
Warning: openssl#1.1 1.1.1n is already installed and up-to-date.
To reinstall 1.1.1n, run:
brew reinstall openssl#1.1
My openSSL is installed here:
/opt/homebrew/opt/openssl#1.1/bin/openssl
Not sure what I am missing here to have it be usable.
Thanks in advance!

Can't install Flutter on Mac

This is the only install that fails, I have already installed Flutter on 2 other Macs without any issue.
It's a MBP 15-inch, 2018 running Mojave.
What might interfere with the installation is SentinelOne, that's installed on this machine and that I can't remove, so I need to somehow work around it.
Here's flutter doctor:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F203, locale en-BE)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.dev/platform-plugins
To install:
brew install cocoapods
pod setup
[!] Android Studio (version 3.4)
✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.2)
[!] Connected device
! No devices available
! Doctor found issues in 4 categories.
I run brew update and then:
$ brew install --HEAD usbmuxd
==> Cloning https://git.sukimashita.com/libusbmuxd.git
Updating /Users/me/Library/Caches/Homebrew/usbmuxd--git
From https://git.sukimashita.com/libusbmuxd
60109fd..6539b02 master -> origin/master
==> Checking out branch master
Already on 'master'
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
HEAD is now at 6539b02 iproxy: Fix (newly introduced) timeout errors not being handled
==> ./autogen.sh
Last 15 lines from /Users/me/Library/Logs/Homebrew/usbmuxd/01.autogen.sh:
2019-07-04 13:22:50 +0200
./autogen.sh
./autogen.sh: line 6: libtoolize: command not found
./autogen.sh: line 8: aclocal: command not found
./autogen.sh: line 9: autoheader: command not found
./autogen.sh: line 10: automake: command not found
./autogen.sh: line 11: autoconf: command not found
./autogen.sh: line 14: ./configure: No such file or directory
Any help would be greatly appreciated.
I ran into the same issue few days ago.
First you have not completely installed all the requirements of Android studio and Xcode.These errors stamps from improper installation and configurations.
Follow these steps.
Install or reinstall Android Studio -for the latest version
Install or reinstall Flutter macOS
https://flutter.dev/docs/get-started/install/macos
Install or update Xcode - this takes nearly a couple of hours depending on your connections.
Once all is installed - you need to run the command Lines to accept the agreements for Xcode and Xcode toolbox.
Install cocoa pod also using the command Line as mentioned in the flutter guide.
Finally, make sure that your flutter path in located somewhere you can find it and create a .zshrc file and expose the path into this file. I recommend /Users/johndoe/Development
`nano ~/.zshrc'
export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
per my recommendation it would look like this
export PATH="$PATH:/Users/johndoe/Development/flutter/bin"
you have to install brew for that, first of all you have to run this command and after that run all other command as suggested in flutter doctor result.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
download java from following link and install it.
https://support.apple.com/kb/dl1572?locale=en_US
Android studio 3.4 is not now supported with flutter, so as of now you can not solve this error.
for More details you can refer this video.
https://www.youtube.com/watch?v=Xy-qHlaHr6c

"Could not connect to lockdownd" while attempting to run flutter app

I am following the Get Started tutorial.
I can install everything, flutter doctor returns all checkmarks but in the end there is a message:
idevice_id returned an error:
ERROR: Could not connect to lockdownd, error code -2
Same message appears if I try to run the app using flutter run or if I try to list the devices using flutter devices.
The tutorial also states that:
Note: If the Run & Debug buttons are disabled, and no targets are listed, Flutter has not been able to discover any connected iOS or Android devices or simulators. You need to connect a device, or start a simulator, to proceed
I have two devices listed my Android phone and an iPhone simulator. Run and Debug buttons are ENABLED!
How can I run my app using flutter? It can be either using the command line or IntelliJ IDE.
Disconnect all iOS devices, then:
brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install --HEAD ideviceinstaller
brew link --overwrite ideviceinstaller
sudo rm -rf /var/db/lockdown/*
Connect an iOS device, and choose "Trust" when prompted, after that:
sudo chmod -R 777 /var/db/lockdown/
This workaround worked for me when loosing the connection:
close everything (Visual Studio Code, Xcode, Simulator)
disconnect any physical device
Start Visual Studio Code
connect a physical IOS phone
Start XCode
build from XCode (it will work)
Disconnect your physical device
Start without debug
You will be prompted to connect to a device
and from there it worked again!
This just to help to debug the loos of connection bug. I have also observed that it begins just after the "stop debugging" command from Visual Studio Code.
I was having similar issues, and resolved them using the below. Hopefully this will help you. flutter doctor was telling me the answers, but they were a bit buried. Look for something like this:
[-] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
✗ libimobiledevice and ideviceinstaller are not installed or require updating. To update, run:
brew uninstall --ignore-dependencies libimobiledevice
brew install --HEAD libimobiledevice
brew install ideviceinstaller
• ios-deploy 1.9.1
✗ ios-deploy out of date (1.9.2 is required). To upgrade:
brew upgrade ios-deploy
• CocoaPods version 1.2.0
There are four brew commands in there to run. When I did them, this problem disappeared for me. Good luck!

Can't install SBT using brew on Mac OSX Sierra because of connection timeout

I tried to install sbt using brew on Mac OSX sierra but I got the following error:
brew install sbt
Updating Homebrew...
==> Using the sandbox
==> Downloading https://dl.bintray.com/sbt/native-packages/sbt/0.13.13/sbt-0.13.
curl: (7) Failed to connect to dl.bintray.com port 443: Operation timed out
Error: Failed to download resource "sbt"
Download failed: https://dl.bintray.com/sbt/native-packages/sbt/0.13.13/sbt-0.13.13.tgz
I tried to ping dl.bintray.com but it is a timeout.