When I run ‘flutter doctor -v’ Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-arm64) , I get this check:
[!] HTTP Host Availability
✗ HTTP host "https://cocoapods.org/" is not reachable. Reason: Failed to connect to host in 10 seconds.`
I tried to re-install cocoapods but it didn’t work.
3
Answers
Try upgrade and changing the channel, it helped me.
Sometimes it might happen. What you can do is, like the previous answer, do an upgrade of your flutter (or maybe not). Nonetheless, you can:
This can solve your problem in most of the cases.
I had the same problem after updating Microsoft defender. After Disabling Defender, the problem went away. Real-time protection and cloud-based protection turn it off via the Defender app. Check again with flutter doctor command.
After it was fixed, I activate the antivirus and the problem did not appear again.
In addition, sometimes such an error occurs due to poor internet connection.