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.
First thing is to edit the
ionic.config replacing widget id, name and any other attribute to your own.
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_NAME. Note that they are located in both config and package.
These plugins are used for the Native Social Login feature.
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
Note: Every time you modify something in the config.xml will need to re-add
ionic cordova platform.
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.
sudo npm install --global --unsafe-perm ios-deploy
sudo npm install --global ios-sim
We use cordova's build.json file to deploy Ionic applications on device.
build.json file located at project root and replace with your
developmentTeam. You can use the same for both
The Development Team is delivered to you when you have an active development account at Apple.
ionic cordova platform add ios
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:
In the end it should look like this:
If everything went well, you should now be able to run Firetask on your iPhone device by running
ionic cordova run ios