How do I get the bundle identifiers of all the apps installed on an iOS simulator?
I want to automate uninstallation of a specific app called WebDriverAgent (used by Appium) via a script.
e.g.
xcrun simctl uninstall booted com.example.apple-samplecode.UICatalog
Apps are installed in this directory: ~/Library/Developer/CoreSimulator/Devices/[DeviceID]/data/Containers/Data/Application/
[DeviceID] being the simulator's UDID you are using. Every time a new app installed a new directory is created.
I bet your WebDriverAgent lies in there and can be removed.