Document folder for iOS 8.1 SDK
For iOS 7.0.3 SDK
I had a document viewer application and I used to place documents underneath ~/Library/Application\ Support/iPhone\ Simulator/7.0.3/Applications/<GUID>/Documents/
which were then available when the application was launched. However, I do not see such a folder iOS 8.1 SDK
, and I suspect it might be because I downloaded Xcode via the web from the developer's site. Perhaps I suspect that this could be the reason that I am not 8.1 / folder in Application Support
for iPhone Simulator
? If so, is there a way to add these folders by defining Simulator GUID
my application to start accessing documents again? Or has the location of the Document folder been moved to a different location?
I followed the instructions in Xcode: the directory file for the Iphone simulator and the iPhone simulator folder are not in app support but it doesn't seem to fix my problem.
source to share
To find your application document folder, you can simply put it in your application: didFinishLaunchingWithOptions: and you will see the path in the xcode console window:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSLog(@"Documents Directory: %@", [paths objectAtIndex:0]);
source to share
Use SimPholder app to find out the current location of the app.
For xcode 6.0>
Download SimPholder 2.0 a
For xcode 5.1 <
Download SimPholders 1.5
source to share
in iOS 8 xcode provide basic simulators. so you can find the document directory folder using the code below. you can write the code inappDidFinishLaunching
NSLog(@"app directory : %@",[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
source to share