Files cannot be read after updating the application to the latest version

I’ve been working on the popular Enterprise app for iPad for about a year. During this time, we released 5 prefabricated assemblies and never experienced any problems. Every time our users install a new assembly over the old version, and our master data migrations always worked fine. So far we have not added a video to the application.

We saved the “media” in the data type with external data management. This worked fine until we started allowing the user to create large videos. So, we found that Core Data transitions dump files larger than ~ 5 MB. At this point, we rolled out our own file management scheme. It turned out perfectly normal, we wrote our own manual migration of files from Core Data and into our own scheme. It was released without a problem.

Then, when it came time to deploy our NEXT feature set, suddenly a problem arose. When creating from Xcode, there was never any problem ... But after redeploying using Enterprise Deployment, any of the files that were written to the file system in the previous build were suddenly not read. If the device is connected to Xcode, the files will be clearly visible in the organizer. However, NSFileManager / NSFileHandle / NSData cannot find the files. They always report that they experience:

error: {
    NSFilePath = "/var/mobile/Applications/3CFB07B3-D17F-45D7-A233-4E56930D794C/Documents/ep_binary_data/9465C282-7ED2-428E-B7D3-545BCFE4DFC5";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}

As I said, I can verify that the file is USING A REAL EXIST along the way using Xcode Organizer. Any help would be greatly appreciated. I've been banging my head off the table all day trying to figure it out.

The code used for reading looks like this:

NSError *err = nil;
NSData *data = [[NSData alloc] initWithContentsOfFile:self.thumbnail_url 
                                              options:NSDataReadingMappedIfSafe 
                                                error:&err];
if (err != nil) logger(@"error: %@",[err userInfo]);

And write:

NSError *error = nil;
[thumbnail_ep_managed writeToFile:filePath options:NSDataWritingAtomic error:&error];
if(error != nil)
{
    NSLog(@"error writing file to path: %@\nerror: %@",filePath,[[error userInfo]description]);
}

I'm at a dead end

+1
1

Goons SomethingAwful. , , . iOS. , .

( , ), . , , . , , .

, , .

, :

/var/mobile/Applications/3CFB07B3-D17F-45D7-A233-4E56930D794C/Documents/ep_binary_data/9465C282-7ED2-428E-B7D3-545BCFE4DFC5

:

3CFB07B3-D17F-45D7-A233-4E56930D794C

:

ep_binary_data/9465C282-7ED2-428E-B7D3-545BCFE4DFC5

:

/var/mobile/Applications/3CFB07B3-D17F-45D7-A233-4E56930D794C/Documents/

.

Voila, .:)

0