Ionic CLI Build vs Archive


#1

Apologies if this is a dumb question, but - I removed a plugin from my project, and when I tried to build for iOS it was giving me failure errors saying the project file couldn’t be parsed.

I removed and re-added iOS, and now when I run ionic build ios it succeeds - but now it’s archiving instead of building.

How do I switch it back to build instead of archiving? I’ve tried searching but most questions are about being unable to switch to Archive mode, not how to go back.

I’ve tried going into XCode and doing Product > Scheme > Edit Scheme > Run, but it doesn’t seem to affect the CLI at all.


#2

If it helps anyone else: closing XCode and restarting does seem to reset it back to build. But if there’s a different way to do it, would love to hear it.