IONIC IOS: List simulator targets Running command: xcrun simctl list --json Select last emulator from list as default


I have an ionic application that builds normally for android. It turns out that when I run the command: ionic cordova build ios --prod --release on mac it always returns this error. Strange because two days ago I managed to run the same command on the same project. Does anyone have any idea what might be going on? Already tried: sudo rm -rf node_modules sudo rm -rf platforms sudo npm install sudo ionic cordova platforms add ios
ionic cordova build ios --prod --release Returns the same error… But when I run: ionic serves it opens normally without any error. Does anyone have any solution