<Error>: CGDataConsumer(url_close): write failed: -15.
<Error>: CFURLCreateDataAndPropertiesFromResource: failed with error code -15.
Run Code Online (Sandbox Code Playgroud)
有谁知道什么可能触发这个错误及其含义?
我之前在使用错误定义的URL时看到了这一点.例如:
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];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
725 次 |
| 最近记录: |