CFURLCreateDataAndPropertiesFromResource failed with error code -15
问题 I'm trying to lead a TIFF image into a CGImageSource using CGImageSourceCreateWithURL. My URL is correct, is %20 encoded, is a path to an existing file, that file is a TIFF. However, the line: NSString *fullPath = [[[fileNames objectAtIndex:pageNum - 1] string] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; NSString* urlStr = [NSString stringWithFormat: @"file:/%@", fullPath]; NSURL * url = [NSURL URLWithString: fullPath]; CGImageSourceRef src = CGImageSourceCreateWithURL