>> Welcome back everyone to
the Xamarin Show, Snack Pack Edition.
I'm your host James Montemagno,
and today I'm going to show you
how to automatically provision
your iOS applications inside
a Visual Studio 2017 with our fast lane integration.
Now, previously I had Oleg on,
talking about how he integrated fast lane to stream
line app provisioning for
your developments and App Store releases
inside a Visual Studio for Mac.
So, find those links in the show notes below.
But we've also now integrated it
directly into Visual Studio 2017.
Now if you've ever done any iOS application development
or maybe you're just getting started,
getting the application onto
your device is half the battle.
For Apple, you have to make sure you're
registered for a developer account,
you need to make sure your Mac actual machine is
registered and provisioned with certificates, then,
you need to register your device,
you need to create an ID for your app,
you need to create a provisioning profile for that app,
and then register devices to that profile.
It's a headache.
But we streamlined it using
a tool called Fastlane built into
visual studio to make it as easy as logging
into your account and simply
pointing it at your app to deploy it.
So let's hover to Visual Studio and take a look.
So, here I am inside a Visual Studio 2017.
I've created a blank iOS application.
Now to get started, we're going to go into tools options.
And under Xamarin, you'll see
this brand new Apple account section.
And we're going to add a brand new Apple ID.
So, I'm just going to add my account
here and we're going to go ahead and log in.
Now, as long as I have Fastlane and everything installed,
this will provide the fast and secure way
to get access to my account.
So here I've gone ahead and I have my Apple ID,
I have my actual account,
and I can view details.
There's a pull up of all my certificates
and identify what's
in my keychain or not in my keychain automatically.
So, it's great that I can
install those immediately onto my Mac.
So this is connected to my Mac as we can
see here over SSH,
and that's how it's doing that pairing.
Now, all I need to do is go into
the project options under Bundall signing.
What this will do is allow me to do
manual provisioning or automatic provisioning.
Here, I can go ahead and set
automatic and then select a team.
So I can select ''Xamarin ink.''
There's a run through the automatic signing,
this will make sure my devices are provisioned,
it will ensure my machines are provisioned,
and will go ahead and handle everything for me.
If I need to do more,
it of course will register
all those devices and anything that I need.
Here, I can go and simply toggle this over to
iPhone and now we'll see the developer automatic,
everything's automatic setup and I can simply go
ahead and deploy this to my actual iPhone.
Now, what's important here is
that with automatic provisioning,
it's handled the registering my Mac,
it's handled registering my actual physical device
and created a provisioning profile.
If I change anything such as my identifier,
inside of my info plist for instance,
it will go ahead redo that for me.
You can toggle back off and on or you can go ahead and do
the manual provisioning and select
things yourself if they're already
installed on your machine.
So, that's really nice,
just from a point of view of getting
started and of course then you select your teams.
So if you're on multiple teams you
can go and do that there.
Then we can see that it's actually
building on my Mac and over local Wi-Fi,
it will actually start to deploy to my device.
What I've done is I've paired my iPhone first via
USB to X code and simply enabled network deployment.
And then inside a Visual Studio,
I see this iPhone connected via a network to
deploy over my local Wi-Fi to the device.
So, let's give it a second here to actually go ahead
and compile up my application
and get it on to the device.
Perfect, so now it's gone ahead of launched and
I have it screen mirrored here,
so I can actually see this full application
being deployed onto my device in
just a few seconds using
Fastlane integration into Visual Studio 2017.
So there you have it. As easy as checking
a few check boxes and logging
into your Apple developer account,
you have all the provisioning, all completely done,
inside a Visual Studio
2017 and of course for Visual Studio for Mac.
You can read all the documentation in the links below and
don't forget to subscribe by
hitting the bell over there, up over there.
You know what to do.
Get all the updates of the Xamarin show in your inbox.
So, until next time I'm James Montemagno,
and thanks for watching.