You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`urlComponents.url(relativeTo: baseUrl)` uses `urlComponents.string` which evaluates to an empty string (on both Linux and Darwin) and passes it to `URL(string:relativeTo)` which is expected to return nil if `string` is empty.
So, the `URLComponents.url(relativeTo)` implementation is a composition of `urlComponents.string` and `URL(string:relativeTo)` both of which are behaving as expected. May be it needs an alternate implementation?
Additional Detail from JIRA
md5: 22fd63926de4684cc07b905a8d223d78
Issue Description:
This code:
generates a valid `URL` on Darwin, but generates `nil` on Linux.
I am using Xcode 9.2 beta 9C34b, Swift 4.0.3
The text was updated successfully, but these errors were encountered: