Unable launch appium Pragmatically in Mac Machine


Steps followed:
1.new AppiumServiceBuilder().usingDriverExecutable(new File("/usr/local/bin/node"))
.withAppiumJS(new File("/Users/ifocus/Desktop/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js"))
when i execute its failing and throughing message like

" The ‘idevice_id’ program is not installed. If you are running a real device test it is necessary. Install with ‘brew install libimobiledevice --HEAD’"

when i try to install libimobiledevice then getting like this

“Warning: libimobiledevice HEAD-26373b3_2 is already installed and up-to-date
To reinstall HEAD_2, run `brew reinstall libimobiledevice”

please help