reference: https://stackoverflow.com/a/69164316/4538920
~/Users/<USER>/Library/Developer/CoreSimulator/Devices/<DEVICE_ID>/data/Containers/Data/Application/<APP_ID>/Library/Preferences/<APP_BUNDLE_ID>.plist
- = MAC user name
- <DEVICE_ID> = Device/Simulator Identifier, e.g., 999271B8-FAA6-41DE-9864-4111F422ED12
- <APP_ID> = Application identifier, e.g., 69928AEF-BCD5-413A-B06F-BC4A07080D62
- <APP_BUNDLE_ID> = Your apps bundle identifier, e.g., com.company.appname.plist
-
How to find username of macOS:
-
How to find simulator DEVICE_ID:
-
How to find APP_ID:
for d in *; do
if [ -d "$d" ]; then
BUNDLE_ID=$(plutil -p "$d/.com.apple.mobile_container_manager.metadata.plist" | grep "MCMMetadataIdentifier" | cut -d'"' -f4)
echo "$d: $BUNDLE_ID"
fi
done
- How to find APP_BUNDLE_ID: