Capacitor Required Dependencies
Capacitor has a number of dependencies depending on which platforms you're targeting and which operating systems you are developing on.
The base requirements are Node v8.6.0 or later, and NPM version 5.6.0 or later (which is usually automatically installed with the required version of Node).
Capacitor supports yarn as well.
For specific platforms, follow each guide below to ensure you have the correct dependencies installed.
For building iOS apps, Capacitor requires a Mac with Xcode 10 or above. Soon, you'll be able to use Ionic Appflow to build for iOS even if you're on Windows.
Additionally, you'll need to install CocoaPods (
sudo gem install cocoapods), and install the Xcode Command Line tools (either from Xcode, or running
Once you have CocoaPods installed, update your local repo by running
pod repo update. You should run this command periodically to ensure you have the latest versions of CocoaPods dependencies.
As a rule, the latest version of Capacitor always supports the last two iOS versions. For example, iOS 11 and iOS 12. For support for older versions of iOS, use an older version of Capacitor (if available).
Capacitor uses the WKWebView.
First, the Java 8 JDK must be installed and set to the default if you have other versions of the JDK installed. Java 9 does not work at the moment.
Android development requires the Android SDK installed with Android Studio. Technically, Android Studio isn't required as you can build and run apps using only the Android CLI tools, but it will make building and running your app much easier so we strongly recommend using it.
Android version support for Capacitor is more complex than iOS. Currently, we are targeting API level 21 or greater, meaning Android 5.0 (Lollipop) or above. As of May 2019, this represents over 89% of the Android market.
Also, Capacitor requires an Android WebView with Chrome version 50 or later. On Android 5 and 6, the Capacitor uses the System WebView. On Android 7+, Google Chrome is used.
No specific dependencies are needed to use Capacitor with Electron.