XCode连接手机时提示A Valid provisioning profile for this executable was not found

场景

在XCode中连接手机运行调试时提示如下

XCode连接手机时提示A Valid provisioning profile for this executable was not foundXCode连接手机时提示A Valid provisioning profile for this executable was not found

解决

首先保证其他已经正常开启debug模式。

点击project--scheme--EditScheme--确保左边的菜单栏下的Build Configuration 已经全部更改为debug。

XCode连接手机时提示A Valid provisioning profile for this executable was not foundXCode连接手机时提示A Valid provisioning profile for this executable was not found

当首次连接手机时会提示register iphone,注册成功后要是还不可以就拔下数据线再重新连接,不行就多试几次。