如何使用 Xcode 7 创建快照?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30839813/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:18:12  来源:igfitidea点击:

how to create a snapshot using Xcode 7?

objective-cxcodeswiftsnapshotxcode7

提问by Dharmesh Kheni

I can create snapshot in Xcode 6 this way as shown in below image:

我可以通过这种方式在 Xcode 6 中创建快照,如下图所示:

Xcode 6

Xcode 6

But in Xcode 7 its not available and you can see that in below Image:

但是在 Xcode 7 中它不可用,您可以在下图中看到:

Xcode 7

Xcode 7

And control-command-Salso doesn't work.

而且control-command-S也不起作用。

Can anybody tell me now how can I create a snapshot using Xcode 7?

现在有人能告诉我如何使用 Xcode 7 创建快照吗?

回答by perlrocks

I opened a bug regarding this. According to Apple, "Snapshots have been removed in Xcode 7. You can export existing snapshots in Xcode 7 but not create or restore them."

我打开了一个关于这个的错误。据 Apple 称,“快照已在 Xcode 7 中删除。您可以在 Xcode 7 中导出现有快照,但不能创建或恢复它们。”

Hopefully they'll restore them in a future release, but for now I recommend using git from the Source Control menu as suggested by Tim.

希望他们会在未来的版本中恢复它们,但现在我建议按照 Tim 的建议使用 Source Control 菜单中的 git。

回答by AlgroDev

there isn't snapshot in xcode 7, to resolve this problem, use xcode 6 and 7, xcode 6 to create and restore snapshot and after you can open your project with xcode 7.

xcode 7 中没有快照,要解决此问题,请使用 xcode 6 和 7,xcode 6 创建和恢复快照,然后您可以使用 xcode 7 打开您的项目。

回答by Peter B. Kramer

For posterity - in the menu at the top select "SourceControl" then "Commit...", add a comment and "Commit X Files" then after you make additional changes and want to see the changes select "SourceControl" and "Commit" and select the file on the left.

对于后代 - 在顶部的菜单中选择“SourceControl”,然后选择“Commit...”,添加注释和“Commit X Files”,然后在进行其他更改并希望查看更改后选择“SourceControl”和“Commit”并选择左侧的文件。

All explained nicely in : http://www.raywenderlich.com/51351/how-to-use-git-source-control-with-xcode-in-ios-7

所有这些都很好地解释了:http: //www.raywenderlich.com/51351/how-to-use-git-source-control-with-xcode-in-ios-7