We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 237af2d02e69d4345cdef900372d615a
Issue Description:
my program compiled and worked with Swift 4, but with Swift 5 it doesn't compile, it fails at
StickerDownloader.swift:24:23: error: cannot find 'URLRequest' in scope var request = URLRequest(url: url!) ^~~~~~~~~~
but I didn't find anywhere than URLRequest were deprecated in Swift 5, so what's happen here? I have Swift 5.3 on Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
On Linux URLRequest is now in FoundationNetworking, which was split out from Foundation
URLRequest
FoundationNetworking,
Foundation
Adding:
#if canImport(FoundationNetworking) import FoundationNetworking #endif
Should fix it
No branches or pull requests
Additional Detail from JIRA
md5: 237af2d02e69d4345cdef900372d615a
Issue Description:
my program compiled and worked with Swift 4, but with Swift 5 it doesn't compile, it fails at
StickerDownloader.swift:24:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url!)
^~~~~~~~~~
but I didn't find anywhere than URLRequest were deprecated in Swift 5, so what's happen here?
I have Swift 5.3 on Ubuntu 20.04
The text was updated successfully, but these errors were encountered: