@lucasbasquerotto. A very big thanks to you dear, you helped me a lot in a very clear way. I updated the ionic to latest, uninstalled cordova, removed and added all platforms (browser, android, iOS) and now its working. But when I run “ionic cordova run ios” it shows following error:
and I solved the above error by running the run command as follows:
ionic cordova run ios – --buildFlag="-UseModernBuildSystem=0"
really really thanks dear 
