Reputation: 501
I am writing an app that works on documents. On the real iPhone I can add documents on the Documents folder of the App using iTunes. But for testing I need to load some files in the Documents folder of my app in the simulator. How can I do that?
Upvotes: 3
Views: 3213
Reputation: 501
Duh. Found out all by myself. It's well hidden. Run you app in the simulator at least once. THen Put them in the following folder (assuming you are using 5.1 iOS target in this example):
/Users/your_user_name/Library/Application Support/iPhone Simulator/5.1/Applications/some_alphanum_code_representing_your_app/Documents
A workaround I used before finding this is to add the documents files to the XCode projects, which would copy them to the main bundle. Then I copy them programmatically from the main bundle path to the /Document path.
Upvotes: 3