xcode iOS 模拟器在哪里保存屏幕截图?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9487157/
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-09 04:16:48  来源:igfitidea点击:

Where does the iOS Simulator save screen shots?

xcodeios-simulator

提问by Snips

I can't find iOS simulator screenshots (supposedly created using cmd+S) since updating to Xcode 4.3 (running on 10.7.3 Lion).

自从更新到 Xcode 4.3(在 10.7.3 Lion 上运行)以来,我找不到 iOS 模拟器屏幕截图(据说是使用cmd+创建的S)。

They aren't in ~Library/Application Support/Developer/Shared/Xcode/Screenshots.

他们不在~Library/Application Support/Developer/Shared/Xcode/Screenshots.

Presumably they moved when Xcode moved from Developer, but Spotlight can't tell me where they are either.

据推测,当 Xcode 从 移动时Developer,它们也移动了,但 Spotlight 也无法告诉我它们在哪里。

回答by rob mayoff

iOS Simulator screen shots are saved to your desktop (~/Desktop). The file names are of the form iOS Simulator Screen shot Feb 28, 2012 12.16.23 PM.png.

iOS 模拟器屏幕截图将保存到您的桌面 ( ~/Desktop)。文件名的格式为iOS Simulator Screen shot Feb 28, 2012 12.16.23 PM.png.

You can also choose Edit > Copy Screen (default shortcut: ??C) to copy the screen shot directly to your clipboard.

您还可以选择“编辑”>“复制屏幕”(默认快捷方式:??C)将屏幕截图直接复制到剪贴板。

回答by Saad Ur Rehman

Press Command+S. The screen shot will be saved on your desktop.

按 Command+S。屏幕截图将保存在您的桌面上。

回答by Pelle Stenild Coltau

On iOS 9.3, the screen shots are called Simulator Screen Shot <timestamp>.pngand are still located in ~/Desktop.

在 iOS 9.3 上,屏幕截图被调用Simulator Screen Shot <timestamp>.png并且仍然位于~/Desktop.

回答by Edess Elder

For newcomers, let's just use Xcode "Debug" option in the Menu:

对于新手,让我们在菜单中使用 Xcode 的“调试”选项:

Debug -> View Debugging -> Take screenshot of yourPhoneName

调试 -> 查看调试 -> 截取你的手机名称

(see image below)

(见下图)

The screenshots are saved on the Desktop. I tried only for phone connected to my computer, but it should work also on simulators.

屏幕截图保存在桌面上。我只尝试将手机连接到我的电脑,但它也应该在模拟器上工作。

enter image description here

在此处输入图片说明

回答by Filipe Piletti Plucenio

Using Visual Studio with Xamarin The screenshots are saved in

在 Xamarin 中使用 Visual Studio 屏幕截图保存在

C:\Users\ {username}\Pictures\Xamarin\iOS Simulator

C:\Users\ {用户名}\Pictures\Xamarin\iOS 模拟器