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

in my project this problem happened because there was a folder with symbolic link. I removed that folder and it worked properly.

查看更多
ら.Afraid
3楼-- · 2020-05-24 19:41

My problem was I had initially installed the app using a different set of developer credentials on the device. Deleting the app from the device fixed it.

查看更多
Viruses.
4楼-- · 2020-05-24 19:42

Tried all of the above answers: Deleting the app, clearing storage space, cleaning the project...

What finally worked was bumping the build number in info.plist (General > Build)

查看更多
▲ chillily
5楼-- · 2020-05-24 19:43

For me it was the provisioning profile - I used distribution instead of development

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

This looks like another time waster courtesy of Apple's amazingly high class development team. On iOS11 Xcode9 (pick your beta, any one works) this will happen randomly. Appears to be more frequent if you dare to switch apps while compiling. Just build again and stare at xcode - it'll work the second time without fail in my experience.

查看更多
Melony?
7楼-- · 2020-05-24 19:45

remove all certificates from keychain tickon automatic xcode manage profile,

Restart Device

Delete derived data

clean

Run

查看更多
登录 后发表回答