It can happen due to changing ip addresses. Just restart your mac and iphone and make sure both are conneted to same network. Mine error solved and make sure you have enabled automatically manage signing in the xcode means your real device should be recoganized in the provisioning profile.