One of the cool things that Nativescript has to offer is the ability to build apps for both Android and IOS with essentially one code. Now, in order to develop apps on IOS using Nativescript, you need a Mac, but what if you don’t have one. Can you still develop apps for IOS? Yes, luckily for us Windows users there’s a way. Here comes Nativescript Sidekick to help us out.

With Nativescript Sidekick you can build applications for Android and IOS Locally or in the cloud. Of course, if you’re going to be building applications locally you need to have Nativescript environment already installed in your computer. If you build apps locally you will need a Mac if you want to develop the app for IOS as well. Now, on the other hand, using the cloud build option allows you to develop Android and IOS without having to install the Nativescript environment.

Enough talk! Let’s get started!

Setting Things Up

Let’s kick off by going for a brief moment to get our Certificate Signing Request which we will need for the following steps:

  1. Open Nativescript Sidekick and look on the top left for Tools and click on Certificate Signing Request.
  2. Enter your personal information
  3. Click on Create CSR.
  4. Then save the file and keep it handy we will use it in a moment.

Before continuing we need a Certificate and an IOS Provisioning file from Apple. Please note that you will need an Apple Developer account to get these. So how do you get them?

Let’s start the Certificate:

  1. Go to Apple Developer Portal and Login
  2. Click on Account
  3. Click on Certificates, Identifiers & Profiles
  4. Now let’s start by creating our Certificate. On the left panel look for Certificates and click on Development.
  5. Click on the Add Icon located on the top right of the screen.
  6. Choose IOS App Development
  7. Continue until you see the CSR file upload page and upload the CSR file we created a few moments ago.
  8. Download the file.

Now let’s get our IOS Provisioning File:

  1. On the left panel, Look for Provisioning Profiles and click on Development
  2. Click on the Add Icon located on the top right of the screen.
  3. Choose IOS App Development
  4. Select the App ID that you entered on the Certificate Signing Request. It should be already selected if you only have one.
  5. Select the Certificate you just created on the last step.
  6. Enter the Device Information: Name and UDID (You may find the UDID on iTunes by going to Summary and clicking where it says Serial Number until it shows you the UDID).
  7. Then just create the Provisioning Profile and go back to the Provisioning Profile page.
  8. Click on the new Provisioning Profile and click on download.

Nativescript Sidekick

We’re almost there. Let’s go back to SideKick.

Now let’s go back to Tools to import the CER file. Once you import the file it will ask you for a password. Enter a password and save the file we will use it in the coming step.

 

On the top of the app click the Build Option. This will take you to the following screen:

Hover over the IOS box and click on the Gear Wheel Icon.

Now you can browse the Certificate and the Provisioning Profile files we just download it and select them.