iPhone 12 mini screen parameters are unexpected

Ios

Ios Problem Overview


Per the tech specs page, the screen is 2340 x 1080 pixels, but in the simulator (12.2 betas 3) it is 2436 x 1125.

screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)

Ios Solutions


Solution 1 - Ios

I am sure Apple will fix it soon, but for the moment for workaround you can disable the logs

Go and add to:
Project > Edit Scheme > Run > Arguments > Environment Variables

Name: OS_ACTIVITY_MODE
Value: disable

This is not a solution it is only a very DANGEROUS workaround
Dangerous like when it is active it hides all NSLogs from a real device and etc.

Enabling this option will allow you to read your own logs more clearly however you can miss other IMPORTANT ERROR MESSAGES since they might not appear
SO USE IT CAREFULLY

Solution 2 - Ios

Upgrade to Xcode 13, that seems to fix the issue...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionhenvylukView Question on Stackoverflow
Solution 1 - IosozmpaiView Answer on Stackoverflow
Solution 2 - IosJames LeitchView Answer on Stackoverflow