App installation failed: Could not write to the device

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 could not write to the device. I tried to clean the project and ...