My Xcode 9 is buggy and every second "Build and Rund" it fails "writing to the device". What can I do?

Hey,

I've installed Xcode 9 and it's extremely frustrating 😟.


I have these main problems with my installation:

- Over time, auto-correct gets slower and slower until it completely stops working sometimes.

- Xcode freezes every few hours so that I have to kill it and restart it

- Literally every second "Build and Run" I get an error message: "Could not write to the device". When I try to do it over wi-fi (that new Xcode feature) I get "iPhone is locked. Xcode will continue once it's unlocked" 100% of the time (I hope I don't need to mention that my phone is unlocked).


I tried restarting everything, reconnecting my phone, deleting it from Xcode and re-register it, cleaning the project, deleting provisioning files,... Nothing works.


As long as it works, it's an awesome new version of XCode and I really enjoy it. But it's annoying to constantly have to run it twice in order for it to be successful.

Does anyone have any ideas what I can try?


Thanks for any help 🙂

Dennis Müller