I have an NSURL inside a NSDictionary, which looks like this:
assets-library://asset/asset.JPG?id=1000000001&ext=JPG
This NSURL is from UIImagePickerControllerReferenceURL. Without this object, the NSDictionary saves using this code fine:
BOOL success = [dictionary writeToFile:vaultPath atomically:YES];
But when I add the object to the NSDictionary, the writeToFile line returns NO.
Is there a problem with writeToFile and NSURLs, or is it because of this particular URL?
EDIT: Upon further examination, if i save this NSURL as an NSString instead, with the same data, it still fails.