How to delete an App from command line

1. List all simulators

Find out all simulators

xcrun simctl list

Find out active simulator

xcrun simctl list | grep Booted

You will get the result like:

$ xcrun simctl list |grep Booted
iPhone 11 (AE8852AB-378E-47FB-BD23-4CF77BFBC6DC) (Booted)

Now you can erase the simulator by

xcrun simctl erase AE8852AB-378E-47FB-BD23-4CF77BFBC6DC

2. Delete the app from active simulator

xcrun simctl uninstall booted your.bundle.id

Or

xcrun simctl uninstall AE8852AB-378E-47FB-BD23-4CF77BFBC6DC your.bundle.id

reference:

https://medium.com/xcblog/simctl-control-ios-simulators-from-command-line-78b9006a20dc

About Tang

A mobile developer, work in Stockholm, Sweden
This entry was posted in iOS and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s