Good morning, in my app I would like to download some data from a url. I am using the following code, passing the first "url" as a string:
guard let url = URL(string: url) else {
print("Invalid URL")
return
}
When using it in simulator, all works fine; on the contrary, in real device (iPhone 7, 14.5.1) within the app the same url is considered invalid. Pasting it in Safari, the url is correctly recognized. Any suggestion would be really appreciated, thank you