To target iOS, some additional environment setup is required. Unfortunately, iOS apps can only be created on macOS.
Xcode is the IDE for creating native iOS apps. It includes the iOS SDK and Xcode command-line tools. Xcode can be downloaded for free with an Apple account. It can also be installed through the App Store.
Once Xcode is installed, make sure the command-line tools are selected for use:
$ xcode-select --install
All iOS apps must be code signed, even for development. Luckily, Xcode makes this easy with automatic code signing. The only prerequisite is an Apple ID.
Open Xcode and navigate to Xcode » Preferences » Accounts. Add an Apple ID if none are listed. Once logged in, a Personal Team will appear in the team list of the Apple ID.
The iOS simulator emulates iOS devices on Macs. The following documentation is a quick way to get the iOS simulator set up. For more information, see Apple's documentation.
Open Xcode and navigate to Window » Devices and Simulators. Create an iPhone 11 simulator if one does not already exist.
Additional setup is required for Cordova to support programmatic builds. This section is not necessary for Capacitor.
$ npm install -g ios-sim $ brew install ios-deploy