Open
Description
Previous ID | SR-2728 |
Radar | None |
Original Reporter | fblondiau (JIRA User) |
Type | Bug |
Attachment: Download
Additional Detail from JIRA
Votes | 5 |
Component/s | Foundation |
Labels | Bug, 3.0Regression |
Assignee | None |
Priority | Medium |
md5: 30730ac083db546182191b11523e86d5
Issue Description:
In Swift 3.0 (i.e. Xcode 8.0 or Xcode 8.1 beta 1), a call to fileReferenceURL does NOT give a file reference URL anymore... this code
import Foundation
let string = "file:///Users/admin"
if let url = NSURL(string: string) {
if let ref = url.fileReferenceURL() {
print ("ref = \(ref)")
}
}
prints
{{ ref = file:///Users/admin/}}
while it should have been printing
{{ ref = file:///.file/id=6571367.437879/}}
as it did, correctly, in Swift 2.2 (and before) in Xcode 7.3.1 for example.