The run destination XXX is not valid for Running the scheme 'XXXXXX'

The run destination XXX is not valid for Running the scheme 'XXXXXX' 解决办法.

The run destination XXX is not valid for Running the scheme 'XXXXXX'

当连接真机遇到这个问题时, 在Build Settings中搜索Base 更改下SDK版本,试试可以不,

  • 如果上述办法解决不了你问题,请往下看

下图红色框内的版本是我手机的版本,Xcode也是最新版, 但是依然不能运行。

这时可以把11.4.1 改到一个低的版本, 就运行成功了!
The run destination XXX is not valid for Running the scheme 'XXXXXX'