USE SIMPHOLDERS
I used this application on Xcode 5 by opening the Documents folder for the current application in the simulator in Finder.
http://simpholders.com/
not ready for Xcode 6 yet (starting with sep 24 2014), but it retains all these problems.
In Xcode 6 / iOS8, the package is now separated from the data. / Application GUID is regenerated between runs in Xcode (not sure why)
DOCUMENTS DIR:/Users/gbxc/Library/Developer/CoreSimulator/Devices/AC79941F-EC56-495E-A077-773EEE882732/data/Containers/Data/Application/C220D351-0BE7-46BA-B35E-D16646C61A3F/Documents mainBundlePath_:/Users/gbxc/Library/Developer/CoreSimulator/Devices/AC79941F-EC56-495E-A077-773EEE882732/data/Containers/Bundle/Application/12200D1D-9B67-408B-BCF7-38206CBE0940/myappname.app/BLANK_BLOG_SCALED.jpg
1. FIND THE DEVICE FOLDER IN THE SIMULATOR
/Users/gbxc/Library/Developer/CoreSimulator/Devices/
open each /device.plist file to find out what GUID this device is in Xcode - I think it's static
3. FIND THE DEVICE you are running on iPad 2 - I think it's static
/Devices/AC79941F-EC56-495E-A077-773EEE882732
4. Find the "Application / Documents" folder
/AC79941F-EC56-495E-A077-773EEE882732/data/Containers/Data/Application/C220D351-0BE7-46BA-B35E-D16646C61A3F/Documents
CAUTION GUID C220D351-0BE7-46BA-B35E-D16646C61A3F is restored every time the application starts in Xcode 6
NSArray *paths_ = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); if(paths_){ _docsDir = [paths_ firstObject]; DebugLog(@"DOCUMENTS DIR:%@",_docsDir); }else{ ErrorLog(@"paths_ is nil - cant get Documents directory"); }
The main BUNDLE path
NSString *mainBundlePath_ = [[NSBundle mainBundle] pathForResource:@"someimageinyourbundle" ofType:@"jpg"]; /AC79941F-EC56-495E-A077-773EEE882732/data/Containers/Bundle/Application/12200D1D-9B67-408B-BCF7-38206CBE0940/clarksonsiq.app/BLANK_BLOG_SCALED.jpg
NEVER TELL THE WAY TO / Documents between launches will change.
I serialized it to plist and couldn't understand why they kept fading
The specified GUID / Documents are constantly changing between runs, but if you have / Documents open in the Finder, the folder remains open.
https://devforums.apple.com/thread/235911?tstart=0 https://devforums.apple.com/thread/238754?tstart=0