App installation failed: Could not write to the device

in Xcode 6.3 I got this error when trying to run iOS project written in swift on real device. App installation failed could not write to the device. I tried to clean project and run again ...