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

时间:2024-01-11 17:20:32

OSX:10.14

XCode:10.1

iPhone:iPhone 4S IOS9.3.5

我不得不骂那些SB们,不懂就别TMD乱写文章,误导别人!!我今天看了很多关于这个错误的中文文章,结果都没能解决!!!最后看了一篇英文文章,顺利解决了,解决方法和所有中文文章都不一样,极其简单!!

我发生这个错误,在顺利编译项目后,想在iPhone上运行通过编译的APP,结果发生错误了,错误信息就是标题!

错误信息标题:App installation failed

具体错误信息:A valid provisioning profile for this executable was not found

错误信息截图:

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

 解决办法:

在XCode的菜单中,选择"File" -> "Project Settings ",随后选择"Legacy Build System",我是选择下面的“Per-User Project Settings” -> "Build System",把里面的选项换成了"Legacy Build System",随后顺利编译、安装到我的iPhone 4S中,你可以试一试其它选项换成"Legacy Build System"试一试!

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

参考:

https://*.com/questions/52424462/xcode-10-a-valid-provisioning-profile-for-this-executable-was-not-found