When I was searching for solution to my problem mentioned below, I found this page. That seems more similar to your problem. Hope it works for you! Good luck!
I got a problem as follow:
➜ ~ gem install cocoapods
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Operation timed out - connect(2) for "your-dns-needs-immediate-attention.network" port 443 (https://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/cocoapods-0.33.1.gemspec.rz)`enter code here`
I'm new here(just know a little about objective-c, know nothing about ruby, gem or rvm). But I found a solution for me. I am not sure whether it works for you or not.
- go to the OSX network settings, under DNS you'll see the
home.network
line under the Search Domains area
- click "+" sign, add
home.local
Or you may try with Starbucks' free wifi.
Reference:
GitHub, StackOverflow