Xcode 12.0.1屏幕截图仅捕获iOS模拟器上的主屏幕 [英] Xcode 12.0.1 Screenshot is capturing only Home-screen on iOS simulator

查看:106
本文介绍了Xcode 12.0.1屏幕截图仅捕获iOS模拟器上的主屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试在Xcode V12.0.1上捕获屏幕截图时,应用程序屏幕将变为主屏幕".(IOS的)和主屏幕(而不是应用程序屏幕)上的屏幕截图.

While trying to capture a screenshot on Xcode V12.0.1 - the app screen turns to "Home screen" (of IOS) and a screenshot on the home screen is prodcued instead of the app screen.

一周前运行良好,但我的OS和Xcode上周自动更新为MacOS 10.15.7和Xcode V12.0.1,从那时起,我无法拍摄模拟器的屏幕截图.

It was working fine a week before, but my OS and Xcode were auto updated last week to MacOS 10.15.7 and Xcode V12.0.1 and since then i am unable to take screenshots of the simulator.

推荐答案

我遇到了这个问题,到目前为止,我只能提供一个工作范围-使用命令行截取屏幕截图

I ran into this issue and as of now I can only provide a work arround - Use command line to take the screenshot

  • cd到要将屏幕截图保存到的文件夹.
  • 运行 xcrun simctl io启动的屏幕快照Screenshot.png

这篇关于Xcode 12.0.1屏幕截图仅捕获iOS模拟器上的主屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆