Copy a file from iPhone sandbox to Desktop?

爷,独闯天下 提交于 2019-12-04 16:45:13

You can use the Organizer.

Connect your iPhone and choose Window->Organizer in Xcode.

Lots of options there, including what you're looking for. Specifically, click your iPhone under Devices, then in the Summary section find your app under Applications. Click the triangle next to your app which should reveal your Application Data with an arrow button to download it to your Mac.

Good luck!

Oh it looks like I figured it out myself.

If you create the data in the iPhone Simulator, you can access all files here:

~/Library/Application Support/iPhone Simulator/User/Applications/*randomstring*/Documents

The random string is quite long and so just use trial and error to see which directory contains your application files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!