I was working prior to 4.0 OS with my iPhone and and writing to media/DCIM/100APPLE. I could download these files using DiskAid. This was a perfect dev solution. My provider without asking upgraded my phone to 4.0. Bang, I am no longer able to write anywhere visible. In distribution we will be using the temporary directory, no problem but in dev, I need to see the files are written correctly. I tried UIFileSharingEnabled
This has many problems and I understand it is only recognized in a deployed app, not in build and debug. If I don't delete the app before installing it does not let me write what I want to the document folder found by
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *tempDir = [paths objectAtIndex:0];
If I delete the app from the iphone and run it from xcode again for the first time, I get Error launching remote program: No such file or directory (/private/var/mobile/Applications/34846A80-429F-46CB-AC4B-09A701255839/myapp.app/myapp).
The only way around this, is to take out the filesharing from the info.plist run the debugger and the app runs normally, of course it still will not write to the above tempDir.
All works fine with NSString *tempDir = NSTemporaryDirectory (); but I can not see the file written and I am in the blind.
Has anyone found a solution to working in the dark.