I have been working on Flutter recently, because some functions can only be debugged on a real machine, so I would like to mention some minor issues I have encountered with ios real machine debugging.

First you have to have a Flutter project, an iPhone, with Xcode installed.

1. Open Xcode, run our Flutter project, select our phone for the first time and click debug

No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
your team by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- In the 'General' tab, make sure a 'Development Team' is selected.Copy the code

I’ve roughly copied the error message. We need to choose a team for this project

2. Open Xcode –> Preferences –> Accounts to add our AppleId



I’ve already added one, so I’ve got one, normally it’s empty if I haven’t added one, so I’ll just click Add an AppleId



3. An error will pop up after the restart

Ios: Xcode prompts "CoDesign wants access to the key in your keystring"Copy the code

We open “keychain access” for the application and allow the application to access





Finally, restart XCode to run successfully.Copy the code

4. If you have a problem with an untrusted developer

Open Settings -> General -> Description file and Device Management -> Select Description file and select Trust to debug