Let's say I have the following code:
guard let URLData = URL(string: "https://www.bing.com") else {
print("Unable to access \(URLString)")
return
}
When I run this on my Apple Watch Series 7 (Connected to stable WiFi), it throws a bunch of stuff in the console, such as Error getting network data status Error Domain=NSPOSIXErrorDomain Code=19 "Operation not supported by device"
and NSURLConnection finished with error - code -1009
.
I know error code -1009 means there was a failure in connection... Why is this happening? My Apple Watch is definitely connected to the internet. Same with my iPhone. Also, I'm now having concerns about URL access on watchOS, due to their "Operation not supported by device"
thing and the fact that stuff like WebKit is already locked from development on watches...
IDK! Help!