adding ios based on version in ionic capacitor code example
Example 1: start ionic 5 capacitor app
ionic start [appName] [appType] --capacitor
e.g. ionic start myApp blank --capacitor
Example 2: ionic capacitor ios
// if you didn't run before
ionic build
// then
npx cap add ios