In Xcode 6.3, I got this error when trying to run an iOS project written in Swift on a real device.
App installation failed c
App installation failed
c
For me the following did not work on iOS 11 beta 10, XCode 9 beta 6:
Deleted Derived Data and voilá, it worked again