XCode App installation failed (A valid provisioning profile for this executable was not found)

今天用Xcode在真机上调试App,Run以后build等步骤都没问题,安装App到真机时跳出了”App installation failed”的错误信息。
具体的错误原因是”A valid provisioning profile for this executable was not found”
解决方法其实很简单,参考这里,删除本地保存的mobileprovision文件就可以了。

cd ~/Library/MobileDevice/Provisioning Profiles  
rm -f *.mobileprovision

你可能感兴趣的:(XCode App installation failed (A valid provisioning profile for this executable was not found))