I am currently developing an application with Flutter. I used to be able to run the code directly using VS code or the command flutter run. Ever since I revoked my developer certificate and generated a new one, the above options when executed, the app crashes on my iPhone. If, however, I run it on the simulator, it works as expected.
I suspect that this is due to the change in certificates. Xcode says my app is signed with the certificate B39****** where as flutter run says it is signing with 578*******
I have even tried flutter config --clear-ios-signing-cert as well as flutter upgrade and it still signs with 578.
How can I force flutter to sign my app with the new certificate? Currently, this means I cannot use the hot reload feature on my physical devices.