"UBT ERROR: Failed to produce item" when trying to deploy on iOS Mobile Device

I was having the exact same problem, I recently moved to a new mac and downloaded the latest Xcode (9.3). I rolled back to Xcode 9.1 and that did the trick for me. I’ve found most of the time the latest version of anything never works…