I received this error when trying to build iOS app on a real iPhone and not on the Simulator. This was part of the error message:
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
All the places I looked for help didn't have any tips.