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

When I try to submit my app on the App Store through Xcode I got this error.

A server with the specified hostname could not be found.

Is this temporary error at Apple or something to do with Xcode?

Is anyone else facing this problem?

This question is related to ios xcode app-store itunes

The answer is


A server with the specified hostname could not be found.

I faced the same problem, In my case it was because of-

  1. Server was not configured properly.
  2. Server subscription has been expired

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

  1. Change DNS to 8.8.8.8 and 4.2.2.2
  2. Open net.properties and change "# https.proxyPort=443" to "https.proxyPort=80". You can find net.properties here /Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib/net.properties
  3. Open Application Loader->Preferences->Advanced and uncheck Signiant and Aspera. Make sure DAV is checked.

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


For me it was an issue with enabling Outgoing connections in Capabilities tab.

enter image description here


Just to share my experience

It was caused by the Sharing > Internet Sharing inside System Preferences

I was testing and created NAT64 Network unchecking it solved my problem.

enter image description here


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

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.


Examples related to ios

Adding a UISegmentedControl to UITableView Crop image to specified size and picture location Undefined Symbols error when integrating Apptentive iOS SDK via Cocoapods Keep placeholder text in UITextField on input in IOS Accessing AppDelegate from framework? Autoresize View When SubViews are Added Warp \ bend effect on a UIView? Speech input for visually impaired users without the need to tap the screen make UITableViewCell selectable only while editing Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Examples related to xcode

Undefined Symbols error when integrating Apptentive iOS SDK via Cocoapods Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 iPhone is not available. Please reconnect the device Make a VStack fill the width of the screen in SwiftUI error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65 The iOS Simulator deployment targets is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1 Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) Xcode 10: A valid provisioning profile for this executable was not found Xcode 10, Command CodeSign failed with a nonzero exit code

Examples related to app-store

Error ITMS-90717: "Invalid App Store Icon" iTunes Connect Screenshots Sizes for all iOS (iPhone/iPad/Apple Watch) devices AppStore - App status is ready for sale, but not in app store An App ID with Identifier '' is not available. Please enter a different string A server with the specified hostname could not be found Proper way to renew distribution certificate for iOS Can I install the "app store" in an IOS simulator? Find the number of downloads for a particular app in apple appstore Max size of an iOS application How to install a certificate in Xcode (preparing for app store submission)

Examples related to itunes

Install IPA with iTunes 12 Images can't contain alpha channels or transparencies Application Loader stuck at "Authenticating with the iTunes store" when uploading an iOS app Is there a way since (iOS 7's release) to get the UDID without using iTunes on a PC/Mac? 'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format' Install IPA with iTunes 11 How to fix itunes could not connect to the iphone because an invalid response was received from the device? A server with the specified hostname could not be found How to install a .ipa file into my iPhone? How can I pass an argument to a PowerShell script?