I also received the "Failed to prepare device for development" error. As @CelsoRZ said, @TKincses try Clean build folder and remove DerivedData folder located in /Users/user/Library/Developer/Xcode/DerivedData, after that I reset Xcode and it worked for me.