3 Replies
      Latest reply on Jan 14, 2020 1:56 AM by kalgik
      kalgik Level 1 Level 1 (0 points)

        Dear all,

         

        My app writes some files to its /Documents folder.

        I am using the following code:

         

        NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding];
        
            NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        
            if (0 < [paths count])
            {
                NSString *documentsDirPath = [paths objectAtIndex:0];
                NSString *filePath = [documentsDirPath stringByAppendingPathComponent:fileName];
                NSFileManager *fileManager = [NSFileManager defaultManager];
        
                 if ([fileManager fileExistsAtPath:filePath])
                {
                 //FILE EXISTS
        .......}
        else
        {
        //FILE DOES NOT EXIST; CREATE IT
        }

         

        The file is created and stored successfully.

        However, the apps' files can be only accessed from the Xcode through "Window"->"Device and Simulators"->"Download Container".

         

        Is it possible to access these file without the assistance of Xcode IDE? For example, the iOS "Files" application does not show them.I tried many free third party applications from Apple Store but without success.

         

        Regards,

        Kostas