Environment: OSX 10.8.3 XCode4.6 (4h127)
When developing iphone and ipad apps, it's often necessary to use XML files and SQLite databases.
When debugging, we need to look at the contents of the XML and the data of the database. But these things are inside the simulator. We need to find where they are stored and use the appropriate tools to open the view.
The general location is as follows:
User (current user)/library (Chinese: Resource library)/application Support/iphone simulator/
After opening, you will find a 5.0,5.1,6.0,6.1, which corresponds to the currently selected emulator version of Xcode.
After entering the corresponding version, there will be related folders such as application,media,library of the current emulator. The folder named in the application GUID corresponds to each app in the emulator, and after that, there will be folders like Documents,library, and the files we have copied are inside.
Sometimes, however, these libraries and application support are not found because the system is hidden. We can perform the following command under the terminal to show it.
Show Commands:
Help
1 |
Chflags Nohidden ~/library |
Hide command:
Help
1 |
Chflags Hidden ~/library |
IOS emulator files and SQLite storage locations