Hello,
However, when attempting to install the app on a physical device, I encounter the following error
Please go to Settings > Privacy & Security > Developer Mode and tap Developer Mode to turn on.
You could try to install the app via TestFlight to see if the issue still exists.
Also, this prompt means the risks of installing development-signed app. Please make sure the certificate and provisioning profile are type of Distribution.
For more details, please refer to Publish a .NET MAUI iOS app for App Store distribution - .NET MAUI | Microsoft Learn
Update
but my issue is that why it is asking me to turn on developer mode even if the app is signed with the distribution certificate and profile.
It's a prompt from Apple and it's the limit to test the app on your physical device. See Enabling Developer Mode on a device | Apple Developer Documentation
And moreover my experince with VS code for mac for maui development is terrible , I wish VS for mac still existed!!
VS for mac has been retired. If you have any issue with VS code (c# dev kit), you could report it at https://github.com/microsoft/vscode-dotnettools.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.