In Xcode 6 Beta 5, when I attempt to run my app after building, I receive an error dialog that says:
App installation failed
Try editing the scheme of app. Set Run and Archive to debug not release. I was able to solve by this process.
Restarted my iphone it worked for me.
My solution which worked for me was to remove a symbolic link file referenced from a an directory entry an in my Build Phases->Copy Bundle Resources section. I had inadvertently placed the symbolic link there.
I solved it by uninstalling(removing) the application from device manually and Run xcode application again. It will work.
Deleting the derived data folder worked for me.
I got this error when using Xcode 9 beta, the problem was that I was trying to run an app on an iPhone 7 targeting armv7 instead of arm64.
This issue was not easy to track because I was building the app from Unity, so check the architecture configuration whenever you get this message.