Betini O. Heleno
Betini O. Heleno

Reputation: 326

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

enter image description here

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

Upvotes: 1

Views: 566

Answers (3)

sylvin rodrigues
sylvin rodrigues

Reputation: 1

Just run command with sudo once and after that run same command without sudo

Strange but it worked for me

sudo cordova build ios 
cordova build ios 

Upvotes: 0

sylvin rodrigues
sylvin rodrigues

Reputation: 1

Use cordova build ios without sudo It will work

Upvotes: 0

IAfanasov
IAfanasov

Reputation: 4993

If it was working two days ago and stopped now then most likely it is an issue of some update. Most likely it is an update of Xcode, some node dependency or the node itself, or. Starting from checking if the Xcode was updated would be the best start.

Upvotes: 0

Related Questions