For Flutter beginner, when you follow the instruction of deploy-to-ios-devices in Flutter Doc (https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices), probably you will get the following error in your Terminal：
Code Signing Error: No profiles for ‘xxx’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘xxx’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
You also can see similar error in below picture.
In Flutter documentation, they do not mention you should select device in Xcode top left corner.
Here, you should select your real device(your iphone name). If an iPhone simulator selected, probably you will get this error.