chmod isn’t the right approach. It will break again.
There is a fix for this issue in libimobiledevice (used by ideviceinstaller). You just need the latest version of libimobiledevice. Try this:
brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller