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


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.