ionic install "@capacitor/ios": "^2.4.6", code example
Example 1: ionic capacitor ios
// if you didn't run before
ionic build
// then
npx cap add ios
Example 2: install capacitor ionic
npx cap init
// if you didn't run before
ionic build
// then
npx cap add ios
npx cap init