ios 找不到具有指定主机名的服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11279491/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
A server with the specified hostname could not be found
提问by Zeeshan
When I try to submit my app on the App Store through Xcode I got this?error.
当我尝试通过 Xcode 在 App Store 上提交我的应用程序时,我得到了这个?错误。
A server with the specified hostname could not be found.
找不到具有指定主机名的服务器。
Is this temporary error at Apple or something to do with?Xcode?
这是Apple的临时错误还是与Xcode有关?
Is anyone else facing this problem?
还有其他人面临这个问题吗?
采纳答案by Shane Rayner
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.
有时是第二次,有时是 20 分钟后。
回答by Kjuly
It might be DNS Pollutionissue, at least for my case (in China).
这可能是DNS 污染问题,至少对我而言(在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.
如果您也在china或某些有 DNS 污染问题的地方,您也可以通过修改8.8.8.8
Mac的 DNS(例如)来解决此问题。
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:
我的 iPad 应用程序内部出现此错误,这是随机发生的,太无聊了。继续尝试对我来说不是一个好的解决方案,尽管它可能以某种方式起作用。最后,我刚刚更改了我的 Wi-Fi DNS,现在没有更多错误。脚步:
- Your device, Settings/Wi-Fi
- Choose connected Wi-Fi pot
- Press DHCP/DNS
- Set to
8.8.8.8
- 您的设备、设置/Wi-Fi
- 选择已连接的 Wi-Fi 锅
- 按 DHCP/DNS
- 设置
8.8.8.8
回答by theofpa
That fixed the problem for me, when trying to upgrade to El Capitan:
当我尝试升级到 El Capitan 时,这为我解决了这个问题:
sudo softwareupdate --clear-catalog
回答by Szu
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.
我收到了A server with the specified hostname could not be found.
。我发现我的 MacOS 应用程序启用了应用程序沙盒。避免问题的最简单方法是关闭 Sandbox。
回答by Alex Chase
In Xcode, select Target -> Capabilities, and check "Outgoing Connections (Client)" to enable App Sandbox.
在 Xcode 中,选择 Target -> Capabilities,然后选中“Outgoing Connections (Client)”以启用 App Sandbox。
回答by Alex Stone
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 VPNfor your apps deployed to device to see corporate servers.
我遇到了同样的问题,原来是 VPN 相关的。如果您正在针对公司网络的设备上进行测试,很可能您的 Mac 设置了正确的 VPN,但您的手机没有。将手机连接到公司 VPN,以便部署到设备的应用程序查看公司服务器。
回答by Akhil
回答by Fede Henze
I got this message when the device has mobile data turned on and no wifi connection, but the internet is not properly connected.
当设备已打开移动数据且没有 wifi 连接但互联网未正确连接时,我收到此消息。
Try to connect to a wifi network with an internet connection or turning off the mobile data.
尝试通过互联网连接或关闭移动数据连接到 wifi 网络。
回答by Grigo
I restarted my MacBook Pro and then I build again, the error was fixed.
我重新启动了 MacBook Pro,然后再次构建,错误已修复。
回答by Moin Uddin
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.
- 将 DNS 更改为 8.8.8.8 和 4.2.2.2
- 打开 net.properties 并将“# https.proxyPort=443”更改为“https.proxyPort=80”。您可以在这里找到 net.properties /Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib/net.properties
- 打开 Application Loader->Preferences->Advanced 并取消选中 Signiant 和 Aspera。确保选中 DAV。
Thants all. Now you can submit app using both application loader and Xcode.
全部。现在您可以使用应用程序加载器和 Xcode 提交应用程序。