App installation failed: Could not write to the de

2020-05-24 18:55发布

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?

30条回答
爷、活的狠高调
2楼-- · 2020-05-24 19:35

If you use your iPhone for debug, maybe, because your iPhone's storage space is less than your debug App.
Clean your iPhone --- Real machine
Clean your Mac --- Simulator

查看更多
Deceive 欺骗
3楼-- · 2020-05-24 19:35

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.

查看更多
Evening l夕情丶
4楼-- · 2020-05-24 19:37

Got this problem twice in one week on complete different devices.

One device had no more storage left, after deleting some apps the project installed perfectly.

The other device was fixed after rebooting the device

查看更多
疯言疯语
5楼-- · 2020-05-24 19:37

Check your provision profile, maybe you are using the app store provision profile like me. I had to change the app store provision profile to development, now it's working.

查看更多
疯言疯语
6楼-- · 2020-05-24 19:38

Deleting the app on the device and running the project again works for me.

查看更多
三岁会撩人
7楼-- · 2020-05-24 19:39

I did a Clean and installed my app successfully.

Product->Clean(Shift-Cmd-K)

查看更多
登录 后发表回答