How to Build Ionic App for Ios on Mac

To build an Ionic app for iOS on a Mac, you need to install Xcode and create a provisioning profile and certificate for your app. Then, use the Ionic CLI to build and deploy your app to your iOS device or simulator.

If you’re an iOS developer and want to build cross-platform mobile apps, Ionic is an excellent choice. Ionic is an open-source framework that allows developers to build mobile apps with web technologies such as HTML, CSS, and JavaScript. This framework combines the best of AngularJS and Cordova, providing developers with a powerful toolset for developing both iOS and Android apps.

One of the significant benefits of using Ionic is that it allows you to use a single codebase for both platforms, rather than writing two separate apps. We’ll go through the steps for building an Ionic app for iOS on a Mac.


To build an Ionic app for iOS on a Mac, you need to have the following requirements:

  • Node.js must be installed on your Mac
  • Xcode must be installed on your Mac from the App Store
  • Homebrew must be installed on your Mac
  • Ionic CLI must be installed on your Mac through the Terminal

Once you have installed these requirements, you are ready to build an Ionic app for iOS on your Mac.

How to Build Ionic App for Ios on Mac


Setting Up The Environment

Building an iOS app using Ionic is easier on Mac owing to its friendly ecosystem. You can start by creating a new Ionic app by running ‘ionic start myApp tabs –type=angular’ on the terminal. Afterward, navigate to the newly created app by running ‘cd myApp’. Next, you can add iOS platform by running ‘ionic cordova platform add ios’. Once the platform is added, launch Xcode and select the simulator device you’d like to build for. To build the app, use the command ‘ionic cordova build ios’. Once the build process is complete, you can run the app on the iOS simulator by running ‘ionic cordova emulate ios’.

Creating Certificates And Provisioning Profiles

To build an Ionic app for iOS on a Mac, you need to create certificates and provisioning profiles. A certificate is required to sign the app, and a provisioning profile is necessary for the app to run on a device.

To create a certificate signing request in your keychain, go to the Keychain Access tool and select “Certificate Assistant” from the “Keychain Access” menu. Then select “Request a Certificate from a Certificate Authority”. Fill out the necessary information and save the request.

Next, register an App ID for your app on the Apple Developer Portal. The App ID uniquely identifies your app on the App Store and is necessary for creating a provisioning profile. Once you’ve registered an App ID, create a new provisioning profile for your app and select the certificate you previously created.

After you’ve created your provisioning profile, download and install it on your computer by double-clicking the file. Then, in your Ionic project, run the command “ionic cordova run ios –device” to build and run your app on a connected iOS device.

How to Build Ionic App for Ios on Mac


Building The App

To build an Ionic app for iOS on a Mac, you’ll need to create a build environment. First, install Xcode from the App Store. Next, install a development certificate and provisioning profile from the Apple Developer website. This will allow you to build and test your app on a physical device.

Once your environment is set up, open your Ionic project in Xcode and configure your build settings. Make sure you set your project to build for iOS and select the correct provisioning profile. Once your settings are configured, you can build the app by clicking the “Archive” button in Xcode.

Archiving your app creates an .ipa file that you can distribute through the App Store or install on devices for testing. With these steps, you should be able to successfully build an Ionic app for iOS on your Mac.

Deploying The App

After building an Ionic app for iOS on your Mac, you will want to upload it to the App Store Connect for publishing. First, you need to create an archive of your app. Go to the Product menu and select Archive. Once the archive is created, you can upload it to App Store Connect using Xcode.

In App Store Connect, you can manage your app information such as version, pricing, and distribution. To publish your app, you need to fill out all the required fields, including the app name, description, screenshots, and keywords. Make sure to review and submit your app before publishing it.

Make sure your app meets the App Store Review Guidelines before submitting it to App Store Connect.


During the process of building an Ionic app for iOS on a Mac, you may encounter some common errors. One such issue stems from the version of Xcode that you are using. If you are using Xcode 12 or above, you may face compatibility issues with Ionic. The solution to this problem is to use Xcode 11 instead.

Another issue that may arise is related to the signing of the app. The “Code Signing Error” can be resolved by following these steps:

1. Open the Xcode project
2. Go to “Signing and Capabilities”
3. Delete all the profiles
4. Create a new profile and assign the certificate

In some cases, the app may not run on the device due to an “untrusted developer” error. To fix this, you need to trust the developer by going to “Settings -> General -> Device Management -> Developer App” and click “Trust”.

By following these troubleshooting solutions, you can successfully build an Ionic app for iOS on a Mac.

How to Build Ionic App for Ios on Mac



Building an Ionic app for iOS on Mac might seem like a daunting task, but with the right tools and resources, it can be a straightforward process. By following the steps outlined in this blog post and utilizing the resources available in the Ionic and Xcode platforms, you can create a successful app that meets all of your needs.

With practice and patience, you’ll become an expert in no time!

About Doris Campbell

Doris Campbell is a founder And Admin at the Techsily. He's having 8 years of experience in Technology and troubleshooting topics. Coming from a background of Computer Science you will often see his writing stuff related to How To's, PC, Android, and iOS.