Ideviceinstaller issue with java code

I am facing the below two errors while trying to launch the app on device

Could not capture device log using libimobiledevice idevicesyslog. Libimobiledevice probably isn’t installed

Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system

but when i launch the same thing with appium UI it works as charm. any help please.

If you haven’t installed it, this might just solve both problems:

http://brewformulas.org/Libimobiledevice