Xcode编译时出现cannot run using the selected device提示

很多文章说这个管用:

 1) Project->Info->Deployment Target->iOS Deployment Target更改为<=设备的版本号;
 2) Target->Summary->iOS Application Target->Deployment Target更改<=设备的版本号;

但是我的机器上不管用。

下面这个在我的机器上面可行:

Project ---> Build Settings ---> Build Options中设置compiler for c/c++... 为Default compiler (Apple LLVM 5.1)

原文地址:https://www.cnblogs.com/JayK/p/4018652.html