<Error>: CGDataConsumer(url_close): write failed: -15.
<Error>: CFURLCreateDataAndPropertiesFromResource: failed with error code -15.
有人知道什么可能触发这个错误及其含义吗?
答案 0 :(得分:6)
我在使用错误定义的网址之前已经看过这个。例如:
NSString *f = [NSTemporaryDirectory() stringByAppendingPathComponent:@"tmp.txt"];
// This is an invalid file url and will fail when you try to save to it.
NSURL *invalidFileURL = [NSURL URLWithString:f];
// This URL is acceptable.
NSURL *validFileURL = [NSURL fileURLWithPath:f isDirectory:NO];