CFURLCopyResourcePropertyForKey failed because passed URL no scheme
For me this problem was fixed by adding
file://
right before the file path address like this:
var filePath = "file://\(fileURLpath)"
Or maybe you can use NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("mypictostore", ofType: "png")!)
instead of using NSURL(string: NSBundle.mainBundle().pathForResource("mypictostore", ofType: "png")!)