certificatekeychainmaui-blazor

MAUI VS 2022 17.4.0 - Configure Automatic Provisioning - Certificate Exists But Cannot Be Found in Keychain


I am brand new to iOS app development. My app builds and runs on the windows machine and iOS simulator on my Mac Mini. When I try to run on a connected iPhone, I get the following error:

Error

I have researched the issue, exported the certificate from my mac keychain as a .p12 file, and installed on my PC build machine, but still no change in error.

Any advice? Thanks in advance!


Solution

  • Firstly, please check what the version of the VS you are using. Go to Help->About Microsoft Visual Studio, if you are Professional version please switch to other versions such Enterprise or Community.

    Secondly, you don' t need install the .p12 on your PC. You need to export the certificate from your mac mini to a .p12 file and import the certificate into VS > Tools > options > Xamarin > Apple accounts > View Details > Import certificate and then select the p12 file and import it into VS make sure it display Valid on the status column