-4

I have a file path in a string. That works no problem. But as I'm going through the debugger, I notice that my url has "unable to read data" as the value. I've tried it several different ways. But the approach I'm using right now is:

let url = NSURL(string: myString)

I've been all over this site already and I've found no variation of the approach that seems to help.

I'm using Xcode 7.3 and I think Swift is version 2.2 or something like that. I read on one thread that somebody started having this same issue once they upgraded to the current Xcode version I am using.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Mkz
  • 1
  • 2
  • 6

1 Answers1

-3

If you have Xcode 7.2 and above with swift 2.2 then Replace with

let url : NSURL = NSURL(string: "")!
Hasya
  • 9,792
  • 4
  • 31
  • 46