iOS Error Code=-1003 “A server with the specified hostname could not be found.”

前端 未结 5 1490
花落未央
花落未央 2021-02-07 01:41

I am trying to load image from URL on the iphone, image is there and I can open it in safari with same link, but not in the app:

Error Domain=NSURLErrorDomain Co         


        
5条回答
  •  一整个雨季
    2021-02-07 01:58

    This happened in my case because one of the paths in our development servers was internal to our firewall/intranet/VPN and my device was not on our internal wi-fi.

    Frustrating and confusing because it was working in the simulator and not on a device.

提交回复
热议问题