Manually recover files from Xcode snapshot

家住魔仙堡 提交于 2019-12-04 21:26:18

Are you able to export the snapshot? Exporting a snapshot is similar to restoring it. The main difference is that exporting a project's snapshot restores it to a folder other than the project's current location.

To export a snapshot, open the Organizer and click the Projects button at the top of the Organizer. Select your project from the left side of the Organizer. Select a snapshot. Click the Export Snapshot button to export the snapshot.

Xcode 4 uses the .xcsnapshots file to store snapshots for a project. When you select a project from the Organizer, the Organizer shows the location of that project's snapshots. Next to the location is a small button with an arrow. Click the button to show the .xcsnapshots file in the Finder. Select the .xcsnapshots file in the Finder, right-click, and choose Show Package Contents to show the contents of the .xcsnapshots file. From what I can see the .xcsnapshots file is a git repository. I didn't see any way to access an individual file from the .xcsnapshots file using the Finder, but you may be able to locate and recover a file using git from the command line.

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