I want to find the .mobileconfig file in the IOS10 that contains all basic setting information of IOS10 like (Restrictions, Passcode, Wi-Fi, Mail, etc.) and export it to Mac. How can I do it?

  • If you want to make a backup of this information to restore to another iPhone, use iTunes. If you want to capture the information to use in macOS, I'm not sure this can be done. – IconDaemon Jul 24 '17 at 18:22
  • Thanks to you at first, I want to use this information to do some test of the IOS system. I know this file is a XML format file but I don't know where can I find it. – 房嘉彬 Jul 24 '17 at 19:27

You can get your .mobileconfig files from you iPhone/iPad backup (if you have an access to target device) as follows:

First, you need to create (or update) an unencrypted backup from iTunes.

Then you need to get a path to your backup. You can do this in iTunes preferences, in "Devices" tab: enter image description here

Now you can search in backup directory for all .plist files, that contains PayloadType key and copy them to a directory on your Desktop:

mkdir ~/Desktop/mobileconfigs

find "$BACKUP_DIR" -type f -name '*' -exec sh -c '
  for file do
    /usr/libexec/PlistBuddy -c "print :PayloadType" "$file" &>/dev/null
    if [ $? == 0 ]; then
        cp "$file" "/Users/toma/Desktop/mobileconfigs"
' sh {} +

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .