Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

couldn't find db file in users directory in IPhone simulator

In my mac, i am using XCode 4.2 with iOS 5 sdk and Mac OS X 10.7.2 version.

I am developing the application which based on Sqlite database so i can insert, select and delete data from that database.

when i running my application in simulator, i can see the database path in NSLog but i couldn't access the database through into that directory.

DB path which i got in log is ==> /Users/username/Library/Application Support/iPhone Simulator/5.0/Applications/3623C505-F568-4B18-986E-F2C7D71D5079/Documents/SqlUser.sqlite

I couldn't see Library directory in /username folder. So i can't access the db file.

but in Mac OS X 10.6.8 version with Xcode 3.2.5 iOS 4.2, i can see the Library directory in /username folder. Why this is not possible in 10.7.2?

Please help in this regards!!!

Thanks!!!

like image 214
user2136 Avatar asked Jan 31 '12 05:01

user2136


People also ask

Where is the Documents folder in iPhone simulator?

# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.

How do I connect simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.


1 Answers

Open your console and write:

chflags nohidden ~/Library/

hit enter and browse...

ta da!

like image 136
whtlnv Avatar answered Sep 26 '22 00:09

whtlnv