Issue
The documentation for get_app_container
mentions the use of group identifier, but that does not seem to be working
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
Steps to reproduce
The following command lists the groups and the respective root paths
% xcrun simctl get_app_container booted com.apple.DocumentsApp groups
group.com.apple.DocumentManager /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/80B132E9-43A1-490C-89D1-C935523797BA
group.com.apple.FileProvider.LocalStorage /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/2A5B9F5E-B9DC-42AE-AE12-50257B58F02C
group.com.apple.tipsnext /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/77292BF1-0ED5-493A-
But using either group.com.apple.DocumentManager
or group.com.apple.FileProvider.LocalStorage
as the group identifier does not return the root path for the corresponding groups
~ % xcrun simctl get_app_container booted com.apple.DocumentsApp group.com.apple.FileProvider.LocalStorage
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
This issue was also described in a Stackoverflow question about a year ago