Xcode 6 Keeps Renaming My App's Directory in iOS8 Simulator After Each Run

Xcode 6 keeps renaming my app's directory in iOS8 simulator after each run.

Turns out Xcode 6 does in fact change the app's UUID every run, and I'm in the wrong for storing absolute paths.

Application folder name changes every time i run in simulator

Don't save the full path, but just the directory and file name to the images.
Since this behavior is new in iOS 8 and can also happen on a real device.

Xcode 6 / iOS 8 Simulator Data and Bundle folder script

This has been bugging me as well. I've not been able to solve it 100% but I created a quick and dirty app to help a bit. I can always find the device directory, but I've not yet found a way to track down the bundle / sandbox directories reliably. Source: https://github.com/somegeekintn/SimDirs

Edit: Went ahead and started scanning mobile_installation.log to find additional locations. Seems to find everything now.

App Home Folder Constantly Change IOS

Don't use absolue paths... Use something like this

NSArray *paths =  NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

NSString *localFilePath = [documentsDirectory stringByAppendingPathComponent:[[yourArray objectAtIndex:indexPath.section]lastPathComponent]];


Related Topics



Leave a reply



Submit