Join us for a Special Ionic Event. March 10th 2021.
Capacitor iOS apps are configured and managed through Xcode, with dependencies managed by CocoaPods.
Building iOS apps requires some iOS development dependencies to be installed, including Xcode 11 and the Xcode command line tools.
Note: It’s possible to develop and build iOS apps without a Mac, such as by using Ionic Appflow’s Package feature. Consult your service of choice for more information.
By default, an iOS project is created for every Capacitor project. If you are adding Capacitor to an existing project, you can manually add the iOS project using:
npx cap add ios npx cap sync
sync command updates dependencies, and copies any web assets to your project. You can also run:
npx cap copy
To copy web assets only, which is faster if you know you don’t need to update native dependencies.
To open the project in Xcode, run:
npx cap open ios
Once Xcode is open, just click the Play button to run your app on a Simulator or Device.
You are now ready to continue developing and building your app. Use the various APIs available, Capacitor or Cordova plugins, or custom native code to build out the rest of your app.
Follow these guides for more information on each topic: