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 run again, but the same error occurs.
How can I fix this error?
I had a symlink in my project to a file outside of the project. When I deleted this symlink the install worked fine.
In the case of your device have an app with the same bundle identifier, Xcode will throw this error. Try to delete potential app with the same bundle identifier.
One reason this can happen is if your app bundle contains broken symlinks.
For anyone still facing this Issue:
I've faced the same problem and I was connected wirelessly and If you are trying to install the application in wireless connecting mode (connected through same network), this might probably because of poor internet connection. Check your internet connection and try again, it works fine...
Maybe it can be due to the following error App installation failed. No code signature found. In my case after a project clean the description of the error switched to "No code signature found".
OK, few things you should consider that could guide us to the problem, please check and post the answers:
if not, another suggestion will be using exception breakpoint, there is someone that posted an explanation how to setup it, do it and post the logs
App installation failed
I hope it helps you