Okay, so after a couple hours of frustration, I managed to get it back to work.
Here are what I’ve tried
- Uninstall cordova
- Delete .cordova (hidden) directory from ~/
- Delete platforms/ and plugins/ directories from my ionic project
- npm install ios-sim -g
- npm install ios-deploy -g
- Make sure all the dependencies I have in package.json up to date
- npm install
- npm install cordova -g
- ionic state reset
- ionic emulate ios
I know there are many steps but it works for me now. Hope it helps.