I built a Flutter app and I am trying to archive a build so I can put it on TestFlight and have some people test it on beta. However, when I archive the build, it fails with this error:
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Select a device run destination to have Xcode register it.
and also:
No profiles for 'xxx' were found. Xcode couldn't find any iOS App Development provisioning profiles matching 'xxx'.
I set the build devices to Any iOS Device so that it can be used on all devices. How can I fix this?