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:
- Contact apple and have them removed from the expired team
- Create a personal team for your apple id. But it might not work to trust the computer yet! (as in olexa.le's comment https://www.oodlestechnologies.com/blogs/Deploying-Apps-to-Devices-without-an-Apple-Developer-Account)
- Plug in the iOS device and make sure it's detected on the Mac computer (for me it opened itunes and the device name was visible in xcode)
- Under signing, where the error message (Failed to create provisioning profile. There are no devices...) was: click try again
- Instead of the error message there was a message saying the device is signed.
- Now you can trust the computer from the device General/Profiles and device managment (again as in https://www.oodlestechnologies.com/blogs/Deploying-Apps-to-Devices-without-an-Apple-Developer-Account)
- It didn't work to use "flutter run" as the flutter documentation says. It worked however to open the project in xcode, and then from xcode's menu project/run.
- Make sure the screen is not locked after the build is complete (it took me more than 5 minutes to build this project when no changes had been made since last build)