3

I receive the error "replace existing signature" when trying to deploy an app to a device or simulator.

Strangely, it doesn't do it every time. It will build ok a few times and then the error will arise. If I rebuild the app, then the error goes away briefly.

How can a situation such as this arise?

Saamer
  • 4,687
  • 1
  • 13
  • 55
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189

1 Answers1

2

The issue comes whenever you have multiple certificates and provisioning profiles installed so the automatic signing that you have selected won't know which profile to use. There are suggestions to do a lot, but I would suggest:

  1. Open Visual Studio, into the iOS Project settings->iOS Bundle Signing and switch over to Manual selection of Provisioning profiles. Quit, Rebuild.
  2. If that doesn't work, just log in your Apple Developer account and deleting and revoking all certificates/provisioning profiles in your Apple Developer and Mac that are old. Quit, Rebuild.
  3. If neither works, then follow the suggestions in the link.
Saamer
  • 4,687
  • 1
  • 13
  • 55