A server with the specified hostname could not be found

Solution 1:

It might be DNS Pollution issue, at least for my case (in China).

If you're also in China or some places that has DNS Pollution issue, you might solve this by modifying the DNS (to 8.8.8.8 as an example) for your Mac as well.


I got this error inner my iPad App & this happens randomly, it's such boring. Keep trying is not a good solution for me, though it might works somehow. Finally, I just changed my Wi-Fi DNS and no more error now. Steps:

  1. Your device, Settings/Wi-Fi
  2. Choose connected Wi-Fi pot
  3. Press DHCP/DNS
  4. Set to 8.8.8.8

Solution 2:

In Xcode, select Target -> Capabilities, and check "Outgoing Connections (Client)" to enable App Sandbox.

Solution 3:

Keep Trying!

I have had this a few times (including today), and each time, without changing anything, it has worked when I tried again.

Sometimes the 2nd time, other times 20 minutes later.

Solution 4:

I received A server with the specified hostname could not be found.. I figured out my MacOS app had turned on App Sandboxing. The easiest way to avoid problem is to turn off Sandbox.

Solution 5:

That fixed the problem for me, when trying to upgrade to El Capitan:

sudo softwareupdate --clear-catalog