2
<Error>: CGDataConsumer(url_close): write failed: -15.
<Error>: CFURLCreateDataAndPropertiesFromResource: failed with error code -15.
有沒有人知道什麼可以觸發這個錯誤,他們是什麼意思?<Error>:CGDataConsumer(url_close):寫入失敗:-15
<Error>: CGDataConsumer(url_close): write failed: -15.
<Error>: CFURLCreateDataAndPropertiesFromResource: failed with error code -15.
有沒有人知道什麼可以觸發這個錯誤,他們是什麼意思?<Error>:CGDataConsumer(url_close):寫入失敗:-15
我之前在使用錯誤定義的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];