How to build Ionic Cordova with Xcode 10?

Use this and free from errors
But check whether iOS-deploy is installed or not, so use

npm install ios-deploy
and then next command:

ionic cordova build ios – --buildFlag=“-UseModernBuildSystem=0”