NSFileManager fileExistsAtPath returning NO always in device not in simulator
===

I have program an app following the standford cours on ios - Core Data Lesson. My app works perfectly on the simulator but on the device is causing problems, [NSFileManager defaultManager] fileExistsAtPath: is always returning NO, causing the app to enter SAveFORcreating always, after a while it becomes slow and doesnt load the data from core data anymore, this doesnt happen in the simulator. So please some help!

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    if (!self.recipiesDatabase) {  
        NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
        self.fileurl = [url URLByAppendingPathComponent:@"RecipiesDatabase"];
        NSLog(@"URL IN FILE %@", url);
        self.recipiesDatabase = [[UIManagedDocument alloc] initWithFileURL:self.fileurl]; // setter will create this for us on disk
    }
}

- (void)useDocument
{
    
    
    if (![[NSFileManager defaultManager] fileExistsAtPath:[self.recipiesDatabase.fileURL path] ]) {
        // does not exist on disk, so create it
        [self.recipiesDatabase saveToURL:self.recipiesDatabase.fileURL forSaveOperation:UIDocumentSaveForCreating completionHandler:^(BOOL success) {
            NSLog(@"No existe");
            [self setupFetchedResultsController];
            [self fetchFlickrDataIntoDocument:self.recipiesDatabase];
            
        }];
    } else if (self.recipiesDatabase.documentState == UIDocumentStateClosed) {
        // exists on disk, but we need to open it
        [self.recipiesDatabase openWithCompletionHandler:^(BOOL success) {
            NSLog(@"OPen");
            [self setupFetchedResultsController];
            //[self fetchFlickrDataIntoDocument:self.recipiesDatabase];
            
        }];
    } else if (self.recipiesDatabase.documentState == UIDocumentStateNormal) {
        // already open and ready to use
        NSLog(@"Normal");
        [self setupFetchedResultsController];
        
    }
}

