The run destination iPhone is not valid for running the scheme “xx”

真机运行,一直提示The run destination iOS Device is not valid for running the scheme,但是模拟器就没有问题,更改 Deployment Target 也不行

The run destination iPhone is not valid for running the scheme “xx”

最后发现,这应该是 Xcode 的 bug,要完全退出 Xcode,重新打开项目运行就没有问题了。