iOS / Xamarin – Provisioning Profiles

This article details how you can create an iOS provisioning profile for use in beta & full distributions of your iOS apps. This content also appears in my Using Crashlytics With Xamarin Apps post where I walk through all the steps required to distribute Xamarin apps for beta testing with Fabric.

CREATING AN APP ID

Log into your Apple Developer account here, and go to your account. The first thing we need to do is create a new App Id for our app. Go to Certificates, Identifiers & Profiles and under Identifiers select App ID’s. On this screen you should see your existing App Id’s if you have any. Create a new one by hitting the + button.Screen Shot 2018-03-02 at 14.35.56.png

Now you should name your app, this name can be anything (but make it related to your app)

Screen Shot 2018-03-02 at 14.02.41.png

Now you need to give your app a Bundle ID. This ID MUST be unique as it is used by the app store. Apple recommend that you use the following format:

“com.company.appname”

If you haven’t created your app yet, you should copy this Bundle ID and copy it into your apps info.plist. If you app already exists you can try using the current Bundle ID, but it might be taken so make sure that the Bundle ID in your app matches what you put in your Developer Profile.

Screen Shot 2018-03-02 at 14.02.50.png

At the bottom of the page hit continue, you can ignore the app[ permissions for the time being.

On the next page you can review your app’s settings:Screen Shot 2018-03-02 at 14.03.12.png

Register the App Id and it should now be visible on the App Id’s page.

Screen Shot 2018-03-02 at 14.04.12.png

Now we have our app ID setup, lets create a provisioning profile for it!

CREATING A PROVISIONING PROFILE

Go to Provisioning Profiles and select All. Here you should see all of the provisioning profiles associated with your developer account. Hit the + button to create a new profile.Screen Shot 2018-03-02 at 14.04.28.png

Create a new Development profile for iOS App Development.

Screen Shot 2018-03-02 at 14.04.40.png

On the next screen select the App ID that you just created:

Screen Shot 2018-03-02 at 14.04.57.png

On the next screen you should select the distribution certificates that you want to associate with this provisioning profile and continue.Screen Shot 2018-03-02 at 14.05.39.png

Now you will want to select the devices that you want to be able to access your app. Remember that your developer profile can only manage a small amount of devices (100 or so) so this should only be used for active alpha testers.

Screen Shot 2018-03-02 at 14.05.50.png

Continue and create your Provisioning Profile, you should now be able to see it back on the Provisioning Profile page.

Screen Shot 2018-03-02 at 15.00.52.png

USING YOUR PROVISIONING PROFILES

Before you complete this step you should DEFINITELY close Visual Studio, and should probably close Xcode.

Open up Xcode and go to Xcode -> Preferences -> Accounts.

Select the account that you just created your provisioning profile for and click the Download Manual Profiles button.Screen Shot 2018-03-02 at 15.06.35.png

All of your profiles will be downloaded and will now be accessible on your development platform of choice (Native:Xcode/Xamarin/Visual Studio Mac)

 

The End

If this article helped you, please let me know by commenting below.

You can find me on the following sites:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s