无法在Xcode 10中查找屏幕比例和意外的物理屏幕方向 [英] Unable to look up screen scale and Unexpected physical screen orientation in Xcode 10

查看:77
本文介绍了无法在Xcode 10中查找屏幕比例和意外的物理屏幕方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Xcode更新到了版本10,现在我的控制台显示:

I have recently updated Xcode to version 10, and now my console displays:

MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale
MyApp[1618:133310] [AXMediaCommon] Unexpected physical screen orientation
MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale
MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale
MyApp[1618:133310] [AXMediaCommon] Unexpected physical screen orientation

这仅在我在模拟器中运行应用程序时发生.自更新以来,我尚未更改代码,并且应用程序中似乎没有任何损坏.这些日志是什么意思,我该如何解决?

This only happens when I am running the app in the simulator. I have not changed my code since updating, and nothing appears to have broken in the app. What do these logs mean, and how can I resolve them?

推荐答案

这听起来很假,但是将先前从Macbook屏幕渲染的模拟器移到更宽的外部屏幕后,这些警告出现了.

It could sounds dummy, but these warning appeared me after move the simulator previously rendered from the Macbook screen, to a wider external screen.

我解决了它,只是在外部屏幕中重新启动了模拟器.我的2美分.

I solved it just restarting the simulator in the external screen. My 2 cents.

这篇关于无法在Xcode 10中查找屏幕比例和意外的物理屏幕方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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