控制台输出错误信息如下:
libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
[AXMediaCommon] Unable to look up screen scale.
[AXMediaCommon] Unexpected physical screen orientation.
解决办法:
1.Product ->Scheme -> Edit Scheme,
2.选择左侧的’Run’,
3.Environment variables 中添加 Name: OS_ACTIVITY_MODE Value:disable