Hi, I'm trying to persist a value with a plist in the documents directory. I use the following code to get the document directories path:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
I'm ready to release this app so I am running my app in the distribution configuration. In this mode the string above comes back "Invalid".
When I switch to the debug configuration everything works and the string brings back the path to the Documents directory.
Does anyone know what's going on?