Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Store Connect API / Hot Restart Setup from VS 2022 in Windows

I am trying to enable IOS development in VS 2022 for windows. I understand it requires an apple dev account. I have this info on my MAC machine and everything works as expected. However, in Windows, it needs to setup Hot Restart / Reload. During the process, it asks about the app store connect API key. I am providing the correct details (precisely as I did with MAC), It complains and throws an error message.

error message.

like image 789
ARH Avatar asked Nov 28 '25 19:11

ARH


1 Answers

If you use a personal account, you need to generate an API key. About how to generate an API Key, you can follow the steps blew: Go to App Store Connect, click User and Access, go to Keys tab, choose App Store Connect API , then generate an API Key. After that, you can open VS and go to Tools-> Options-> Xamarin-> Apple Accounts -> Add-> Individual account, enter your API key. (Note: Please be careful to save the downloaded key, it can only be downloaded once.)

For more details, you can see Creating API Keys for App Store Connect API on developer.apple.com.

If you have already filled in Api Key. You can check whether the issuer ID and Key ID are entered correctly, and check whether the API has been revoked on developer.apple.com. Furthermore, you could also try to generate a new API Key and check if this issue still exists.

Update:

Deleted apple account from VS

Removed certificates from AppData\Local\Xamarin\iOS\Provisioning\Certificates

Removed profiles from AppData\Local\Xamarin\iOS\Provisioning\Profiles

Added Apple account

Set to Automatic Provisioning and select team, it will error again but will reinstall the certificates

Manually download provisioning profile and copy it to AppData\Local\Xamarin\iOS\Provisioning\Profiles

Run the archiving process should error out again but the “id” or name of the provisioning will be displayed in the error

Rename the provisioning file to match and rerun archiving.

like image 138
Zack Avatar answered Nov 30 '25 13:11

Zack