Reproduce
# Ensure a clean simulator
$ xcrun simctl shutdown 1702761C-5ED7-44AC-838A-1FCF280F9F30
$ xcrun simctl erase 1702761C-5ED7-44AC-838A-1FCF280F9F30
$ xcrun simctl get_app_container 1702761C-5ED7-44AC-838A-1FCF280F9F30 com.example.MyApp
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory
# Boot and install
$ xcrun simctl boot 1702761C-5ED7-44AC-838A-1FCF280F9F30
$ xcrun simctl list devices | grep Booted
iPhone 8 (1702761C-5ED7-44AC-838A-1FCF280F9F30) (Booted)
$ xcrun instruments -s device | grep 1702761C-5ED7-44AC-838A-1FCF280F9F30
iPhone 8 (12.0) [1702761C-5ED7-44AC-838A-1FCF280F9F30] (Simulator)
$ xcrun simctl install 1702761C-5ED7-44AC-838A-1FCF280F9F30 com.example.MyApp
$ xcrun simctl get_app_container 1702761C-5ED7-44AC-838A-1FCF280F9F30 com.example.MyApp
=> 1702761C-5ED7-44AC-838A-1FCF280F9F30/data/Containers/Bundle/Application/<snip>/MyApp.app
# Uninstall
$ xcrun simctl uninstall 1702761C-5ED7-44AC-838A-1FCF280F9F30 com.example.MyApp
Expected
After the uninstall command, I expected `get_app_container` return with "No such file or directory" and for the MyApp.app directory not to exist.
Found
$ xcrun simctl get_app_container 1702761C-5ED7-44AC-838A-1FCF280F9F30 com.example.MyApp
=> 1702761C-5ED7-44AC-838A-1FCF280F9F30/data/Containers/Bundle/Application/<snip>/MyApp.app
$ ls -al <snip>/1702761C-5ED7-44AC-838A-1FCF280F9F30/data/Containers/Bundle/Application/<snip>/MyApp.app
No such file or directory
The directory does not exist, but `get_app_container` reports the app bundle container still exists.
Repeating the uninstall command does nothing.
Further, trying to install the same app again while the simulator is in this state yield:
$ xcrun simctl install 1702761C-5ED7-44AC-838A-1FCF280F9F30 path/to/MyApp.app
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Failed to load Info.plist from bundle at path
1702761C-5ED7-44AC-838A-1FCF280F9F30/data/Library/Caches/
com.apple.mobile.installd.staging/temp.AIo2mk/extracted/Payload/MyApp.app