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
remove all certificates from keychain tickon automatic xcode manage profile,
Restart Device
Delete derived data
clean
Run
Once I had to load an App Container for debugging purposes into an iPad, said operation failed because the container was too big (18 GB) for this device (16 GB minus the OS), so that I desisted the task and completly forgot about it, leaving the failed installation in the device. Later, when trying to install a different application this error appeared, once I got rid of the failed app installation, everything got back to normal. Basically, your Ipad might be low in storage.
Check the device date, my device time was set to a future date so I was facing this issue.
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
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.
Deleting the app on the device and running the project again works for me.