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?
My issue was an embedded framework.
Go to "Build Phases" -> "Embed Frameworks" -> Check "Copy only when installing", and it got rid of the issue for me.
I am facing same issue then solved out follow this step and now its working.
It's still not working then
I hope its worked, enjoy it.
Also this the error shown if your machine running Xcode is low on space.
I was having the same error, i just deleted the project and fixed!
Get rid of embedded libraries, dont' just throw it in there make sure it is embedded indeed.
Apparently this message can also appear if the system clock of device where the app is being installed is too far away from the current time.
I was doing some tests with date formatters by changing my iPhone's system clock and eventually forgot to reset it to the current time. Afterwards it always displayed the same message ("could not write to the device.") whenever I attempted to run the app. Simply resetting the clock in Settings fixed the issue.