I am facing some strange problem in my iOS app. When my app is open and the user presses the sleep/wake button, app calls
applicationWillResignActive
applicationDidEnterBackground
When user right swipe to unlock the screen , app calls
applicationWillEnterForeground
applicationDidBecomeActive
After that, it prints the following error in console:
PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x1cdfbc00 {NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x1cddca10 "A server with the specified hostname could not be found."}
I know this error is stating that the specified host name was not found. But which host name? Is it https://gsp10-ssl.apple.com/use or the hostname which I am using for web services?
How can I debug this error, and identify its origin?