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:27

I had a symlink in my project to a file outside of the project. When I deleted this symlink the install worked fine.

查看更多
男人必须洒脱
3楼-- · 2020-05-24 19:28

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.

查看更多
仙女界的扛把子
4楼-- · 2020-05-24 19:30

One reason this can happen is if your app bundle contains broken symlinks.

查看更多
你好瞎i
5楼-- · 2020-05-24 19:30

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...

查看更多
老娘就宠你
6楼-- · 2020-05-24 19:32

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".

查看更多
爷、活的狠高调
7楼-- · 2020-05-24 19:34

OK, few things you should consider that could guide us to the problem, please check and post the answers:

  1. is your project using capabilities? are they set correctly (should be all green)
  2. did you try with a different project (something really simple)?
  3. are you able to install apps from the App Store?
  4. did you check the amount of free space left in the device?

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

查看更多
登录 后发表回答