chrisben / imgcache.js

JS library based on the File API to cache images for offline recovery (target: cordova/phonegap & chrome)
Other
826 stars 216 forks source link

iOS FileTransferError #133

Closed christianseel closed 9 years ago

christianseel commented 9 years ago

I'm getting the following FileTransferError in my XCode log when I try to run my app on an iOS (version 9) device. It says that I don't have the permissions to create the file \U201eimgcache\U201c in the folder \U201eMonarchVailPrime13A4254v.N61DeveloperOS\U201c.

To me that folder name looks wired - is that correct? Did I miss any configuration?

FileTransferError {
    body = "Could not create path to save downloaded file: Sie haben nicht die Zugriffsrechte, um die Datei \U201eimgcache\U201c im Ordner \U201eMonarchVailPrime13A4254v.N61DeveloperOS\U201c zu sichern.";
    code = 1;
    "http_status" = 200;
    source = "https://mydomain.com/images/events/./2015-03-07-wzh.jpg";
    target = "cdvfile://localhost/root/imgcache/b1b9b1c9eb7756cefd367e523936c4a24ce35058.jpg";
}

Sys Info:

Cordova CLI: 5.1.1
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
ios-deploy version: Not installed
ios-sim version: 4.1.1 
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b
xavierh81 commented 9 years ago

I have the exact same error :

2015-08-04 16:41:05.609 SnapData-Ionic[1549:7813] File Transfer Error: Could not create path to save downloaded file: The operation couldn’t be completed. (Cocoa error 513.)
2015-08-04 16:41:06.366 SnapData-Ionic[1549:7813] FileTransferError {
    body = "Could not create path to save downloaded file: The operation couldn\U2019t be completed. (Cocoa error 513.)";
    code = 1;
    "http_status" = 200;
    source = "https://s3.amazonaws.com/snapdata/92_55c0cda5e0985_1438698917.jpeg";
    target = "cdvfile://localhost/root/imgcache/de7b0a8f400bb2f2535e17a040d7efaece51677f.jpeg";
}

Have you an idea?

christianseel commented 9 years ago

@Xavierh95 you definetly have a different error message than I have…

Anybody with a tip how to solve this? I still didn't find a solution :(

christianseel commented 9 years ago

Using the latest 1.0-rc1 imgcache.js version from the master branch solved my issues! (https://github.com/chrisben/imgcache.js/blob/master/js/imgcache.js) I used 0.7.5 before.