Skip to content

Instantly share code, notes, and snippets.

@devahmedshendy
Created January 20, 2025 07:43
Show Gist options
  • Save devahmedshendy/cf5f657303319b9e5cdd0563c1994340 to your computer and use it in GitHub Desktop.
Save devahmedshendy/cf5f657303319b9e5cdd0563c1994340 to your computer and use it in GitHub Desktop.

~/Users/<USER>/Library/Developer/CoreSimulator/Devices/<DEVICE_ID>/data/Containers/Data/Application/<APP_ID>/Library/Preferences/<APP_BUNDLE_ID>.plist

  1. = MAC user name
  2. <DEVICE_ID> = Device/Simulator Identifier, e.g., 999271B8-FAA6-41DE-9864-4111F422ED12
  3. <APP_ID> = Application identifier, e.g., 69928AEF-BCD5-413A-B06F-BC4A07080D62
  4. <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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment