调试程序时,弹出Xcode cannot run using the selected device异常提示,解决方法

调试程序时,弹出Xcode cannot run using the selected device错误提示,解决办法

解决办法如下:
1) Project->Info->Deployment Target->iOS Deployment Target更改为<=设备的版本号;
2) Target->Summary->iOS Application Target->Deployment Target更改<=设备的版本号;

 

然后就能选择模拟器了