Join Kevin Ford for an in-depth discussion in this video Set up iOS provisioning profile, part of Visual Studio App Center for Developers.
- [Instructor] There are several spots within this course we are going to need to sign and create IPAs for iOS applications. For this, you need an Apple Developer account. So here we're on the Apple Developer portal and I'll go in and click Account and then Certificates, Identities & Profiles. Now this is my personal Developer account and the one that you're most likely to have. In other parts of the course, I also use an Enterprise account.
This course can be done either with an Enterprise account or a normal Apple Developer account. If you're in an Apple Developer account, you'll be using Ad Hoc Provisioning Profiles throughout the course. For many of the videos, I used an Enterprise Provisioning Profile so it's easier for me to manage any devices that I may install. The other thing to be aware of is you will not be able to use the same App IDs I used in the course. You're going to have to change the applications to use your own App IDs.
To set up a new App ID within the Apple Developer account, I click under Identifiers, App IDs and then the Plus button in the upper right and we're going to give it a name, we'll call it the VSACXamarinApp and we'll give it an Explicit App ID and maybe we'll just call it something like com.kevinsclass.xamarin but these can be whatever you want.
You'll need one for your Xamarin app, you'll need one for your native Android app and you'll need one for your React Native app. Also, we'll be using Push Notifications in one of the chapters. So you're going to make sure that when you set up this application, that's turned on as well. So we'll click on Push Notifications and click Continue. Finally, we'll press Register. To create a provisioning profile, we go to Provisioning Profiles, All and in many cases we'll need to create distribution profiles to distribute our app and build it within the portal.
So I'll go the Plus in the upper right and we're going to create a new Distribution Profile. We'll use an Ad Hoc Distribution Profile 'cause we're doing a private build that will be deployed to QA and UHE groups through Visual Studio App Center. We'll click Ad Hoc and then Continue. The App ID, we'll select the App ID we just set up and press Continue again. We'll use our Signing Certificate and Continue.
Finally we can select any devices we want this to run on. I'll select all and continue. A lot of times for the Profile Name I'll just take the App ID without any dots and drop that right in and make it the same. Press Continue and Done. Once again we're going to need to set up Provisioning Profiles for our native application, our Xamarin application and our React Native application. To make this easy to set up builds, I drop the Provisioning Profiles on my desktop.
To do that, we can go into the VSACXamarinApp and click Download and then we'll go down here and Show in Finder and I'll select it, Command + C to copy and I'll go to my desktop and paste it right in. And make sure you have your normal iOS Development Provisioning Profiles set up as well. The other thing I put on my desktop to make setting up builds easier is my Signing Certificate.
And that can be found under Keychain Access. So I'm going to hit Command + Space and keychain and press Return. And the one we want is under login certificates and I'm going to take my personal developer certificate and right click on it and go Export and I'm going to put this on my Desktop and by default, it's going to be Certificates p12 so I'm going to leave that as is, hit Save.
And we'll give it a Password and we'll be using this password throughout the course so make sure to remember it and press OK. And if we get a message about allowing access to the keychain, I'll just click Always Allow.
- Adding applications to the VSAC
- Using custom build scripts
- Creating iOS and Android builds
- Creating UI tests
- Automating tests
- Distributing apps
- Examining crash logs and analytics
- Adding push notifications
- Using CodePush for deployments