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

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

他们不在 ~Library/Application Support/Developer/Shared/Xcode/Screenshots频道。

可能是 Xcode 从 Developer移动时他们移动了,但是 Spotlight 也不能告诉我他们在哪里。

49970 次浏览

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.

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

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

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

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

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

For Xamarin developers using remote MAC pairing from windows, the screenshots are located in Pictures > Xamarin > iOS Simulator directory.