Xcode 9.2 supported ionic configuration

I have a macbook pro with os version 10.12.6 and which can not be upgraded. So it supports xcode 9.2 max. I have that. Now , when i develop a template ionic app it gives me error of swift version(default it takes 5) after i convert to 4 it gives more 10 errors. Now, this error can be produced easily. I’m not sure which ionic configurations i should use in the package.json.
my current package.json is

{
“name”: “fishwaleapp”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “https://ionicframework.com/”,
“scripts”: {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”
},
“private”: true,
“dependencies”: {
@angular/common”: “^9.1.12”,
@angular/core”: “^9.1.12”,
@angular/forms”: “^9.1.12”,
@angular/platform-browser”: “^9.1.12”,
@angular/platform-browser-dynamic”: “^9.1.12”,
@angular/router”: “^9.1.12”,
@capacitor/core”: “2.1.0”,
@capacitor/ios”: “^2.1.0”,
@ionic-native/core”: “^5.28.0”,
@ionic-native/splash-screen”: “^5.28.0”,
@ionic-native/status-bar”: “^5.28.0”,
@ionic/angular”: “^5.3.5”,
“rxjs”: “~6.5.1”,
“tslib”: “^1.14.1”,
“zone.js”: “~0.10.2”
},
“devDependencies”: {
@angular-devkit/build-angular”: “^0.901.12”,
@angular/cli”: “^9.1.12”,
@angular/compiler”: “^9.1.12”,
@angular/compiler-cli”: “^9.1.12”,
@angular/language-service”: “^9.1.12”,
@capacitor/cli”: “2.1.0”,
@ionic/angular-toolkit”: “^2.3.3”,
@types/jasmine”: “^3.5.14”,
@types/jasminewd2”: “~2.0.3”,
@types/node”: “^12.12.67”,
“codelyzer”: “^5.1.2”,
“jasmine-core”: “~3.5.0”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “^5.0.9”,
“karma-chrome-launcher”: “~3.1.0”,
“karma-coverage-istanbul-reporter”: “~2.1.0”,
“karma-jasmine”: “~3.0.1”,
“karma-jasmine-html-reporter”: “^1.4.2”,
“protractor”: “~5.4.3”,
“ts-node”: “~8.3.0”,
“tslint”: “^6.1.3”,
“typescript”: “~3.8.3”
},
“description”: “An Ionic project”
}

I realize you’re probably not going to like this answer, but my recommendation is to get new hardware, as Capacitor lists a minimum of XCode 11.

If you’re determined to stick with this, you’ll need to ditch Capacitor and make sure you avoid any Cordova plugins that require cordova-ios 6 or later, as it also has the same XCode 11 requirement. The last version of cordova-ios that supported XCode 9 was 5.