Before we go and see there is one thing I need to note. Microsoft has incorporated this now into Visual Studio for Mac and in this post I will show you how to set it up. But what can be done is automate as much as possible in a way that we, as developers, do not have to be bothered with any of this anymore. Since Apple is unlikely to respond to any of the requests of Microsoft, we can’t get around to how Apple has arranged all of this. Luckily, Microsoft has seen this burden as well and has decided to do something about this. I know why it needs to be done, I see why it is important, but each time I forget how to do it and it takes me too long to set it up for my new app.
In my opinion the process around it is hard and confusing. Especially the first time, this can be daunting to say the least. To be able to run your app on a physical device, Apple needs you to sign your binary with certificates and provisioning profiles. While there is no way around it, Microsoft is on a mission to automate it as much as possible.
The signing of the application binary can be a real brain teaser. If you have been working on iOS applications, you probably have pulled your hair out at some point.