How to add iOS platform to Ionic project

Run the following commands to add ios platform to your ionic project

  • Install the @capacitor/core package.
npm install @capacitor/core
  • Install capacitor cli:
npm install @capacitor/cli --save-dev
  • Install the capacitor/ios package
npm install @capacitor/ios
  • Add the ios platform:
npx cap add ios

A new folder with name ios will be added to your Ionic project: