Part of the confusion is the the change was originally noted in the Xcode 15 beta 1 release notes rather than any particular OS.
Fixed: For apps linked on or after iOS 17 and aligned OS versions,
URL
parsing has updated from the obsolete RFC 1738/1808 parsing to the same RFC 3986 parsing asURLComponents
. This unifies the parsing behaviors of theURL
andURLComponents
APIs. Now,URL
automatically percent- or IDNA-encodes invalid characters to help create a valid URL.To check if a
urlString
is strictly valid according to the RFC, use the newURL(string: urlString, encodingInvalidCharacters: false)
initializer. This init leaves all characters as they are and will returnnil
ifurlString
is explicitly invalid. (93368104)
Granted, Apple doesn't have a good alternate place to put changes like this without duplicating it in every OS' release notes (which has happened), but some confusion is likely when it shows up in the Xcode release notes itself.