Sync iOS device from terminal

Since I work with Xcode and plug in and out iOS devices multiple times per day, I don't want iTunes to automatically backup them every time I plug them in. But at the same time I would like to have a daily backup of the devices.

So I was wondering - is there a way to trigger iOS sync with a terminal command, so then it can be scheduled to run every day?


Solution 1:

  1. Find your device Product ID and Vendor ID from System Information.app in the Utilities folder.

  2. Run the following

    /System/L*/Priv*/MobileD*/V*/A/reenumerate_ios_devices vendorid productid
    

    Replace ‘vendorid’ with your Vendor ID and ‘productid’ with your Product ID.