I cannot find the directory for the new simulator data in Xcode-6 Beta for IOS 8
It is not in ~/Library/Application Support/IPhone Simulator/
I cannot find the directory for the new simulator data in Xcode-6 Beta for IOS 8
It is not in ~/Library/Application Support/IPhone Simulator/
To locate the Documents folder of an app in iOS 8 Simulator, you can first write a file in the Documents folder:
say, in
didFinishLaunchingWithOptions
.Then you can open a Terminal and find the folder:
Something like this:
The Device ID can be a bit hard to find (basically, there's one folder with a random-looking name for each simulator you have). To get to the correct folder, I used this terminal command:
Where
myFile.txt
was one of the files in my application. The terminal then printed out the full location—this might be more useful to you then checking each one-by-one, if you have a file (or, can make one) that you can search for.In XCode 6 it's really hard to find out. But I do this in the simple way:
With XCode opened just write this in Debug Area:
po [NSBundle mainBundle]
Or logging:
The result is something like that:
After that you can open Terminal app and go to path with this command:
open yourAppPath...
[Update]
I found an amazing app to do this: http://simpholders.com/
Simulators directory in XCode6 is moved to:
Full Path to Application folder:
Ok, I was frustrated trying to find things manually. Ill keep my notes above to show what does NOT seem to work.
What DOES work, and is a great relief to me, is SimPHolders. Google it. Download it. Run it. Enjoy.
You can add NSLogs in application delegate "didFinishLaunchingWithOptions" method, so they print your paths