Search code examples
iosswiftios-keyboard-extension

Url image is displaying in simulator but not in iPhone


I am creating a keyboard Extension app. I want to display images in my custom Keyboard, but it is returning me below error

Code=-1003 "A server with the specified hostname could not be found."

but when I runs it in simulator it shows me images, I've tried AlamofireImage, SdWebImage everything but getting same error message. App is displaying images, but I am facing this issue in keyboard extension.


Solution

  • I've Resolved my issue, I just used the web View in the UIImage area and pass the image url over there. That worked for me. Note: if you face the same issue in Keyboard extension then use it, otherwise it is not good approach to use webView to launch image.