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

前端 未结 5 2048
故里飘歌
故里飘歌 2021-02-07 01:45

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 02:08

    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.

提交回复
热议问题