Xcode Error on Simulator: MGIsDeviceOneOfType is not supported on this platform

后端 未结 18 1971
执笔经年
执笔经年 2020-12-02 10:55

I have a very simple application with a single view, containing several UILabels. Upon running in Simulator, the Xcode console returns the error:

libM

相关标签:
18条回答
  • I got this error by calling .sync on the main queue which caused a deadlock (DispatchQueue.main.sync {}). I meant to call .async.

    0 讨论(0)
  • 2020-12-02 11:39

    I went to XCode -> Preferences -> Components Ticked all the simulators and the check box to install updates automatically, and then "check and Install now" and went away for a few hours while they all updated.

    Now the problem is gone - so in fact, it's as mentioned. New XCode with Old - non-updated simulators.

    0 讨论(0)
  • 2020-12-02 11:39

    What worked for me was to change within general > Deployment Info > Main Interface to CDVLaunchScreen and do the same within general > App Icons and Launch Images > Launch Screen File to CDVLaunchScreen as well.

    I come from Ionic, so this might not be a problem for those who develop in Swift / Objective-C.

    0 讨论(0)
  • 2020-12-02 11:40

    Am seeing this problem. Using Xcode 10.1. Created a brand new project - doesn't do anything except show a white screen. Discovered it was showing up on simulator for older devices. For example, iPad Pro (12.9 inch) and iPad Pro (12.9 inch) (2nd generation) show the problem, but problem is gone for iPad Pro (12.9 inch) (3rd generation). Does not show up for iPhone XR simulator.

    Basically seems annoying.

    0 讨论(0)
  • 2020-12-02 11:41

    I was facing same problem but I've successfully dropped it with below things:

    1. Shutdown simulator,
    2. Shutdown Xcode,
    3. Re-open Xcode and simulator

    I hope it will help.

    0 讨论(0)
  • 2020-12-02 11:43

    I just installed Xcode 10 Beta and had the same problem. Ran Xcode 9.4.1 and the problem went away.

    0 讨论(0)
提交回复
热议问题