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

后端 未结 18 2070
执笔经年
执笔经年 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条回答
  •  鱼传尺愫
    2020-12-02 11:34

    I got this error, when trying to read a json file which is inside my project and it returned nil, due to that i got this error.

    I got nil because of some spelling mistake in the font name, that json file was holding the font names, after copy pasting the font name i got data and the error fixed.

    I tried allmost all of the solutions given above, nothing worked, So debug with patience, you will get to know which is causing this error and in some bad time xcode will play in our life :)

提交回复
热议问题