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

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?

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:
Your device, Settings/Wi-Fi
Choose connected Wi-Fi pot
Press DHCP/DNS
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.

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

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.

That fixed the problem for me, when trying to upgrade to El Capitan:
sudo softwareupdate --clear-catalog

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.

I restarted my MacBook Pro and then I build again, the error was fixed.

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.

I faced same problem. Actually i face it often. Following three steps work for me always
Change DNS to 8.8.8.8 and 4.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
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.

A server with the specified hostname could not be found.
I faced the same problem, In my case it was because of-
Server was not configured properly.
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.

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.

I faced this issue when we changed from one domain to another for API service.
Restarting the network router/modem fixed this issue.

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

Just restart your network router device.
Obs. If it is already has automatic DNS settings.

In my case this was occurring while validating build before upload. Just before that we had server issue.
I tried restart Mac, quit Xcode multiple times, doesn't work. Also try to sign in from organiser but connection was not getting established.
Later from account, I tried sign in and thats done and then validate and build gets uploaded.
For xcode 12.4.1

This is network error, this issue fixed for me with turn off/on my network and run again...
This is just my experience and it's not always true, given that every situation is different and can be fixed in different ways.

Turn off the push notification. Then,Restart your XCode and Turn back ON the Push Notification. It works for me.

Related

Why won't my iOS beta app connect to network / internet?

I'm facing a weird problem.
While I was testing my app on xCode, everything was working like a charm, even internet accessing.
I uploaded my build to Testflight and my testers won't be able to connect.
Even more surprising : I realize that the one I'm using on my phone is the xCode build, not installed via testflight, and still wont be able to access the internet while it was perfectly able to do so while connected to xCode...
EDIT : tested my web service which works as well
Did any one of you already face this problem ? How should I solve this ?
Thanks very much in advance
Vincent
Ok,
I Had a deeper look into it after #Ladislav and #Losiowaty suggestions.
The problem was actually elsewere. The app behavior was like if there was a network problem. I didn't remember about it but I changed one line in the returned jSon use, which caused a non fatal error and the results not showing, which couldn't be seen without reading logs.
Thank you all for your time anyway !

Xcode 7 ‘Client unable to connect to server (check UDP port and firewall) (15)’

I can't upload a new build using Xcode7 or Application Loader. It gets stuck on "Verifying assest with Itunes Store", and after a couple of minutes i get the error "Client unable to connect to server (check UDP port and firewall) (15)".
I tried uploading a new build with the Xcode6.4, and it worked. Did they change some port? Any way to fix it? My Mac have the firewall disabled.
Yesterday somehow i could upload a build, i was messing around with the router and other things, but i'm not sure what did the trick.
I was having the very same issue in my company's network because there was a firewall. Contacted with the system admin and we have monitored the process, seen that it was trying to connect over UDP 33001 port but failing, then passing to alternatives. So we have allowed UDP 33001 port, I was able to upload successfully.
The thing is that these numbers might change in the future, as it (most probably) happened when Xcode has changed from 6.4 to 7.0. Take a look at this comment: https://stackoverflow.com/a/6178286/705982
There you will see the ports Application Loader uses. If you can't monitor the upload process, then try to create allow rules for one or some of these ports. You should be good to go.
I just changed network. I changed to another WiFi having another network provider (my phone's internet). That solved my problem. And I was actually using company's network. So I had proxy and thus I think the issue of firewall also came across.

Xcode upload error: Failed to open ssh session. (16)

NOTE: We finally uploaded the app but we didn't really troubleshoot this issue so I would appreciate if someone could share some valuable insight or experience pertaining to this question.
I've also checked the following 2 similar questions but these didn't help:
Error uploading ios application to itunesconnect “failed to open ssh session (16)”
App Store submission/distribution error “failed to open ssh session”
So...
Firstly, I am on a company network and just a week back we published a fresh new app using Max OSX 10.9.3 (13D65) & Xcode v5.1.1 (5B1008).
This week, while trying to upload an update for this app via the same system, I ran into a few issues.
1st try*firewalled
2nd/3rd try*firewalled
So, I got our network admin to open up port number 44001 and tried again.
Although it did reduce the number of errors, it failed again.
Thought we'd try from another system but same error.
4th try*firewalled
NOTE: No changes in network or system
5th try*firewall bypassed
So, I got our network admin to look into it and eventually we ended up bypassing the company firewall just for this upload session but it failed again.
6th try*firewalled
Thought we'd try from another system again so I switched to a colleague's system that hadn't been involved in this app's development, note that it was not bypassing the firewall, and it uploaded successfully in it's 1st attempt, albeit with a few warnings.
System was a Mac OSX 10.9.3 that we later realized had an older version of Xcode (5.0) but anyways...
Would someone be kind enough to shed some light or hints for the following errors/warnings:
Error: Failed to open ssh session. (16) (NOTE: this appeared with/without firewall/restrictions)
Error: Could NOT set the remote path to the existing package
Error: Could not create/set the package's folder on Apple's webDAV
Warning: Creating a new Signiant Transfer Engine
After having the same issue I've been able to fix this issue.
To solve this issue you need to:
Go to page 6 "System and Network Requirements" from https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf
verify that all of the ports and IP addresses are accessible.
After opening all of the ports from the table, I'm now able to upload my apps.
Enjoy!
I had the same problem when using my company's network because we use a proxy and due to security reasons all the needed ports and IPs reported on the official documentation were blocked. After switching to an external network without proxies, I was able to upload my new app.

App Store submission/distribution error "failed to open ssh session"

I'm trying to submit an iOS PhoneGap app to the app store via Xcode 5.0.2 but I'm encountering problems at the final distribution stage. The app works perfectly on the simulators and devices that I've used and even passes the validation yet when I go to distribute it a number of errors pop up and the project's status is listed as "Failed Validation".
I've had no luck searching for these errors on-line and I don't understand how it passes validation when I click validate but somehow fails it when I go to distribute.
I see other Xcode submission problems are linked to Apple server traffic but I'm not getting any "network connection lost" errors.
I've seen some issues requiring a Java update for Xcode but they seemed to effect Xcode 4 and I'm using Xcode 5.
EDIT:
I forgot to mention that I'm using an iMac on a University network.
After having the same issue I've been able to fix this issue.
To solve this issue you need to:
Go to page 6 "System and Network Requirements" from https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf
verify that all of the ports and IP addresses are accessible.
After opening all of the ports from the table, I'm now able to upload my apps.
Enjoy!
The problem was that I was using a university network which has a number of restrictions on servers as well as uploading and downloading. The only fix for this problem was to find another Mac to use which wasn't restricted.
A possible solution is to do what #kernix suggests, make sure your bitching corporate firewall isn't trying to mug you off. Are your ports open?
Another solution is to user Application Loader instead.
Open Application Loader, got to preferences (⌘+,) and unselect Signiant and Aspera, but leave DAV selected.

Uploading IOS app to app store. Seems to freeze and internet stop working

In Xcode i have have created an archive of the app. Verified it no problem. then when i click Distribute i get as far as "Your application is being uploaded" and shows the progress bar.
The bar never moves and after a few minutes my internet breaks. i need to restart my router to get the internet back.
one of the times i received this error "SSL error occured and a secure connection to the server cannot be made"
Anyone ever experienced this or have an idea of whats happening?
Thanks
I also faced this problem: "your application is being uploaded stuck"
My ANSWER IS:
Either just delete your derived data from organizer or Instead of uploading via Xcode, try via it using Application Loader.
I choosed via Appplication Loader and Steps to do that are:
Step1: Make .ipa file via Ad-Hoc Deployment by click Distribution button.
Step2: Find from menu bar of Xcode -> Open Developer Tool -> Application Loader.
Step3: Then upload it that .ipa file in Application Loader.
**
OR ANOTHER SOLUTION
**
For uploading it via XCode:
Step1: Firstly Validate your archive file by clicking on validation button of Organiser.
Step2: Then Upload it to App Store via Oraganiser.This way you can also solve this problem as well
THIS IS MY ANSWER . HAPPY TO HELP :):)
apple uses java ?
my mac does not have problem for internet.any application can download/upload.
except xcode's organizer's distribute or application loader blocks whole internet and modem stops working for a temporal time.
it is obvious not a mac problem. but apple's uploading system strategy seems not good.
they gotto fix this.
I've heard of some users having issues if they're running old versions of Java. If you can't update, or if updating doesn't fix it, you can try:
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
(other similar workarounds here.)
It could also be an Internet connectivity issue.
Either way, you can also try uploading your app using Application Loader.
I updated my old Java version (from 21 to 51). Is still freezing my Internet.
I validated my archive with Organizer. Is still freezing my Internet.
I tried to upload an IPA with Application Loader. Is still freezing my Internet.
I deleted all my old archives in Organizer. Is still freezing my Internet.
Finally I connected my Mac to Internet through my iPhone's Internet. In resume I connected my Mac to Internet with another provider. This solved my problem
Sounds like my land ADSL provider have some problem with the AppStore.
It will be to do with your firewall on your mac, it may be blocking java all together. Go to settings, security and privacy and then firewall. Once on there go to fire wall options and then there should be an option to allow java to pass through the firewall.
Hope that helps, did with me :)
None of the above suggestions work for me. Likely the real cause is physical and related how Application Loader is using the internet. I have ADSL2 connection with a Netgear modem/router assigning each device at home a fixed IP address according to the mac address of the network interface of each device. I had noticed that when Application Loader is uploading, my Windows PC could not connect to the internet. However, if in Mac mini I use Safari doing various things like watching video, my Windows PC can access internet.
Even stranger, when Application Loader is uploading, the modem/router could easily lost connection to the internet, as I could see from the LED lights of the modem. The connection is lost randomly at any progress of uploading the 20 MB file.
So I had turned off Windows PCs, iPads, iPhones and Android device at home, so Mac mini is the only device using the Internet, the Application Loading has finally been able to upload the app successfully in one go.
My guess is, my home phone line has some noise, and Application Loader is using the internet aggressively particularly the up link, so stressing out the modem, then causing other devices like my Windows PC lost connection, not even able to resolve host. When Safari is uploading video to App Store, no problem.
So my working solution is to make Mac be the only device using the Internet, given that the internet connection is already in poor condition with noise, near the edge of losing connection.
It's very old issue, but in case any of you is still looking for a solution, I stopped using Xcode to upload my apps to the app store. Instead I'm using Transporter (by Apple) and it seems to fix the freezing

Resources