A server with the specified hostname could not be found A server with the specified hostname could not be found ios ios

A server with the specified hostname could not be found


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


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


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.