I wanted to ask you what you think about my problem.
My internet connection works just fine while I connect with VPN but it doesnt work, or works extremely slow, while on ethernet. It worked just fine until today a couple hours ago. First, I thought it was a problem with my provider so I called them twice and they said that everything looks okay from us, and then I just spontaneously opened VPN (psiphon3) and tried connecting to the internet and it magically works!
I hope everything is understandable of what my problem is!
Thank you.
If you are on windows, you should check if proxy is disabled.
So go in Internet Options (in search bar or run inetcpl.cpl) → Connections tab → LAN Settings button and disable Proxy server.
Source: https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/cant-open-any-webpage-after-using-psiphon/435d04c4-ca99-4dbd-9897-fa2c1df6775f
I see this error in my logs and I don't know what it means:
PAC Fetch failed with error [NSURLErrorDomain:-1003]
2017-06-08 17:07:56.157874+0200 xxxxxx[27059:7093559] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
At the same time I have a problem with a collectionView in my app. Don't know if it's related to the error or not:
Sometimes, and only if the app is used in one remote office of our Company, both with the simulator and a real device, a collectionView that simply receives an images array and show them on the screen, just stops working.
It's not like it didn't just load the images, it seems like the entire collectionView doesn't show up.
I'm testing the same app with simulators and devices in another office (another city) and it NEVER happened to me. Other that that "PAC" error, I only see some auto layout constraint problems, but I see the same errors in my logs and it still works perfectly.
The persons that are testing the app on the remote location say that they have to remove and reinstall the app to make it work again.
Any clue?
Had a similar problem fixed it by this method. Hope this helps.
The simulator uses your computers network connection, so I recommend checking the System Preferences > Network > Advanced > Proxies > Automatic Proxy Configuration : You must disable Auto Proxy Discovery.
Ive been testing connectivity loss in an app of mine during a queue of connections and Ive noticed I am able to get my app into a state where it incorrectly recognizes connectivity. Either saying there is a connection when there isn't or that there is not a connection when there is.
Ive traced the issue down to the SCNetworkReachabilityFlags being incorrect at the time I am checking for connectivity. And these flags remain until the connection state changes. So in effect theres no way to get the app out of the incorrect state short of restarting it, or a connection notification firing properly
I am using apple's reachability.m found here https://developer.apple.com/library/ios/samplecode/Reachability/Listings/Reachability_Reachability_m.html#//apple_ref/doc/uid/DTS40007324-Reachability_Reachability_m-DontLinkElementID_8
and the issue is in the 'networkStatusForFlags' method. Basically the flag being passed in is incorrect. My machine the simulator runs on will have a connection with WIFI, but the flag being returned is still triggering on kSCNetworkReachabilityFlagsReachable.
is there any way to solve this issue? I feel like flags being incorrect is a core apple problem with SCNetworkReachabilityFlags, but i feel like if that was the case this would be more of a widespread issue.
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.
I have an app which connects to my server to fetch scores, register users etc - the usual stuff.
If I run it on the simulator, it works fine.
If I run it on the device using xcode it works fine, and continues to work fine even once I disconnect the device from xcode and use the app directly from the phones desktop.
However when I build an .ipa file and use that, the app does not connect to my server - it just timeouts.
Does anyone have an idea about what could be causing a difference between how it works on the phone when it was put there directly via an xcode build + run, and when it is dropped on as an .ipa using organizer/iTunes?
As far as I am concerned they should be exactly the same, so I have no idea about where to even start looking.
I am building with the dev target as iOS3.2, using xcode4.2 and iOS sdk5.0. Have tried it out on a 3GS and iPod Touch 4th gen both with the same result.
If any more info is needed then I can give that, but fundamentally everything works, so I suspect that maybe there is a permissions error or a file I need to include that I'm not aware of. This project was originally designed by someone else and they are no longer around, other projects I have made connected to my server without any issues so I'm really hoping someone can help.
See my last comment above, the error was simply down to release builds attempting to look for an incorrect server address.