Deploying Firetask to iOS

Ionic has a great documentation of how to deploy apps to device. The steps below is just an addition to avoid some mistakes when running with Firetask.

Edit configuration files

First thing is to edit the config.xml and ionic.config replacing widget id, name and any other attribute to your own.

Besides of config.xml you also need to edit the package.json making sure you had changed the plugin attributes for google REVERSED_CLIENT_ID and facebook APP_ID, APP_NAME. Note that they are located in both config and package.

These plugins are used for the Native Social Login feature.

Learn more about on their respective repositories: EddyVerbruggen/cordova-plugin-googleplus and jeduan/cordova-plugin-facebook4

Getting the Reversed Client ID

The Reversed Client ID is nothing more nothing less than your googleWebClient. You can get this on your firebase account by going to Authentication > Sign-In Method > Google > Web Client ID. You must to keep this synced with REVERSED_CLIENT_ID from config.xml.

Note: Every time you modify something in the config.xml will need to re-add ionic cordova platform.

Add Google Service

In order to make the app executable when deployed to device, it's necessary to get your GoogleService-Info.plist and put on project root. This file is available for download from your firebase account. Learn more here.

Install iOS Deploy

sudo npm install --global --unsafe-perm ios-deploy

Install iOS Sim

sudo npm install --global ios-sim

Edit build.json file

We use cordova's build.json file to deploy Ionic applications on device.

Open the build.json file located at project root and replace with your developmentTeam. You can use the same for both debug and release.

The Development Team is delivered to you when you have an active development account at Apple.

Add Platform

ionic cordova platform add ios

Apply provisioning profiles

Every time you run the ionic cordova platform command, is required to apply at least one time a new provisioning profile.

To acomplish this just open your xcode, then point the project folder to platforms/ios generated by ionic.

On the General tab > Signing - uncheck the option automatically manage signing. Then add your profiles manually on Signing (Debug) and Signing (Release) tabs.

If you don't have the profiles, check out this steps.

Make sure your Identity > Bundle Identifier is the same as in provisioning profile. It must to be the reversed domain. eg: io.firetask.classic

In the end it should look like this:

Ionic app setup xcode

Deploy to device

If everything went well, you should now be able to run Firetask on your iPhone device by running

ionic cordova run ios

results matching ""

    No results matching ""