Following flutter's setup instructions, I tried to run the app on my iphone. I got into signing problems. In the project settings, under general/signing, I have this error message:
Failed to create provisioning profile. There are no devices registered in your account on the developer profile. Plug in and select a device to have Xcode register it.
I couldn't do anything in my developer profile, as there was only a message saying my account is expired. I only want to test my app for development, which I should be able to do without renewing the expensive apple developer program.
This is the solution that worked for me: