A server with the specified hostname could not be found.
I faced the same problem, In my case it was because of-
Contacting to server hosting company resolve my problem.
I think this is not temporary error at apple or something to do with Xcode?
First of all check your internet connection.. go to safari and check by searching something on google(dont try google.com only.. because it can be cached). If it is working fine, then try now in your app. It must work. This is fired while not having proper internet connection.
That fixed the problem for me, when trying to upgrade to El Capitan:
sudo softwareupdate --clear-catalog
I faced this issue when we changed from one domain to another for API service.
Restarting the network router/modem fixed this issue.
I faced same problem. Actually i face it often. Following three steps work for me always
Thants all. Now you can submit app using both application loader and Xcode.
I restarted my MacBook Pro and then I build again, the error was fixed.
I got this error message when "/" from my URL is missing . Hope this help someone.
ex: actual URL is "https://www.myweb.com/login" .My URL which "https://www.myweb.comlogin" caused this error
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:
8.8.8.8
Turn off the push notification. Then,Restart your XCode and Turn back ON the Push Notification. It works for me.
In Xcode, select Target -> Capabilities, and check "Outgoing Connections (Client)" to enable App Sandbox.
I faced the same problem, it turned out to be VPN related. If you are testing on a device against a corporate network, chances are your Mac has proper VPN set up, but your phone does not. Connect phone to the corporate VPN for your apps deployed to device to see corporate servers.
If the problem occured in a MacOS project, as @nstein commented in this answer just go to your Target
's Signing & Capabilities
and allow Incoming
and Outgoing
network options.
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.
I got this message when the device has mobile data turned on and no wifi connection, but the internet is not properly connected.
Try to connect to a wifi network with an internet connection or turning off the mobile data.
Source: Stackoverflow.com