Unable to look up screen scale and Unexpected physical screen orientation in Xcode 10

后端 未结 7 1171
梦毁少年i
梦毁少年i 2020-12-23 09:15

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         


        
7条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 10:07

    This won't answer your original question, but it might relieve your eyes. A caveat to this answer however is that it disables all NSLog statements.

    Do the following to suppress - all NSLog statements including - the warning: Unable to look up screen scale:

    In Xcode, go to Product - Scheme - Edit Scheme, select 'Run' on the left side ...

    ... and add OS_ACTIVITY_MODE with value "disable" in the Environment variables section.

提交回复
热议问题