I keep getting this error. I\'m uploading via ftp to a server. It works fine and uploads completely while running in the simulator, but when I provision it on my iPhone, it says
I've tried cleaning targets, resetting device, resetting xcode.
Blind pounding on random targets is never a good debugging technique. At best, you'll fix the problem and not know how. At worst, you'll break something else.
Instead, find out what the problem is. For a “Cocoa error”, you'll want to look in FoundationErrors.h and CoreDataErrors.h (and AppKitErrors.h when not targeting Cocoa Touch). The former file gives the name for Cocoa error 260:
NSFileReadNoSuchFileError = 260, // Read error (no such file)
You're unable to get the attributes of that file because it doesn't exist (on your device).
You may want to edit your question to include the code that creates the path that you store into self.filePath
.